Template:Enum/testcases
This is the template test cases page for the sandbox of Template:Enum. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Contents
Defaults for named parameters[edit]
Input | Main | Sandbox |
---|---|---|
{{Enum}} |
||
A}} | A | A |
A}} | A | A |
A|B}} | A and B | A and B |
A|B}} | A and B | A and B |
A|B|C}} | A, B and C | A, B and C |
A|B|C}} | A, B and C | A, B and C |
A|B|C|D}} | A, B, C and D | A, B, C and D |
A|B|C|D}} | A, B, C and D | A, B, C and D |
"after" parameter[edit]
Input | Main | Sandbox |
---|---|---|
after=.}} | ||
after=.}} | ||
after=.|A}} | A. | A. |
after=.|A}} | A. | A. |
after=.|A|B}} | A and B. | A and B. |
after=.|A|B|C}} | A, B and C. | A, B and C. |
after=.|A|B|C}} | A, B and C. | A, B and C. |
after=.|A|B|C|D}} | A, B, C and D. | A, B, C and D. |
after=.|A|B|C|D}} | A, B, C and D. | A, B, C and D. |
"and" parameter[edit]
Input | Main | Sandbox |
---|---|---|
and=+}} | ||
and=+}} | ||
and=+|A}} | A | A |
and=+|A}} | A | A |
and=+|A|B}} | A+B | A+B |
and=+|A|B|C}} | A, B+C | A, B+C |
and=+|A|B|C}} | A, B+C | A, B+C |
and=+|A|B|C|D}} | A, B, C+D | A, B, C+D |
and=+|A|B|C|D}} | A, B, C+D | A, B, C+D |
"comma" parameter[edit]
Input | Main | Sandbox |
---|---|---|
comma=;}} | ||
comma=;}} | ||
comma=;|A}} | A | A |
comma=;|A}} | A | A |
comma=;|A|B}} | A and B | A and B |
comma=;|A|B|C}} | A;B and C | A;B and C |
comma=;|A|B|C}} | A;B and C | A;B and C |
comma=;|A|B|C|D}} | A;B;C and D | A;B;C and D |
comma=;|A|B|C|D}} | A;B;C and D | A;B;C and D |
"comma" parameter with whitespace[edit]
comma=; }} | ||
comma=; }} | ||
comma=; |A}} | A | A |
comma=; |A}} | A | A |
comma=; |A|B}} | A and B | A and B |
comma=; |A|B|C}} | A; B and C | A; B and C |
comma=; |A|B|C}} | A; B and C | A; B and C |
comma=; |A|B|C|D}} | A; B; C and D | A; B; C and D |
comma=; |A|B|C|D}} | A; B; C and D | A; B; C and D |