Difference between revisions of "Template:C/doc"

From blackwiki
Jump to navigation Jump to search
imported>Paine Ellsworth
m (m)
imported>Sardanaphalus
(some rephrasing, added second parameter use)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!----PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE---->
 +
===Usage===
 +
Used to create a [[Wikipedia:Namespace|namespace]]-free link to a category, i.e. {{c|Philosophy}} (for example) rather than {{cl|Philosophy}}, {{cls|Philosophy}}, etc:
 +
: <code><nowiki>{{c|Philosophy}}</nowiki></code> produces: {{c|Philosophy}}
  
===Usage===
+
The link's text may be specified via a second parameter:
Used to create a link to a category. For example, <nowiki>{{C|Philosophy}}</nowiki> produces: {{c|Philosophy}}.
+
: <code><nowiki>{{c|Philosophy|Philosophy category}}</nowiki></code> produces: {{c|Philosophy|Philosophy category}}
  
 
===See also===
 
===See also===
* {{tl|cl}}: Produces {{cl|Philosophy}}
+
* {{tl|cl}}, which produces the second type of link shown above ({{cl|Philosophy}}, i.e. including the namespace prefix).
* {{tl|cls}}: Produces {{cls|Philosophy}}
+
* {{tl|cls}}, which produces the third type shown above ({{cls|Philosophy}}, i.e. including an abbreviated prefix).
* {{tl|lcs}}: For discussion. Produces {{lcs|Philosophy}}
+
* {{tl|lcs}}, which produces: {{lcs|Philosophy}}
  
 
<includeonly>
 
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!----CATEGORIES BELOW THIS LINE, PLEASE:---->
 
[[Category:Internal link templates]]
 
[[Category:Internal link templates]]
 +
 
[[dsb:Pśedłoga:K]]
 
[[dsb:Pśedłoga:K]]
 
[[hsb:Předłoha:K]]
 
[[hsb:Předłoha:K]]
Line 19: Line 23:
 
[[sl:Predloga:K]]
 
[[sl:Predloga:K]]
 
[[zh:Template:C]]
 
[[zh:Template:C]]
 +
 
{{pp-template|small=yes}}
 
{{pp-template|small=yes}}
 
</includeonly>
 
</includeonly>

Revision as of 10:25, 3 July 2014

Usage

Used to create a namespace-free link to a category, i.e. Philosophy (for example) rather than Category:Philosophy, Cat:Philosophy, etc:

{{c|Philosophy}} produces: Philosophy

The link's text may be specified via a second parameter:

{{c|Philosophy|Philosophy category}} produces: Philosophy category

See also