Template:Category link if exists/testcases
Appearance
| This is the template test cases page for the sandbox of Template:Category link if exists. 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: |
{{Category link if exists}}
{{Category link if exists|United States}}
| {{Category link if exists}} | → |
United States[[:Category:United States|United States]] |
|---|---|---|
| {{Category link if exists/sandbox}} | → |
United States[[:Category:United States|United States]] |
{{Category link if exists|A non-existent category}}
| {{Category link if exists}} | → |
A non-existent category<span style="color:#888">A non-existent category</span> |
|---|---|---|
| {{Category link if exists/sandbox}} | → |
A non-existent category<span style="color:#888">A non-existent category</span> |
{{Category link if exists|United States|USA}}
| {{Category link if exists}} | → |
USA[[:Category:United States|USA]] |
|---|---|---|
| {{Category link if exists/sandbox}} | → |
USA[[:Category:United States|USA]] |
{{Category link if exists|A non-existent category|Foo}}
| {{Category link if exists}} | → |
Foo<span style="color:#888">Foo</span> |
|---|---|---|
| {{Category link if exists/sandbox}} | → |
Foo<span style="color:#888">Foo</span> |