Шаблон:Линк категорије

С Википедије, слободне енциклопедије
(преусмерено са Шаблон:Cl)

[[:Категорија:{{{1}}}|Категорија:{{{1}}}]]

Документација шаблона[прикажи] [уреди] [историја] [освежи]

{{Cl|category name}}
{{Cl|category name|link text}}
{{Cl|category name|link text|count=yes}}
{{Cl|category name|link text|count=yes|count_type=type}}
{{Cl|category name|link text|count=yes|count_type=type|backlog=backlog threshold}}

{{Cl}} ("[C]ategory [l]ink") produces a link to a category in a similar fashion to {{Tl}} for a template. For example:

{{Cl|Африка}} produces: Категорија:Африка

To specify the text used for the link, add it as a second parameter:

{{Cl|Африка|this category}} produces: this category

To add a count of everything in the category, add the |count=yes parameter:

{{Cl|Африка|count=yes}} produces: Категорија:Африка

If you just want to get a count of pages, files, or subcats, use the |count_type= parameter:

{{Cl|Африка|count=yes|count_type=all}} produces: Категорија:Африка (default)
{{Cl|Африка|count=yes|count_type=pages}} produces: Категорија:Африка
{{Cl|Африка|count=yes|count_type=subcats}} produces: Категорија:Африка
{{Cl|Африка|count=yes|count_type=files}} produces: Категорија:Африка

If you want to make counts standout for categories that have a backlog, use |backlog=:

{{Cl|Африка|count=yes|backlog=20}} produces: Категорија:Африка

See also[уреди извор]