ទំព័រគំរូ:langname/doc
This template returns a language name from a language code. Alternatively, if a language name is given, it returns the same name.
Usage
កែប្រែThis template uses only one unnamed parameter, the language code or name.
Examples
កែប្រែ- {{langname|en}} returns អង់គ្លេស
- {{langname|eng}} returns Lua error in Module:languages at line 451: The language code "eng" is not valid..
- {{langname|English}} returns Lua error in Module:languages at line 451: The language code "English" is not valid..
- {{langname|Ido}} returns Lua error in Module:languages at line 451: The language code "Ido" is not valid..
- {{langname|pt}} returns ព័រទុយហ្កាល់
- {{langname|Portuguese}} returns Lua error in Module:languages at line 451: The language code "Portuguese" is not valid..
- {{langname|fiu-vro}} returns Lua error in Module:languages at line 451: The language code "fiu-vro" is not valid..
Invalid or unknown language:
- {{langname|xyzzy}} produces Lua error in Module:languages at line 451: The language code "xyzzy" is not valid..
- {{langname|Some Other}} produces Lua error in Module:languages at line 451: The language code "Some Other" is not valid..
See also
កែប្រែ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)