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

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(→‎See also: added iconized example)
imported>Sardanaphalus
m (template name)
Line 14: Line 14:
  
 
== See also ==
 
== See also ==
* {{tlspc|c}}, which produces output such as: {{c|Africa}} and {{c|icon|Africa}}
+
* {{tlpad|c}}, which produces output such as: {{c|Africa}} and {{c|icon|Africa}}
* {{tlspc|cls}}, which produces output such as: {{cls|Africa}}
+
* {{tlpad|cls}}, which produces output such as: {{cls|Africa}}
* {{tlspc|lc}}, which produces output such as: {{lc|Africa}}
+
* {{tlpad|lc}}, which produces output such as: {{lc|Africa}}
* {{tlspc|lcs}}, which produces output such as {{lcs|Africa}}
+
* {{tlpad|lcs}}, which produces output such as {{lcs|Africa}}
* {{tlspc|tl}}, which links produces a link to a template surrounded by template-style double-braces (e.g. {{tl|Africa}}).
+
* {{tlpad|tl}}, which links produces a link to a template surrounded by template-style double-braces (e.g. {{tl|Africa}}).
 
* {{cl|Internal category-link templates}}
 
* {{cl|Internal category-link templates}}
 
* {{cl|Internal link templates}}
 
* {{cl|Internal link templates}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
 +
| <!-- Categories below this line, please: -->
 
[[Category:Internal category-link templates]]
 
[[Category:Internal category-link templates]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 20:53, 29 December 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