Template:LinkCatIfExists/doc

< Template:LinkCatIfExists
Revision as of 16:58, 11 October 2024 by Muskit Gergous (talk | contribs) (Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Bharatdata (see Bharatpedia:Bharatdata) --> {{Template shortcut|LinkCatIfExists}} This is 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 greyed-out plaintext. Optional display text may be added as a second parameter. == Usage == {{Tlx|LinkCatIfExists|Categ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is 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 greyed-out plaintext.

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