Template:Collapsible test case
Jump to navigation
Jump to search
[edit] [ ] Template documentation
This documentation is transcluded from Template:Collapsible test case/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
Description
Utility template for testing templates in a standardized way on /testcases pages.
Tests are more reliable between main template and /sandbox template, because parameters are duplicated, leaving less room for human error.
Usage
{{Collapsible test case|parameter1=value1|parameter2=value2|…}}
Example
On Template:W/testcases, the code
{{Collapsible test case |1=Fox tossing |2=Wikipedia asserts that ''fox tossing'' is an actual thing }}
calls both of the following and compares the result:
- Template:W as
{{W|Fox tossing|Wikipedia asserts that fox tossing is an actual thing}}
- Template:W/sandbox as
{{W/sandbox|Fox tossing|Wikipedia asserts that fox tossing is an actual thing}}
History
Copied from wikipedia:Template:Collapsible test case; also is documented there with examples.