Plantilla:Cl

De la Viquipèdia, l'enciclopèdia lliure

[[:Categoria:{{{1}}}|Categoria:{{{1}}}]]

Icona de documentació de mòdul Documentació de la plantilla [ mostra ] [ modifica el codi ] [ mostra l'historial ] [ refresca ]

{{Cl|nom de la categoria}}
{{Cl|nom de la categoria|text de l'enllaç}}
{{Cl|nom de la categoria|text de l'enllaç|count=yes}}
{{Cl|nom de la categoria|text de l'enllaç|count=yes|count_type=type}}
{{Cl|nom de la categoria|text de l'enllaç|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|Àfrica}} produces: Categoria:Àfrica

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

{{Cl|Àfrica|this category}} produces: this category

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

{{Cl|Àfrica|count=yes}} produces: Categoria:Àfrica ( 30 )

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

{{Cl|Àfrica|count=yes|count_type=all}} produces: Categoria:Àfrica ( 30 ) (default)
{{Cl|Àfrica|count=yes|count_type=pages}} produces: Categoria:Àfrica ( 13 )
{{Cl|Àfrica|count=yes|count_type=subcats}} produces: Categoria:Àfrica ( 17 )
{{Cl|Àfrica|count=yes|count_type=files}} produces: Categoria:Àfrica ( 0 )

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

{{Cl|Àfrica|count=yes|backlog=20}} produces: Categoria:Àfrica ( 30 )

Vegeu també[modifica]