Citakan:categorize
Lua error in Modul:utilities/templates at line 15: Language code has not been specified. Please pass parameter 1 to the template..
- The following documentation is located at Citakan:categorize/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions
Citakan:shortcut
Citakan:uses lua
This template is a template wrapper around the format_categories function in Module:utilities/templates. 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, Lua error in package.lua at line 80: module 'Module:math/compare' not found. or Lua error in package.lua at line 80: module 'Module:math/compare' not found. in the entry Lua error in Modul:links/templates at line 24: attempt to index upvalue 'm_params_data' (a nil value). 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 formatCategory:(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 formatCategory:(language code):(category name).
Usage
[babak]The template accepts the following parameters:
- Citakan:para
- The language code (see Wiktionary:Languages). This is required.
- Citakan:para, Citakan:para…
- One or more categories. There is no limit to how many you can specify. Empty values will be skipped.
- Citakan:para
- Provides a custom sort key. This will override the automatically generated sort key.
- Citakan:para, Citakan:para…
- Provides a custom sort key only for a specific category.
Examples
[babak]- Lua error in package.lua at line 80: module 'Module:math/compare' not found. adds:
- Category:Cockney rhyming slang
- Lua error in package.lua at line 80: module 'Module:math/compare' not found. adds:
- Category:English nouns
- Lua error in package.lua at line 80: module 'Module:math/compare' not found. adds:
- Category:Portuguese suffixes
- Lua error in package.lua at line 80: module 'Module:math/compare' not found. adds:
- Category:en:Biology
- Lua error in package.lua at line 80: module 'Module:math/compare' not found. adds:
- Category:pt:Biology
See also
[babak]{{categorize}}{{catlangname}}{{topics}}