Difference between revisions of "Template:C/doc"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(Removed sitelinks migrated to Wikidata)
imported>Frietjes
m (cleanup (wikitables, html markup, layout, etc.))
Line 6: Line 6:
  
 
===Usage===
 
===Usage===
Use {{tl|c}} to create a [[Wikipedia:Namespace|namespace]]-free link to a category, i.e. {{c{{\sandbox}}|Philosophy}} rather than {{cl|Philosophy}}, {{cls|Philosophy}}, etc:
+
Use {{tl|c}} to create a [[Wikipedia:Namespace|namespace]]-free link to a category, i.e. {{c|Philosophy}} rather than {{cl|Philosophy}}, {{cls|Philosophy}}, etc:
: {{tlf|c|Philosophy}} produces: {{c{{\sandbox}}|Philosophy}}
+
: {{tlf|c|Philosophy}} produces: {{c|Philosophy}}
To specify the text used for the link{{aside|e.g. "Philosophy category" in place of "Philosophy"}} add it as the next parameter:
+
To specify the text used for the link – e.g. "Philosophy category" in place of "Philosophy" – add it as the next parameter:
: {{tlf|c|Philosophy|Philosophy category}} produces: {{c{{\sandbox}}|Philosophy|Philosophy category}}
+
: {{tlf|c|Philosophy|Philosophy category}} produces: {{c|Philosophy|Philosophy category}}
  
 
===See also===
 
===See also===
Line 17: Line 17:
 
* {{tl|icon}} for standard Wikipedia icons.
 
* {{tl|icon}} for standard Wikipedia icons.
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
+
<includeonly>{{basepage subpage
 
| <!----CATEGORIES BELOW THIS LINE, PLEASE:---->
 
| <!----CATEGORIES BELOW THIS LINE, PLEASE:---->
 
[[Category:Internal category-link templates]]
 
[[Category:Internal category-link templates]]
}}<!--(end #ifeq)--></includeonly>
+
}}</includeonly>

Revision as of 20:56, 5 March 2015

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

Usage

Use {{c}} to create a namespace-free link to a category, i.e. Philosophy rather than Category:Philosophy, Cat:Philosophy, etc:

{{c|Philosophy}} produces: Philosophy

To specify the text used for the link – e.g. "Philosophy category" in place of "Philosophy" – add it as the next parameter:

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

See also