Difference between revisions of "Template:For/testcases"
Jump to navigation
Jump to search
With
imported>K0D3R (removed hatnote template error) |
imported>Andrybak (use Template:test case; use Template:test case nowiki; add section headers) |
||
| Line 1: | Line 1: | ||
{{template test cases notice}} | {{template test cases notice}} | ||
| − | + | == Positional parameters == | |
| − | + | {{test case|_format=inline|_showcode=yes|OTHER TOPIC}} | |
| − | |||
---- | ---- | ||
| − | + | {{test case|_format=inline|_showcode=yes|OTHER TOPIC|PAGE1}} | |
| − | |||
---- | ---- | ||
| − | + | {{test case|_format=inline|_showcode=yes|OTHER TOPIC|PAGE1|PAGE2}} | |
| − | |||
---- | ---- | ||
| − | + | {{test case|_format=inline|_showcode=yes|OTHER TOPIC|PAGE1|PAGE2|PAGE3}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
---- | ---- | ||
| + | {{test case|_format=inline|_showcode=yes|OTHER TOPIC|PAGE1|PAGE2|PAGE3|PAGE4}} | ||
| + | |||
| + | === Empty positional parameters === | ||
| + | {{test case|_format=inline|_showcode=yes|USE1|PAGE1||PAGE3}} | ||
| + | |||
| + | === With anchor links === | ||
| + | {{test case|_format=inline|_showcode=yes|OTHER TOPIC|PAGE1#A|PAGE2#B|PAGE3#C|PAGE4#D}} | ||
| + | |||
| + | === With {{tnull|!}} === | ||
| + | {{test case nowiki|format=inline|showcode=yes|<nowiki>{{__TEMPLATENAME__|OTHER TOPIC|PAGE1 (disambiguation){{!}}PAGE1|PAGE2 (disambiguation){{!}}PAGE2|PAGE3 (disambiguation){{!}}PAGE3</nowiki>}} | ||
| + | |||
| + | === Parameter "category" === | ||
*{{tlx|For<!----->|OTHER TOPIC|PAGE1|PAGE2|5=category=no}} → {{For<!----->|OTHER TOPIC|PAGE1|PAGE2|category=no}} | *{{tlx|For<!----->|OTHER TOPIC|PAGE1|PAGE2|5=category=no}} → {{For<!----->|OTHER TOPIC|PAGE1|PAGE2|category=no}} | ||
*{{tlx|For/sandbox|OTHER TOPIC|PAGE1|PAGE2|5=category=no}} → {{For/sandbox|OTHER TOPIC|PAGE1|PAGE2|category=no}} | *{{tlx|For/sandbox|OTHER TOPIC|PAGE1|PAGE2|5=category=no}} → {{For/sandbox|OTHER TOPIC|PAGE1|PAGE2|category=no}} | ||
| Line 28: | Line 27: | ||
*{{tlx|For<!----->|other uses|PAGE1|PAGE2|5=category=no}} → {{For<!----->|other uses|PAGE1|PAGE2|category=no}} | *{{tlx|For<!----->|other uses|PAGE1|PAGE2|5=category=no}} → {{For<!----->|other uses|PAGE1|PAGE2|category=no}} | ||
*{{tlx|For/sandbox|other uses|PAGE1|PAGE2|5=category=no}} → {{For/sandbox|other uses|PAGE1|PAGE2|category=no}} | *{{tlx|For/sandbox|other uses|PAGE1|PAGE2|5=category=no}} → {{For/sandbox|other uses|PAGE1|PAGE2|category=no}} | ||
| − | |||
| − | |||
| − | |||
Revision as of 21:57, 8 May 2020
| This is the template test cases page for the sandbox of Template:For. 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
Positional parameters
{{For|OTHER TOPIC}}→{{For/sandbox|OTHER TOPIC}}→
{{For|OTHER TOPIC|PAGE1}}→{{For/sandbox|OTHER TOPIC|PAGE1}}→
{{For|OTHER TOPIC|PAGE1|PAGE2}}→{{For/sandbox|OTHER TOPIC|PAGE1|PAGE2}}→
{{For|OTHER TOPIC|PAGE1|PAGE2|PAGE3}}→{{For/sandbox|OTHER TOPIC|PAGE1|PAGE2|PAGE3}}→
{{For|OTHER TOPIC|PAGE1|PAGE2|PAGE3|PAGE4}}→{{For/sandbox|OTHER TOPIC|PAGE1|PAGE2|PAGE3|PAGE4}}→
Empty positional parameters
{{For|USE1|PAGE1||PAGE3}}→{{For/sandbox|USE1|PAGE1||PAGE3}}→
With anchor links
{{For|OTHER TOPIC|PAGE1#A|PAGE2#B|PAGE3#C|PAGE4#D}}→{{For/sandbox|OTHER TOPIC|PAGE1#A|PAGE2#B|PAGE3#C|PAGE4#D}}→
With {{!}}
{{For|OTHER TOPIC|PAGE1 (disambiguation){{!}}PAGE1|PAGE2 (disambiguation){{!}}PAGE2|PAGE3 (disambiguation){{!}}PAGE3→ {{For|OTHER TOPIC|PAGE1 (disambiguation)|PAGE1|PAGE2 (disambiguation)|PAGE2|PAGE3 (disambiguation)|PAGE3{{For/sandbox|OTHER TOPIC|PAGE1 (disambiguation){{!}}PAGE1|PAGE2 (disambiguation){{!}}PAGE2|PAGE3 (disambiguation){{!}}PAGE3→ {{For/sandbox|OTHER TOPIC|PAGE1 (disambiguation)|PAGE1|PAGE2 (disambiguation)|PAGE2|PAGE3 (disambiguation)|PAGE3
Parameter "category"
{{For|OTHER TOPIC|PAGE1|PAGE2|category=no}}→{{For/sandbox|OTHER TOPIC|PAGE1|PAGE2|category=no}}→
{{For|other uses|PAGE1|PAGE2|category=no}}→{{For/sandbox|other uses|PAGE1|PAGE2|category=no}}→