ទំព័រគំរូ:script/doc
Appearance
This template returns a script name from a script code.
Usage
[កែប្រែ]This template uses only one parameter, for the script code.
If the script code for an alias is followed by "_alias", "_alias2" or "_alias3", it returns the other script codes.
Examples
[កែប្រែ]{{script|Latn}}
returns:- Latin
{{script|Armn}}
returns:- Armenian
{{script|Jpan}}
returns:- Japanese
{{script|Jpan_alias}}
returns:- Hani
{{script|Jpan_alias2}}
returns:- Hira
{{script|Jpan_alias3}}
returns:- Kana
{{script|
returns:{{script|Jpan_alias3}}
}}- Katakana
Mechanics
[កែប្រែ]This template uses a simple {{#switch:}} parser function to handle language codes and script codes.
EXAMPLES: 1. Script names. |Armn=Armenian |Latn=Latin 2. Script aliases. |Jpan_alias=Hani |Jpan_alias2=Hira |Jpan_alias3=Kana
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)