Jump to content

Template:Assistant:Add action-test/add-entry/check/doc

From Wikinews, the free news source you can write!

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 with Wikinews:Dialog/.
  • SUBJECT-EXISTS — either true or false, 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.