Difference between revisions of "Template:Enum/testcases"
Jump to navigation
Jump to search
imported>SimonTrew m (moved Template:Ety/List/testcases to Template:Enum/testcases: Move along with parent template) |
imported>SimonTrew (→Testing main template: Added named parameters sections) |
||
| Line 12: | Line 12: | ||
{{clear}} | {{clear}} | ||
== Testing main template == | == Testing main template == | ||
| + | |||
| + | === Defaults for named parameters === | ||
{{table | {{table | ||
| Line 17: | Line 19: | ||
|hdrs=Input {{!!}} Output | |hdrs=Input {{!!}} Output | ||
|row1={{tlc|{{BASEPAGENAME}}}} {{!!}} {{{{BASEPAGENAME}}|}} | |row1={{tlc|{{BASEPAGENAME}}}} {{!!}} {{{{BASEPAGENAME}}|}} | ||
| − | + | |row2={{tlc|{{BASEPAGENAME}}|A}} {{!!}} {{{{BASEPAGENAME}}|A}} | |
| − | | | + | |row3={{tlc|{{BASEPAGENAME}}|A|}} {{!!}} {{{{BASEPAGENAME}}|A|}} |
| − | | | + | |row4={{tlc|{{BASEPAGENAME}}|A|B}} {{!!}} {{{{BASEPAGENAME}}|A|B}} |
| − | | | + | |row5={{tlc|{{BASEPAGENAME}}|A|B|}} {{!!}} {{{{BASEPAGENAME}}|A|B|}} |
| − | | | ||
|row6={{tlc|{{BASEPAGENAME}}|A|B|C}} {{!!}} {{{{BASEPAGENAME}}|A|B|C}} | |row6={{tlc|{{BASEPAGENAME}}|A|B|C}} {{!!}} {{{{BASEPAGENAME}}|A|B|C}} | ||
|row7={{tlc|{{BASEPAGENAME}}|A|B|C|}} {{!!}} {{{{BASEPAGENAME}}|A|B|C|}} | |row7={{tlc|{{BASEPAGENAME}}|A|B|C|}} {{!!}} {{{{BASEPAGENAME}}|A|B|C|}} | ||
|row8={{tlc|{{BASEPAGENAME}}|A|B|C|D}} {{!!}} {{{{BASEPAGENAME}}|A|B|C|D}} | |row8={{tlc|{{BASEPAGENAME}}|A|B|C|D}} {{!!}} {{{{BASEPAGENAME}}|A|B|C|D}} | ||
|row9={{tlc|{{BASEPAGENAME}}|A|B|C|D|}} {{!!}} {{{{BASEPAGENAME}}|A|B|C|D|}} | |row9={{tlc|{{BASEPAGENAME}}|A|B|C|D|}} {{!!}} {{{{BASEPAGENAME}}|A|B|C|D|}} | ||
| + | }} | ||
| + | |||
| + | === "after" parameter === | ||
| + | |||
| + | {{table | ||
| + | |type=class="wikitable" | ||
| + | |hdrs=Input {{!!}} Output | ||
| + | |row1={{tlc|{{BASEPAGENAME}}|2=after=.}} {{!!}} {{{{BASEPAGENAME}}|after=.}} | ||
| + | |row2={{tlc|{{BASEPAGENAME}}|2=after=.|3=}} {{!!}} {{{{BASEPAGENAME}}|after=.|}} | ||
| + | |row3={{tlc|{{BASEPAGENAME}}|2=after=.|3=A}} {{!!}} {{{{BASEPAGENAME}}|after=.|A}} | ||
| + | |row4={{tlc|{{BASEPAGENAME}}|2=after=.|3=A|}} {{!!}} {{{{BASEPAGENAME}}|after=.|A|}} | ||
| + | |row5={{tlc|{{BASEPAGENAME}}|2=after=.|3=A|4=B}} {{!!}} {{{{BASEPAGENAME}}|after=.|A|B}} | ||
| + | |row6={{tlc|{{BASEPAGENAME}}|2=after=.|3=A|4=B|5=C}} {{!!}} {{{{BASEPAGENAME}}|after=.|A|B|C}} | ||
| + | |row7={{tlc|{{BASEPAGENAME}}|2=after=.|3=A|4=B|5=C|6=}} {{!!}} {{{{BASEPAGENAME}}|after=.|A|B|C|}} | ||
| + | |row8={{tlc|{{BASEPAGENAME}}|2=after=.|3=A|4=B|5=C|6=D}} {{!!}} {{{{BASEPAGENAME}}|after=.|A|B|C|D}} | ||
| + | |row9={{tlc|{{BASEPAGENAME}}|2=after=.|3=A|4=B|5=C|6=D|7=}} {{!!}} {{{{BASEPAGENAME}}|after=.|A|B|C|D|}} | ||
| + | }} | ||
| + | |||
| + | === "and" parameter === | ||
| + | |||
| + | {{table | ||
| + | |type=class="wikitable" | ||
| + | |hdrs=Input {{!!}} Output | ||
| + | |row1={{tlc|{{BASEPAGENAME}}|2=and=+}} {{!!}} {{{{BASEPAGENAME}}|and=+}} | ||
| + | |row2={{tlc|{{BASEPAGENAME}}|2=and=+|3=}} {{!!}} {{{{BASEPAGENAME}}|and=+|}} | ||
| + | |row3={{tlc|{{BASEPAGENAME}}|2=and=+|3=A}} {{!!}} {{{{BASEPAGENAME}}|and=+|A}} | ||
| + | |row4={{tlc|{{BASEPAGENAME}}|2=and=+|3=A|}} {{!!}} {{{{BASEPAGENAME}}|and=+|A|}} | ||
| + | |row5={{tlc|{{BASEPAGENAME}}|2=and=+|3=A|4=B}} {{!!}} {{{{BASEPAGENAME}}|and=+|A|B}} | ||
| + | |row6={{tlc|{{BASEPAGENAME}}|2=and=+|3=A|4=B|5=C}} {{!!}} {{{{BASEPAGENAME}}|and=+|A|B|C}} | ||
| + | |row7={{tlc|{{BASEPAGENAME}}|2=and=+|3=A|4=B|5=C|6=}} {{!!}} {{{{BASEPAGENAME}}|and=+|A|B|C|}} | ||
| + | |row8={{tlc|{{BASEPAGENAME}}|2=and=+|3=A|4=B|5=C|6=D}} {{!!}} {{{{BASEPAGENAME}}|and=+|A|B|C|D}} | ||
| + | |row9={{tlc|{{BASEPAGENAME}}|2=and=+|3=A|4=B|5=C|6=D|7=}} {{!!}} {{{{BASEPAGENAME}}|and=+|A|B|C|D|}} | ||
| + | }} | ||
| + | |||
| + | === "comma" parameter === | ||
| − | | | + | {{table |
| − | | | + | |type=class="wikitable" |
| − | | | + | |hdrs=Input {{!!}} Output |
| − | | | + | |row1={{tlc|{{BASEPAGENAME}}|2=comma=;}} {{!!}} {{{{BASEPAGENAME}}|comma=;}} |
| − | | | + | |row2={{tlc|{{BASEPAGENAME}}|2=comma=;|3=}} {{!!}} {{{{BASEPAGENAME}}|comma=;|}} |
| − | | | + | |row3={{tlc|{{BASEPAGENAME}}|2=comma=;|3=A}} {{!!}} {{{{BASEPAGENAME}}|comma=;|A}} |
| − | | | + | |row4={{tlc|{{BASEPAGENAME}}|2=comma=;|3=A|}} {{!!}} {{{{BASEPAGENAME}}|comma=;|A|}} |
| − | | | + | |row5={{tlc|{{BASEPAGENAME}}|2=comma=;|3=A|4=B}} {{!!}} {{{{BASEPAGENAME}}|comma=;|A|B}} |
| − | | | + | |row6={{tlc|{{BASEPAGENAME}}|2=comma=;|3=A|4=B|5=C}} {{!!}} {{{{BASEPAGENAME}}|comma=;|A|B|C}} |
| + | |row7={{tlc|{{BASEPAGENAME}}|2=comma=;|3=A|4=B|5=C|6=}} {{!!}} {{{{BASEPAGENAME}}|comma=;|A|B|C|}} | ||
| + | |row8={{tlc|{{BASEPAGENAME}}|2=comma=;|3=A|4=B|5=C|6=D}} {{!!}} {{{{BASEPAGENAME}}|comma=;|A|B|C|D}} | ||
| + | |row9={{tlc|{{BASEPAGENAME}}|2=comma=;|3=A|4=B|5=C|6=D|7=}} {{!!}} {{{{BASEPAGENAME}}|comma=;|A|B|C|D|}} | ||
}} | }} | ||
Revision as of 12:18, 1 July 2010
| 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}}