Template:Assistant:Add action-test/add-entry/check/doc
Appearance
This is a documentation subpage for Template:Assistant:Add action-test/add-entry/check (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
Usage
[edit]This is part of the Add action-test assistant.
Inputs:
subject
— the full page name of the test table to which an entry is to be added; must begin withWikinews:Dialog/
.SUBJECT-EXISTS
— eithertrue
orfalse
, depending on whether the test table page exists.SUBJECT-CONTENT
— the raw content of the test table page.test-fullpage
— the full name of the test page to be added to the table; needn't exist.
Function:
- This template checks that the table exists, that it contains exactly one call to {{dialog/action page/test bottom}}, and that it does not already contain a call to {{dialog/action page/test entry}} for
test-fullpage
. If any of these conditions is not met, generates an error message, otherwise generates the empty string.