Template:Enum/testcases
Jump to navigation
Jump to search
| This is the template test cases page for the sandbox of Template:Enum. Script error: No such module "Purge". 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
Testing sandbox version
{{../sandbox}}
Testing main template
Defaults for named parameters
| Input | Output |
|---|---|
{{Enum}} |
|
{{Enum|A}} |
A |
{{Enum|A|}} |
A |
{{Enum|A|B}} |
A and B |
{{Enum|A|B|}} |
A and B |
{{Enum|A|B|C}} |
A, B and C |
{{Enum|A|B|C|}} |
A, B and C |
{{Enum|A|B|C|D}} |
A, B, C and D |
{{Enum|A|B|C|D|}} |
A, B, C and D |
"after" parameter
| Input | Output |
|---|---|
{{Enum|after=.}} |
|
{{Enum|after=.|}} |
|
{{Enum|after=.|A}} |
A. |
{{Enum|after=.|A|}} |
A. |
{{Enum|after=.|A|B}} |
A and B. |
{{Enum|after=.|A|B|C}} |
A, B and C. |
{{Enum|after=.|A|B|C|}} |
A, B and C. |
{{Enum|after=.|A|B|C|D}} |
A, B, C and D. |
{{Enum|after=.|A|B|C|D|}} |
A, B, C and D. |
"and" parameter
| Input | Output |
|---|---|
{{Enum|and=+}} |
|
{{Enum|and=+|}} |
|
{{Enum|and=+|A}} |
A |
{{Enum|and=+|A|}} |
A |
{{Enum|and=+|A|B}} |
A+B |
{{Enum|and=+|A|B|C}} |
A, B+C |
{{Enum|and=+|A|B|C|}} |
A, B+C |
{{Enum|and=+|A|B|C|D}} |
A, B, C+D |
{{Enum|and=+|A|B|C|D|}} |
A, B, C+D |
"comma" parameter
| Input | Output |
|---|---|
{{Enum|comma=;}} |
|
{{Enum|comma=;|}} |
|
{{Enum|comma=;|A}} |
A |
{{Enum|comma=;|A|}} |
A |
{{Enum|comma=;|A|B}} |
A and B |
{{Enum|comma=;|A|B|C}} |
A;B and C |
{{Enum|comma=;|A|B|C|}} |
A;B and C |
{{Enum|comma=;|A|B|C|D}} |
A;B;C and D |
{{Enum|comma=;|A|B|C|D|}} |
A;B;C and D |