Difference between revisions of "Template:C/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(optional icon prefix, sandbox handling)
imported>Sardanaphalus
m (→‎top: nbsps)
Line 2: Line 2:
 
<!----PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE---->
 
<!----PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE---->
  
: {{tlx|c|''category name''}}
+
: {{tlx|c&nbsp;|''category name''}}
: {{tlx|c|''category name''|''link text''}}
+
: {{tlx|c&nbsp;|''category name''|''link text''}}
: {{tlx|c|icon|''category name''}}
+
: {{tlx|c|icon&nbsp;|''category name''}}
: {{tlx|c|icon|''category name''|''link text''}}
+
: {{tlx|c|icon&nbsp;|''category name''|''link text''}}
  
 
===Usage===
 
===Usage===

Revision as of 15:39, 25 August 2014

{{|category name}}
{{|category name|link text}}
{{c|icon |category name}}
{{c|icon |category name|link text}}

Usage

Use Template:Tlpad 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<aside>e.g. "Philosophy category" in place of "Philosophy"</aside> add it as the next parameter:

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

To prefix the link with the category icon "16x16px" (e.g. as seen in templates), set the first parameter as |icon:

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

See also