Template:Collapsible test case

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search
[edit] [purge] Template-info.svg Template documentation

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:

  1. Template:W as {{W|Fox tossing|Wikipedia asserts that fox tossing is an actual thing}}
  2. 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.