Template:Module test case/doc

From iCulturalDiplomacy
< Template:Module test case
Revision as of 08:09, 13 October 2015 by Andoni (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Template loop detected: Template:Mbox

Usage[edit]

This template invokes a Lua-extension module with given parameters, compares the output to an expected value, and reports on the outcome.

The module invoked by default is {{PAGENAME}}, except that if {{PAGENAME}} ends with suffic /doc, the suffix is removed; the default is convenient for using this template either from the module's documentation page or from the module's talk page. Parameter {{{module}}} overrides the default.

The first five unnamed parameters are passed to the invoked module; there is currently no support for passing named parameters to the module.

The expected result should be provided through parameter {{{expected}}}.

Parameter {{{description}}} should describe the test case.

See also[edit]