Jump to content

Template:Enum/testcases

From Wikipedia, the free encyclopedia

Defaults for named parameters

[edit]
Input Main Sandbox
{{Enum}}
{{Enum|A}} A A
{{Enum|A}} A A
{{Enum|A|B}} A and B A and B
{{Enum|A|B}} A and B A and B
{{Enum|A|B|C}} A, B and C A, B and C
{{Enum|A|B|C}} A, B and C A, B and C
{{Enum|A|B|C|D}} A, B, C and D A, B, C and D
{{Enum|A|B|C|D}} A, B, C and D A, B, C and D

"after" parameter

[edit]
Input Main Sandbox
{{Enum|after=.}}
{{Enum|after=.}}
{{Enum|after=.|A}} A. A.
{{Enum|after=.|A}} A. A.
{{Enum|after=.|A|B}} A and B. A and B.
{{Enum|after=.|A|B|C}} A, B and C. A, B and C.
{{Enum|after=.|A|B|C}} A, B and C. A, B and C.
{{Enum|after=.|A|B|C|D}} A, B, C and D. A, B, C and D.
{{Enum|after=.|A|B|C|D}} A, B, C and D. A, B, C and D.

"and" parameter

[edit]
Input Main Sandbox
{{Enum|and=+}}
{{Enum|and=+}}
{{Enum|and=+|A}} A A
{{Enum|and=+|A}} A A
{{Enum|and=+|A|B}} A+B A+B
{{Enum|and=+|A|B|C}} A, B+C A, B+C
{{Enum|and=+|A|B|C}} A, B+C A, B+C
{{Enum|and=+|A|B|C|D}} A, B, C+D A, B, C+D
{{Enum|and=+|A|B|C|D}} A, B, C+D A, B, C+D

"comma" parameter

[edit]
Input Main Sandbox
{{Enum|comma=;}}
{{Enum|comma=;}}
{{Enum|comma=;|A}} A A
{{Enum|comma=;|A}} A A
{{Enum|comma=;|A|B}} A and B A and B
{{Enum|comma=;|A|B|C}} A;B and C A;B and C
{{Enum|comma=;|A|B|C}} A;B and C A;B and C
{{Enum|comma=;|A|B|C|D}} A;B;C and D A;B;C and D
{{Enum|comma=;|A|B|C|D}} A;B;C and D A;B;C and D

"comma" parameter with whitespace

[edit]
{{Enum|comma=; }}
{{Enum|comma=; }}
{{Enum|comma=; |A}} A A
{{Enum|comma=; |A}} A A
{{Enum|comma=; |A|B}} A and B A and B
{{Enum|comma=; |A|B|C}} A; B and C A; B and C
{{Enum|comma=; |A|B|C}} A; B and C A; B and C
{{Enum|comma=; |A|B|C|D}} A; B; C and D A; B; C and D
{{Enum|comma=; |A|B|C|D}} A; B; C and D A; B; C and D