Template:categorize/documentation

This template is a template wrapper around the  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, or  in the entry  adds the category Category:Munster Irish with the sortkey , in which the acute accent on   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 and  are specialized versions of. They work the same way, and have the same parameters. However:
 * (shortcut ) 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  .
 * (shortcut ) will add the language code and a colon  before all the names. This creates a topical category, whose name is based on the format  .

Usage
The template accepts the following parameters:


 * 1
 * The language code (see 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.


 * sort1, sort2…
 * Provides a custom sort key only for a specific category.

Examples

 * adds:
 * Category:Cockney rhyming slang
 * adds:
 * Category:English nouns
 * adds:
 * Category:Portuguese suffixes
 * adds:
 * Category:en:Biology
 * adds:
 * Category:pt:Biology