Difference between revisions of "Template:Category link/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
m (tweak)
imported>Sardanaphalus
(→‎top: rephrasing)
Line 7: Line 7:
 
: {{tlx|cl|''category name''|''link text''}}
 
: {{tlx|cl|''category name''|''link text''}}
  
Like {{tlpad|tl}}, which produces a link to a template, {{tlpad|cl}} ("[c]ategory [l]ink") produces a link to a category:
+
{{tlpad|2px|cl}} ("[c]ategory [l]ink") produces a link to a category in a similar fashion to {{tlpad|tl}} for a template. For example:
 
: {{tcpl|cl|Africa}} produces: {{cl|Africa}}
 
: {{tcpl|cl|Africa}} produces: {{cl|Africa}}
  
To display the link with customized text, add it as a second parameter:
+
To specify the text used for the link, add it as a second parameter:
 
: {{tcpl|cl|Africa|this category}} produces: {{cl|Africa|this category}}
 
: {{tcpl|cl|Africa|this category}} produces: {{cl|Africa|this category}}
  

Revision as of 13:45, 30 August 2014


{{cl|category name}}
{{cl|category name|link text}}

Template:Tlpad ("[c]ategory [l]ink") produces a link to a category in a similar fashion to Template:Tlpad for a template. For example:

Template:Tcpl produces: Category:Africa

To specify the text used for the link, add it as a second parameter:

Template:Tcpl produces: this category

See also