Difference between revisions of "Template:For/testcases"
Jump to navigation
Jump to search
imported>Nihiltres (Merged example lists for easier comparisons) |
imported>Nihiltres (Added/tweaked testcases to highlight new module-sandbox behaviour) |
||
| Line 2: | Line 2: | ||
| − | *{{tlx|For<! | + | *{{tlx|For<!----->|OTHER TOPIC}} → {{For<!----->|OTHER TOPIC}} |
*{{tlx|For/sandbox|OTHER TOPIC}} → {{For/sandbox|OTHER TOPIC}} | *{{tlx|For/sandbox|OTHER TOPIC}} → {{For/sandbox|OTHER TOPIC}} | ||
---- | ---- | ||
| − | *{{tlx|For<! | + | *{{tlx|For<!----->|OTHER TOPIC|PAGE1}} → {{For<!----->|OTHER TOPIC|PAGE1}} |
*{{tlx|For/sandbox|OTHER TOPIC|PAGE1}} → {{For/sandbox|OTHER TOPIC|PAGE1}} | *{{tlx|For/sandbox|OTHER TOPIC|PAGE1}} → {{For/sandbox|OTHER TOPIC|PAGE1}} | ||
---- | ---- | ||
| − | *{{tlx|For<! | + | *{{tlx|For<!----->|OTHER TOPIC|PAGE1|PAGE2}} → {{For<!----->|OTHER TOPIC|PAGE1|PAGE2}} |
*{{tlx|For/sandbox|OTHER TOPIC|PAGE1|PAGE2}} → {{For/sandbox|OTHER TOPIC|PAGE1|PAGE2}} | *{{tlx|For/sandbox|OTHER TOPIC|PAGE1|PAGE2}} → {{For/sandbox|OTHER TOPIC|PAGE1|PAGE2}} | ||
---- | ---- | ||
| − | *{{tlx|For<! | + | *{{tlx|For<!----->|OTHER TOPIC|PAGE1|PAGE2|PAGE3}} → {{For<!----->|OTHER TOPIC|PAGE1|PAGE2|PAGE3}} |
*{{tlx|For/sandbox|OTHER TOPIC|PAGE1|PAGE2|PAGE3}} → {{For/sandbox|OTHER TOPIC|PAGE1|PAGE2|PAGE3}} | *{{tlx|For/sandbox|OTHER TOPIC|PAGE1|PAGE2|PAGE3}} → {{For/sandbox|OTHER TOPIC|PAGE1|PAGE2|PAGE3}} | ||
---- | ---- | ||
| − | *{{tlx|For<! | + | *{{tlx|For<!----->|OTHER TOPIC|PAGE1|PAGE2|PAGE3|PAGE4}} → {{For<!----->|OTHER TOPIC|PAGE1|PAGE2|PAGE3|PAGE4}} |
*{{tlx|For/sandbox|OTHER TOPIC|PAGE1|PAGE2|PAGE3|PAGE4}} → {{For/sandbox|OTHER TOPIC|PAGE1|PAGE2|PAGE3|PAGE4}} | *{{tlx|For/sandbox|OTHER TOPIC|PAGE1|PAGE2|PAGE3|PAGE4}} → {{For/sandbox|OTHER TOPIC|PAGE1|PAGE2|PAGE3|PAGE4}} | ||
---- | ---- | ||
| − | *{{tlx|For<! | + | *{{tlx|For<!----->|OTHER TOPIC|PAGE1#A|PAGE2#B|PAGE3#C|PAGE4#D}} → {{For<!----->|OTHER TOPIC|PAGE1#A|PAGE2#B|PAGE3#C|PAGE4#D}} |
*{{tlx|For/sandbox|OTHER TOPIC|PAGE1#A|PAGE2#B|PAGE3#C|PAGE4#D}} → {{For/sandbox|OTHER TOPIC|PAGE1#A|PAGE2#B|PAGE3#C|PAGE4#D}} | *{{tlx|For/sandbox|OTHER TOPIC|PAGE1#A|PAGE2#B|PAGE3#C|PAGE4#D}} → {{For/sandbox|OTHER TOPIC|PAGE1#A|PAGE2#B|PAGE3#C|PAGE4#D}} | ||
---- | ---- | ||
| Line 23: | Line 23: | ||
*{{tlx|For/sandbox|OTHER TOPIC|PAGE1 (disambiguation){{tl|!}}PAGE1|PAGE2 (disambiguation){{tl|!}}PAGE2|PAGE3 (disambiguation){{tl|!}}PAGE3}} → {{For/sandbox|OTHER TOPIC|PAGE1 (disambiguation){{!}}PAGE1|PAGE2 (disambiguation){{!}}PAGE2|PAGE3 (disambiguation){{!}}PAGE3}} | *{{tlx|For/sandbox|OTHER TOPIC|PAGE1 (disambiguation){{tl|!}}PAGE1|PAGE2 (disambiguation){{tl|!}}PAGE2|PAGE3 (disambiguation){{tl|!}}PAGE3}} → {{For/sandbox|OTHER TOPIC|PAGE1 (disambiguation){{!}}PAGE1|PAGE2 (disambiguation){{!}}PAGE2|PAGE3 (disambiguation){{!}}PAGE3}} | ||
---- | ---- | ||
| − | *{{tlx|For<! | + | *{{tlx|For<!----->| |PAGE1|PAGE2|5=category=no}} → {{For<!----->||PAGE1|PAGE2|category=no}} |
| − | *{{tlx|For/sandbox| |PAGE1|PAGE2}} → {{For/sandbox||PAGE1|PAGE2}} | + | *{{tlx|For/sandbox| |PAGE1|PAGE2|5=category=no}} → {{For/sandbox||PAGE1|PAGE2|category=no}} |
---- | ---- | ||
| − | *{{tlx|For<!------>|USE1|PAGE1| |PAGE3}} → {{For<!----->|USE1|PAGE1||PAGE3}} | + | *{{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<!----->|USE1|PAGE1| |PAGE3}} → {{For<!----->|USE1|PAGE1||PAGE3}} | ||
*{{tlx|For/sandbox|USE1|PAGE1| |PAGE3}} → {{For/sandbox|USE1|PAGE1||PAGE3}} | *{{tlx|For/sandbox|USE1|PAGE1| |PAGE3}} → {{For/sandbox|USE1|PAGE1||PAGE3}} | ||
Revision as of 19:51, 14 July 2018
| 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: |
{{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}}→
{{For|OTHER TOPIC|PAGE1#A|PAGE2#B|PAGE3#C|PAGE4#D}}→{{For/sandbox|OTHER TOPIC|PAGE1#A|PAGE2#B|PAGE3#C|PAGE4#D}}→
{{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| |PAGE1|PAGE2|category=no}}→ Error: no context parameter provided. Use {{other uses}} for "other uses" hatnotes. (help).{{For/sandbox| |PAGE1|PAGE2|category=no}}→ Error: no context parameter provided. Use {{other uses}} for "other uses" hatnotes. (help).
{{For|other uses|PAGE1|PAGE2|category=no}}→{{For/sandbox|other uses|PAGE1|PAGE2|category=no}}→
{{For|USE1|PAGE1| |PAGE3}}→{{For/sandbox|USE1|PAGE1| |PAGE3}}→