Template:If in page/testcases
Appearance
This is the template test cases page for the sandbox of Template:If in page. 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 and parsers with these links: |
Pattern matches
Pattern does not match
Pattern matches, no third parameter
Pattern does not match, no third parameter
Pattern matches, no second parameter
Other page, pattern matches
Other page, pattern does not match
{{If in page|Non ?Matching ?Pattern|match|no match|page=Template:Infobox}}
{{If in page}}
no match
no match
Invalid pattern, can crash
{{If in page|%|match|no match}}
{{If in page}}
Lua error: malformed pattern (ends with '%').
Lua error: malformed pattern (ends with '%').
Leading and trailing whitespace
Leading and trailing whitespace workaround
Bad title
{{If in page|pattern|match|no match|page=Talk:Template:If in title}}
{{If in page}}
no match
no match
Non existent page
{{If in page|pattern|match|no match|page='''This does not exist'''}}
{{If in page}}
no match
no match
sub=yes