Difference between revisions of "Template:LinkCatIfExists/doc"

From blackwiki
Jump to navigation Jump to search
imported>Tom.Reding
m (+{{High-use|3408}})
imported>Tom.Reding
m (→‎top: ce)
 
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
{{High-use|3408}}
+
{{High-use|3267}}
 
<!-- 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 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 plaintext.
 +
 
 +
Optional display text may be added as a second parameter.
  
An optional display text may be added as a second parameter
 
 
== Usage ==
 
== Usage ==
  

Latest revision as of 13:00, 5 May 2019

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 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