Pescardo
Appearance
Nom
[edit | edit source]Referències
[edit | edit source]- FRTV IE0`2G FMTDG IR KGIIOU RDGHFLKJGOYFJGIPO0G8BVKFJGMJKJLFIUHGDFOUMGFOHDOUHGNJKNH
DHGFDFOIUFY8GERJBRGUIGFHGIYFNKJUHFJKHIYGFJSFD8JD F YJCUCBDKJUFHGDFOI80JDSHFUOHDSUTJUFDSUFD
Template documentation
[edit source]Template:Catllengua helps categorize pages by language. Provide one or more language codes/names; the template emits appropriate Language-related categories and optionally displays an inline badge summarizing the languages involved.
Purpose
[edit source]- Group pages by language context (e.g., articles discussing Spanish phonology or French literature).
- Support maintenance and WikiProject workflows by consistent categorization naming.
- Offer a compact badge for readers indicating language scope.
Usage
[edit source]Basic (single language):
{{Catllengua|lang=Spanish}}
Multiple languages:
{{Catllengua|langs=en, fr, de}}
Inline badge:
{{Catllengua|langs=zh, ja|show=yes}}
Custom badge text:
{{Catllengua|langs=pt, es|show=yes|badge=Iberian languages}}
Suppress categorization (preview/debug):
{{Catllengua|lang=English|nocat=yes|show=yes}}
Scope variants:
{{Catllengua|lang=Italian|scope=Templates}}
{{Catllengua|lang=German|scope=Project pages}}
Category prefix override:
{{Catllengua|lang=Korean|catprefix=Category:Topic by language }}
Parameters
[edit source]- lang
- Single language code or name (e.g., en, English, español).
- langs
- Comma-separated list of languages (overrides lang).
- show
yes/true/1to display a small inline badge.- badge
- Custom badge text; defaults to resolved language names.
- hidden
- Reserved flag to indicate hidden maintenance categories (actual hiding depends on site config).
- scope
- A suffix shown in parentheses to distinguish organizational scope, default Articles.
- catprefix
- Category namespace/prefix; default Category:Language-related .
- nocat
- Suppress category emission; useful in documentation or tests.
Category naming
[edit source]By default, this template outputs per-language categories named:
Category:Language-related English (Articles) Category:Language-related French (Articles) ...
Adjust with scope or catprefix to match local conventions.
Aliases supported
[edit source]The Lua module maps common codes and endonyms to canonical names:
en → English; es → Spanish; fr → French; de → German; zh → Chinese; ja → Japanese; ko → Korean; it → Italian; pt → Portuguese; ru → Russian
Extend the table in Module:Catllengua for more languages and variants.
Best practices
[edit source]- Use IETF language codes (en, es, fr) or well-known names.
- Keep
catprefixaligned with existing category trees. - Provide
scopeto separate article vs template/project categories. - For large multi-language pages, include only languages central to the topic, not incidental mentions.
Examples
[edit source]- Single language with badge:
{{Catllengua|lang=English|show=yes}}- Multi-language categorization only:
{{Catllengua|langs=Arabic, Hebrew}}- Custom tree:
{{Catllengua|langs=Hindi|catprefix=Category:Topics by language }}