Stampa:Category link
Ju mund të ndihmoni që t'a zgjerojmë këtë artikull me tekst të përkthyer nga artikulli homolog në anglisht. Klikoni [shfaq] për udhëzime të rëndësishme rreth përkthimit.
|
{{Cl|category name}}{{Cl|Category: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}}
{{category link}} or its alias {{cl}} produces a link to a category in a similar fashion to {{Tl}} for a template. For example:
- {{Cl|Africa}} produces:
To specify the text used for the link, add it as a second parameter:
- {{Cl|Africa|this category}} produces:
To add a count of everything in the category, add the |count=yes parameter:
- {{Cl|Africa|count=yes}} produces:
If you just want to get a count of pages, files, or subcats, use the |count_type= parameter:
- {{Cl|Africa|count=yes|count_type=all}} produces: (default)
- {{Cl|Africa|count=yes|count_type=pages}} produces:
- {{Cl|Africa|count=yes|count_type=subcats}} produces:
- {{Cl|Africa|count=yes|count_type=files}} produces:
If you want to make counts standout for categories that have a backlog, use |backlog=:
- {{Cl|Africa|count=yes|backlog=20}} produces:
See also
[Redakto nëpërmjet kodit]- {{C}}, which produces output such as: Africa and Afrika
- {{Clc}}, which produces output such as: Category:Africa (0) and Category:Africa (0)
- {{lc}}, which produces output such as: Category:Africa (edit | talk | history | links | watch | logs)
- {{lcs}}, which produces output such as (edit talk links history)
- {{tl}}, which links produces a link to a template surrounded by template-style double-braces (e.g. {{Africa}}).
- {{Category see also}}
| Template | Example output |
| {{c}} | Example |
| {{cl}} | |
| {{cls}} | Cat:Example |
| Template | Example output |
| {{cconly}} | 0 |
| {{clc}} | Category:Example (0) |
| {{lc}} | Category:Example (edit | talk | history | links | watch | logs) |
| {{lcs}} | (edit talk links history) |
Kjo stampë krijon një lidhje tek një kategori dhe, sipas dëshirës, shfaq numrin e faqeve brenda saj. Nëse numri i faqeve në të tejkalon pragun e ngarkesës, do të nënvizohet.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Emri i kategorisë | 1 | Emri i kategorisë për t'u lidhur.
| String | required |
| Teksti i paraqitjes | 2 | Teksti për të shfaqur në lidhje. Në mungoftë, përdoret emri i kategorisë.
| String | optional |
| Shfaqe numrin gjithsej | count | Ceket nëse don të shfaqet numri i faqeve brenda kategorisë.
| Boolean | optional |
| Pragu i ngarkesës | backlog | Pragu për numërimin e faqeve. Nëse numri tejkalon këtë vlerë, do të nënvizohet.
| Number | optional |
| Lloji i numërimit | count_type | Ceket lloji i numërimit për të shfaqur (p.sh., faqet, skedat, apo nënkategoritë).
| String | optional |