Difference between revisions of "Template:Enum/Item/testcases"
< Template:Enum | Item
Jump to navigation
Jump to search
imported>SimonTrew m (moved Template:Ety/ListItem/testcases to Template:Enum/Item/testcases: Move along with parent template) |
imported>Frietjes |
||
| Line 1: | Line 1: | ||
{{template test cases notice}} | {{template test cases notice}} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
== Testing main template == | == Testing main template == | ||
| − | { | + | {| class="wikitable" |
| − | | | + | ! Input || Output |
| − | | | + | |- |
| − | | | + | |<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|}}</nowiki> || {{{{BASEPAGENAME}}|}} |
| − | | | + | |- |
| − | | | + | |<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|A}}</nowiki> || {{{{BASEPAGENAME}}|A}} |
| − | | | + | |- |
| − | | | + | |<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|A|}}</nowiki> || {{{{BASEPAGENAME}}|A|}} |
| − | | | + | |- |
| − | | | + | |<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|A|B}}</nowiki> || {{{{BASEPAGENAME}}|A|B}} |
| − | | | + | |- |
| − | | | + | |<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|A|B|}}</nowiki> || {{{{BASEPAGENAME}}|A|B|}} |
| + | |- | ||
| + | |<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|A|B|C}}</nowiki> || {{{{BASEPAGENAME}}|A|B|C}} | ||
| + | |- | ||
| + | |<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|A|B|C|}}</nowiki> || {{{{BASEPAGENAME}}|A|B|C|}} | ||
| + | |- | ||
| + | |<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|A|B|C|D}}</nowiki> || {{{{BASEPAGENAME}}|A|B|C|D}} | ||
| + | |- | ||
| + | |<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|A|B|C|D|}}</nowiki> || {{{{BASEPAGENAME}}|A|B|C|D|}} | ||
| − | | | + | |- |
| − | | | + | |<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|after=.}}</nowiki> || {{{{BASEPAGENAME}}|after=.}} |
| − | | | + | |- |
| − | | | + | |<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|after=.|}}</nowiki> || {{{{BASEPAGENAME}}|after=.|}} |
| − | | | + | |- |
| − | | | + | |<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|after=.|A}}</nowiki> || {{{{BASEPAGENAME}}|after=.|A}} |
| − | | | + | |- |
| − | | | + | |<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|after=.|A|}}</nowiki> || {{{{BASEPAGENAME}}|after=.|A|}} |
| − | | | + | |- |
| + | |<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|after=.|A|B}}</nowiki> || {{{{BASEPAGENAME}}|after=.|A|B}} | ||
| + | |- | ||
| + | |<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|after=.|A|B|C}}</nowiki> || {{{{BASEPAGENAME}}|after=.|A|B|C}} | ||
| + | |- | ||
| + | |<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|after=.|A|B|C|}}</nowiki> || {{{{BASEPAGENAME}}|after=.|A|B|C|}} | ||
| + | |- | ||
| + | |<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|after=.|A|B|C|D}}</nowiki> || {{{{BASEPAGENAME}}|after=.|A|B|C|D}} | ||
| + | |- | ||
| + | |<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|after=.|A|B|C|D|}}</nowiki> || {{{{BASEPAGENAME}}|after=.|A|B|C|D|}} | ||
}} | }} | ||
Revision as of 16:48, 2 November 2014
| 42px | This is the template test cases page for the sandbox of Template:Enum/Item. 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: |
Testing main template
| Input | Output |
|---|---|
| {{Enum/Item|}} | {{Enum/Item}} expects at least one parameter
|
| {{Enum/Item|A}} | A |
| {{Enum/Item|A|}} | A |
| {{Enum/Item|A|B}} | A and |
| {{Enum/Item|A|B|}} | A and |
| {{Enum/Item|A|B|C}} | A, |
| {{Enum/Item|A|B|C|}} | A, |
| {{Enum/Item|A|B|C|D}} | A, |
| {{Enum/Item|A|B|C|D|}} | A, |
| {{Enum/Item|after=.}} | {{Enum/Item}} expects at least one parameter
|
| {{Enum/Item|after=.|}} | {{Enum/Item}} expects at least one parameter
|
| {{Enum/Item|after=.|A}} | A. |
| {{Enum/Item|after=.|A|}} | A. |
| {{Enum/Item|after=.|A|B}} | A and |
| {{Enum/Item|after=.|A|B|C}} | A, |
| {{Enum/Item|after=.|A|B|C|}} | A, |
| {{Enum/Item|after=.|A|B|C|D}} | A, |
| {{Enum/Item|after=.|A|B|C|D|}} | A,
}} |