Difference between revisions of "Template:LinkCatIfExists/doc"

From blackwiki
Jump to navigation Jump to search
imported>Fayenatic london
imported>Tom.Reding
m (+{{High-use|3408}})
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
{{High-use|3408}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
This a simple helper template, to be used in other templates.  It displays a link to a category if that category exists; otherwise it just displays plaintext.
 
This a simple helper template, to be used in other templates.  It displays a link to a category if that category exists; otherwise it just displays plaintext.

Revision as of 17:02, 26 January 2019

This a simple helper template, to be used in other templates. It displays a link to a category if that category exists; otherwise it just displays plaintext.

An optional display text may be added as a second parameter

Usage

{{LinkCatIfExists|CategoryName|OptionalDisplayText}}

Simple usage
{{LinkCatIfExists|CategoryName}}
Examples:
With optional display text
{{LinkCatIfExists|CategoryName|DisplayText}}
Examples:

See also