Plantilla:Cl
Aparença
(S'ha redirigit des de: Plantilla:Category)
[[:Categoria:{{{1}}}|Categoria:{{{1}}}]]
{{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 ( 18 )
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 ( 18 ) (default)
- {{Cl|Àfrica|count=yes|count_type=pages}} produces: Categoria:Àfrica ( 6 )
- {{Cl|Àfrica|count=yes|count_type=subcats}} produces: Categoria:Àfrica ( 12 )
- {{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 ( 18 )
Vegeu també
- {{C}}, which produces output such as: Àfrica and Afrika
- {{Cls}}, which produces output such as: Plantilla:Cls
- {{lc}}, which produces output such as: Category:Àfrica (edit|talk|history|links|watch|logs)
- {{lcs}}, which produces output such as Plantilla:Lcs
- {{tl}}, which links produces a link to a template surrounded by template-style double-braces (e.g. {{Àfrica}}).
- Categoria:Internal category-link templates
- Categoria:Plantilles d'enllaços interns
La documentació de més amunt està transclosa de Plantilla:Cl/ús. (modifica | historial)
Els editors poden fer proves amb aquesta plantilla al seu espai de proves ([{{fullurl:Special:Mypage/MediaWiki:Templatesandbox-suffix/⧼Lang⧽/Plantilla:Cl | action=edit&preload=Plantilla%3ACl}}&summary=Versi%C3%B3+per+a+proves+de+%5B%5BPlantilla%3ACl%5D%5D&editintro=Plantilla%3A%C3%9As+de+la+plantilla%2Fav%C3%ADs+d%27edici%C3%B3 crea] | [{{fullurl:Special:Mypage/MediaWiki:Templatesandbox-suffix/⧼Lang⧽/Plantilla:Cl | action=edit }} modifica])
Afegiu categories en la subpàgina /ús. Vegeu les subpàgines d'aquesta plantilla, utilització de paràmetres.
Els editors poden fer proves amb aquesta plantilla al seu espai de proves ([{{fullurl:Special:Mypage/MediaWiki:Templatesandbox-suffix/⧼Lang⧽/Plantilla:Cl | action=edit&preload=Plantilla%3ACl}}&summary=Versi%C3%B3+per+a+proves+de+%5B%5BPlantilla%3ACl%5D%5D&editintro=Plantilla%3A%C3%9As+de+la+plantilla%2Fav%C3%ADs+d%27edici%C3%B3 crea] | [{{fullurl:Special:Mypage/MediaWiki:Templatesandbox-suffix/⧼Lang⧽/Plantilla:Cl | action=edit }} modifica])
Afegiu categories en la subpàgina /ús. Vegeu les subpàgines d'aquesta plantilla, utilització de paràmetres.