Template:Collapsible test case/doc
Jump to navigation
Jump to search
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.