Vörlaag:catlangname
Utsehn
- De volgende dokumentatsie steet op Vörlaag:catlangname/Doku. [bewark]
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. If the namespace of the current page is not meant to contain entries (it's not the main namespace or Appendix) then the template does not categorize, so it's safe to use on any page and in any template.
The two templates {{catlangname}}
and {{catlangcode}}
are specialized versions of {{categorize}}
. They work the same way, and have the same parameters. However:
{{catlangname}}
will add the language name before all the names that are provided. This creates a "lexical" or "part-of-speech-like" category, whose name is based on the formatCategory:(language name) (category name)
.{{catlangcode}}
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
[ännern]The template accepts the following parameters:
1=
- The language code (see Wiktionary:Spraken). 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
[ännern]{{categorize|en|Cockney rhyming slang}}
adds:- Category:Cockney rhyming slang
{{catlangname|en|nouns}}
adds:- Category:English nouns
{{catlangname|pt|suffixes}}
adds:- Category:Portuguese suffixes
{{catlangcode|en|Biology}}
adds:- Category:en:Biology
{{catlangcode|pt|Biology}}
adds:- Category:pt:Biology
See also
[ännern]{{categorize}}
{{catlangname}}
{{catlangcode}}
Supplementary templates [ännern]
Contents, text, tables:
- caps (returns a particular letter, either in upper or lower cases)
- theordinal (returns "first" from 1, "second" from 2, etc.)
- navbox (generates a collapsible box)
- !! (returns two vertical pipes: ||)
- (! (returns a left brace followed by a vertical pipe: {|)
- !) (returns a vertical pipe followed by a right brace: |})
- !- (returns a vertical pipe followed by a dash: |-)
Languages, families and scripts:
Categories:
- categorize (adds a category, with language-specific sorting)
- catlangcode (adds a topical category, with language-specific sorting)
- catlangname (adds a lexical or other category similarly named, with language-specific sorting)
Other:
- deftempboiler (generates a definition template)
- ännern (generates an "edit" button)