Template:Module test cases: Difference between revisions
Jump to navigation
Jump to search
m (Vinifera7 moved page Template:Module test cases notice to Template:Module test cases without leaving a redirect) |
No edit summary |
||
Line 3: | Line 3: | ||
| text = | | text = | ||
This module implements the [[wikipedia:Wikipedia:Lua#Unit_testing|test cases]] for [[:{{NAMESPACE}}:{{BASEPAGENAME}}]]. [[{{TALKSPACE}}:{{PAGENAME}}|Run the test cases]]. | This module implements the [[wikipedia:Wikipedia:Lua#Unit_testing|test cases]] for [[:{{NAMESPACE}}:{{BASEPAGENAME}}]]. [[{{TALKSPACE}}:{{PAGENAME}}|Run the test cases]]. | ||
}}<includeonly>{{{category|[[Category:Module test cases|{{PAGENAME}}]]}}}</includeonly><noinclude> | }} | ||
<includeonly>{{#invoke:{{PAGENAME}}|run}} | |||
{{{category|[[Category:Module test cases|{{PAGENAME}}]]}}}</includeonly><noinclude> | |||
{{documentation}} | {{documentation}} | ||
<!-- Categories and interwikis go on the /doc subpage. --> | <!-- Categories and interwikis go on the /doc subpage. --> | ||
</noinclude> | </noinclude> |
Revision as of 10:18, 31 July 2020
This template displays a notice that the current page is a module's /testcases subpage. It also runs the test cases and displays the results.
Usage
This template is used in the system message MediaWiki:Scribunto-doc-page-does-not-exist, which automatically places it at the top of module /testcases subpages.
See also
The above documentation is transcluded from Template:Module test cases/doc.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.