Template:CatLink: Difference between revisions

From A KoL Wiki
imported>Fig bucket
m Template:Cl moved to Template:CatLink: free up for more consistent naming of ceil and floor templates
imported>Flargen
m better cat
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:
{{Code2}}
{{Code2}}
== Usage ==
== Usage ==
The '''Category link (cl)''' template is used to display a category name as a link to the category, without including that page into the category.
The '''Category link (CatLink)''' template is used to display a category name as a link to the category, without including that page into the category.


'''Example:'''
'''Example:'''
:'''<nowiki>{{cl|Administration}}</nowiki>'''
:'''<nowiki>{{CatLink|Administration}}</nowiki>'''


displays as
displays as


:{{cl|Administration}}
:{{CatLink|Administration}}


[[Category:Templates|Cl]]</noinclude>
[[Category:Utility Templates|CatLink]]</noinclude>

Latest revision as of 03:42, 25 September 2013

<nowiki>[[</nowiki>{{#ifexist:Category:{{{1}}}|[[:Category:{{{1}}}|Category:{{{1}}}]]|'''{{{1}}}'''}}<nowiki>]]</nowiki>

Usage

The Category link (CatLink) template is used to display a category name as a link to the category, without including that page into the category.

Example:

{{CatLink|Administration}}

displays as

[[Category:Administration]]