Plantilya:topics

Hali sa Wiksyunaryo

Lua error in Module:utilities at line 136: Language code has not been specified. Please pass parameter 1 to the template..

Liwaton Linigan

Dokumentasyon kan plantilla


This template is a template wrapper around the format_categories function in Module:utilities. It adds one or more categories to an entry, using the provided language code to generate a sort key specific to the language.

For example, {{categorize|ga|Munster Irish}} in the entry cíonn adds the category Category:Munster Irish with the sortkey cionn, in which the acute accent on cíonn has been removed.

If the namespace of the current page is not meant to contain entries (it's not the main, Reconstruction, or Appendix namespace), then the template does not categorize, so it's safe to use on any page and in any template.

The two templates {{catlangname}} and {{topics}} are specialized versions of {{categorize}}. They work the same way, and have the same parameters. However:

  • {{catlangname}} (shortcut {{cln}}) will add the language name before all the names that are provided. This creates a grammatical – morphological, orthographical or part-of-speech-related – category whose name is based on the format Category:(language name) (category name).
  • {{topics}} (shortcut {{top}}) will add the language code and a colon : before all the names. This creates a topical category, whose name is based on the format Category:(language code):(category name).

Usage

The template accepts the following parameters:

|1=
The language code (see Wiktionary:Languages). This is required.
|2=, |3=...
One or more categories. There is no limit to how many you can specify. Empty values will be skipped.
|sort=
Provides a custom sort key. This will override the automatically generated sort key.

Examples

  • {{categorize|en|Cockney rhyming slang}} adds:
    Category:Cockney rhyming slang
  • {{catlangname|en|nouns}} adds:
    Category:English nouns
  • {{catlangname|pt|suffixes}} adds:
    Category:Portuguese suffixes
  • {{topics|en|Biology}} adds:
    Category:en:Biology
  • {{topics|pt|Biology}} adds:
    Category:pt:Biology

See also

Plantilya:supplementary
An dokumentasyon ipinagsalin hali sa Plantilya:topics/doc.
An mga taga-publikar pwede magprobar sa pahina kan pagprobar kan plantilla.
Tabi magkaag nin kategoriya asin interwiki sa mga subpahinang dokumentasyon kan plantilla. Subpahina kan plantilla.