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

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(Update (second parameter))
imported>Sardanaphalus
("Africa" for examples as well as See also)
Line 7: Line 7:
  
 
Like {{tlpad|tl}}, which produces a link to a template, {{tlpad|cl}} ("[c]ategory [l]ink") produces a link to a category:
 
Like {{tlpad|tl}}, which produces a link to a template, {{tlpad|cl}} ("[c]ategory [l]ink") produces a link to a category:
: {{tcpl|cl|Wikipedia templates}} produces: {{cl|Wikipedia templates}}
+
: {{tcpl|cl|Africa}} produces: {{cl|Africa}}
  
 
To display the link with customized text, add it as a second parameter:
 
To display the link with customized text, add it as a second parameter:
: {{tcpl|cl|Wikipedia templates|the "Wikipedia templates" category}} produces: {{cl|Wikipedia templates|the "Wikipedia templates" category}}
+
: {{tcpl|cl|Africa|this category}} produces: {{cl|Africa|this category}}
  
 
== See also ==
 
== See also ==

Revision as of 12:02, 27 August 2014

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

Like Template:Tlpad, which produces a link to a template, Template:Tlpad ("[c]ategory [l]ink") produces a link to a category:

Template:Tcpl produces: Category:Africa

To display the link with customized text, add it as a second parameter:

Template:Tcpl produces: this category

See also