Difference between revisions of "Template:C/doc"
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 |''category name''}} |
| − | : {{tlx|c|''category name''|''link text''}} | + | : {{tlx|c |''category name''|''link text''}} |
| − | : {{tlx|c|icon|''category name''}} | + | : {{tlx|c|icon |''category name''}} |
| − | : {{tlx|c|icon|''category name''|''link text''}} | + | : {{tlx|c|icon |''category name''|''link text''}} |
===Usage=== | ===Usage=== | ||
Revision as of 15:39, 25 August 2014
| File:Edit-copy green.svg | This is a documentation subpage for Template:C. It contains usage information, categories and other content that is not part of the original template page. |
{{c |category name}}{{c |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
- Template:Tlspc, which produces the second type of link shown in the Usage section (Category:Philosophy, i.e. including the namespace prefix).
- Template:Tlspc, which produces the third type shown in the Usage section (Cat:Philosophy, i.e. including an abbreviated prefix).
- Template:Tlspc, which produces: (edit talk links history)
- {{icon}} for other standard Wikipedia icons.