Difference between revisions of "Template:Main/testcases"
Jump to navigation
Jump to search
(←Blanked the page) |
imported>Andrybak m (add whitespace for readability) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| + | {{test cases}} | ||
| + | The first output example in each pair is the main template, and second is the sandbox. | ||
| + | |||
| + | == Parameter category == | ||
| + | {{test case|_format=inline|_showcode=yes|category=false}} | ||
| + | |||
| + | == Positional parameters == | ||
| + | {{test case|_format=inline|_showcode=yes|John}} | ||
| + | |||
| + | {{test case|_format=inline|_showcode=yes|John|George}} | ||
| + | |||
| + | {{test case|_format=inline|_showcode=yes|John|George|Ringo}} | ||
| + | |||
| + | === Other namespaces links === | ||
| + | {{test case|_format=inline|_showcode=yes|:Category:John}} | ||
| + | |||
| + | {{test case|_format=inline|_showcode=yes|Template:John|George}} | ||
| + | |||
| + | {{test case|_format=inline|_showcode=yes|Talk:John|George|Ringo}} | ||
| + | |||
| + | === With anchor links === | ||
| + | {{test case|_format=inline|_showcode=yes|Lion#Etymology}} | ||
| + | |||
| + | === Missing positional parameter === | ||
| + | {{test case|_format=inline|_showcode=yes|John|}} | ||
| + | |||
| + | == Parameter l2 == | ||
| + | {{test case|_format=inline|_showcode=yes|History of the United States|RMS Titanic|WindSeeker|l2=RMS ''Titanic''}} | ||
Latest revision as of 22:04, 8 May 2020
The first output example in each pair is the main template, and second is the sandbox.
Contents
Parameter category
{{Main|category=false}}→{{Main/sandbox|category=false}}→
Positional parameters
{{Main|John}}→{{Main/sandbox|John}}→
{{Main|John|George}}→{{Main/sandbox|John|George}}→
{{Main|John|George|Ringo}}→{{Main/sandbox|John|George|Ringo}}→
Other namespaces links
{{Main|:Category:John}}→{{Main/sandbox|:Category:John}}→
{{Main|Template:John|George}}→{{Main/sandbox|Template:John|George}}→
{{Main|Talk:John|George|Ringo}}→{{Main/sandbox|Talk:John|George|Ringo}}→
With anchor links
{{Main|Lion#Etymology}}→{{Main/sandbox|Lion#Etymology}}→
Missing positional parameter
{{Main|John|}}→{{Main/sandbox|John|}}→
Parameter l2
{{Main|History of the United States|RMS Titanic|WindSeeker|l2=RMS ''Titanic''}}→{{Main/sandbox|History of the United States|RMS Titanic|WindSeeker|l2=RMS ''Titanic''}}→