ទំព័រគំរូ:catlangname/doc
Appearance
This template adds a page into a category whose name is based on the format Category:(language) (contents)
.
Usually, this format names lexical categories, for example: Category:English suffixes
, Category:Portuguese nouns
, etc.
ការប្រើប្រាស់
[កែប្រែ]Simply use the language code as first parameter and the contents as second parameter.
ឧទាហរណ៍ទូទៅ
[កែប្រែ]
usually returns:{{catlangname|en|nouns}}
- Category:English nouns
usually returns:{{catlangname|en|suffixes}}
- Category:English suffixes
usually returns:{{catlangname|pt|suffixes}}
- Category:Portuguese suffixes
មើលផងដែរ
[កែប្រែ]Supplementary templates [edit]
Contents, text, tables:
- caps (returns a particular letter, either in upper or lower cases)
- str len (returns the number of characters of a string)
- theordinal (returns "first" from 1, "second" from 2, etc.)
- theplural (returns "suffixes" from suffix, "verbs" from verb, etc.)
- navbox (generates a collapsible box)
- ! (returns a vertical pipe: |)
- !! (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:
- Module:language utilities
- langname (returns a language name from the same language name)
- langrev (returns the language code of a given language name)
- languageshift (differentiates between "American Sign Language" and "American Sign Language language", among other related languages)
- family (returns the family from a subfamily)
- script (returns a script name from a script code)
- scriptrev (returns a script code from a script name)
Pages:
- catlangcode (returns the name of a topical category, notably by never displaying the code en:)
- catlangname (returns the name of a lexical or other category similarly named)
- deftempboiler (generates a definition template)
- edit (generates an "edit" button)