Difference between revisions of "Template:C/doc"
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 | + | <!----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}} | ||
| − | + | The link's text may be specified via a second parameter: | |
| − | + | : <code><nowiki>{{c|Philosophy|Philosophy category}}</nowiki></code> produces: {{c|Philosophy|Philosophy category}} | |
===See also=== | ===See also=== | ||
| − | * {{tl|cl}} | + | * {{tl|cl}}, which produces the second type of link shown above ({{cl|Philosophy}}, i.e. including the namespace prefix). |
| − | * {{tl|cls}} | + | * {{tl|cls}}, which produces the third type shown above ({{cls|Philosophy}}, i.e. including an abbreviated prefix). |
| − | * {{tl|lcs}}: | + | * {{tl|lcs}}, which produces: {{lcs|Philosophy}} |
<includeonly> | <includeonly> | ||
| − | <!-- CATEGORIES | + | <!----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
| 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. |
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
- {{cl}}, which produces the second type of link shown above (Category:Philosophy, i.e. including the namespace prefix).
- {{cls}}, which produces the third type shown above (Cat:Philosophy, i.e. including an abbreviated prefix).
- {{lcs}}, which produces: (edit talk links history)