Difference between revisions of "Template:Category link/doc"
Jump to navigation
Jump to search
imported>Sardanaphalus m (→See also: link update) |
imported>Sardanaphalus (Update (second parameter)) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | ||
| + | {{hatnote|{{tl|Category}} redirects here. You may be looking for {{tl|Wikipedia category}}.}} | ||
| − | : | + | : {{tlx|cl|''category name''}} |
| + | : {{tlx|cl|''category name''|''link text''}} | ||
| − | {{ | + | Like {{tlpad|tl}}, which produces a link to a template, {{tlpad|cl}} ("[c]ategory [l]ink") produces a link to a category: |
| + | : {{tcpl|cl|Wikipedia templates}} produces: {{cl|Wikipedia templates}} | ||
| − | + | To display the link with customized text, add it as a second parameter: | |
| − | + | : {{tcpl|cl|Wikipedia templates|the "Wikipedia templates" category}} produces: {{cl|Wikipedia templates|the "Wikipedia templates" category}} | |
| − | |||
| − | |||
| − | {{ | ||
| − | |||
| − | |||
== See also == | == See also == | ||
| Line 23: | Line 21: | ||
* {{cl|Internal link templates}} | * {{cl|Internal link templates}} | ||
| − | <includeonly> | + | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
| − | {{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
[[Category:Internal category-link templates]] | [[Category:Internal category-link templates]] | ||
| − | }} | + | }}</includeonly> |
| − | </includeonly> | ||
Revision as of 12:00, 27 August 2014
| 40px | This is a documentation subpage for Template:Category link. It contains usage information, categories and other content that is not part of the original template page. |
Like Template:Tlpad, which produces a link to a template, Template:Tlpad ("[c]ategory [l]ink") produces a link to a category:
- Template:Tcpl produces: Category:Wikipedia templates
To display the link with customized text, add it as a second parameter:
See also
- Template:Tlspc, which produces Africa.
- Template:Tlspc, which produces Cat:Africa.
- Template:Tlspc, which produces Category:Africa (edit | talk | history | links | watch | logs).
- Template:Tlspc, which produces (edit talk links history).
- Template:Tlspc, which links produces a double-braced link to a template (e.g. {{Africa}}).
- Category:Internal category-link templates
- Category:Internal link templates