Appropedia needs your support - Please Donate Today

Template:Cl

From Appropedia
Jump to: navigation, search

[[:Category:{{{1}}}|Category:{{{1}}}]]

[view] [edit] [history] [purge] Documentation icon Template documentation

{{Cl}} (or "category link") displays a category name as a link to the category, showing the double square brackets as you would type a category link when categorizing a page. This is useful for illustrating how to categorize a page, for example in a help page, or on a user talk page.

Example[edit]

{{Cl|Composting}} gives: Category:Composting

To achieve the same thing with plain wikitext markup:

[[:Category:Composting]] gives: Category:Composting

Displaying the square brackets[edit]

To display the square brackets (to explain how to add category markup, while also displaying the category link):

[[{{cl|Composting}}]] gives: [[Category:Composting]]

To display the square brackets using plain wikitext markup:

[[[[:Category:Composting]]]] gives: [[Category:Composting]]

See also[edit]

  • {{Tl}} - to display a template, as you would type the template to transclude it.
  • {{Tlc}} - another template display template, which formerly did what this template does

External links[edit]

Wikipedia
This page or section includes content from Wikipedia. The original article was at Template:Cl. The list of authors can be seen in the history for that page. As with Appropedia, the text of Wikipedia is available under the CC-BY-SA.