మూస:script
|Afak=Afaka
|Arab|fa-Arab|ks-Arab|ota-Arab|pa-Arab|ps-Arab|ur-Arab=Arabic
|Armi=Imperial Aramaic
|Armn=Armenian
|Avst=Avestan
|Bali=Balinese
|Bamu=Bamum
|Bass=Bassa
|Batk=Batak
|Beng=Bengali
|Blis=Blissymbols
|Bopo=Zhuyin
|Brah=Brahmi
|Brai=Braille
|Bugi=Buginese
|Buhd=Buhid
|Cakm=Chakma
|Cans=Canadian syllabics
|Cari=Carian
|Cham=Cham
|Cher=Cherokee
|Cirt=Cirth
|Copt=Coptic
|Cprt=Cypriot
|Cyrl=Cyrillic
|Cyrs=Old Cyrillic
|Deva=Devanagari
|Dsrt=Deseret
|Dupl=Duployan shorthand
|Egyp=Egyptian hieroglyphic
|Elba=Elbasan
|Ethi=Ethiopic
|Geok=Khutsuri
|Geor=Georgian
|Glag=Glagolitic
|Goth=Gothic
|Gran=Grantha
|Grek|polytonic=Greek
|Gujr=Gujarati
|Guru=Gurmukhi
|Hani=Han
|Hang=Hangul
|Hans=Simplified Han
|Hant=Traditional Han
|Hano=Hanunoo
|Hebr=Hebrew
|Hira=Hiragana
|Hluw=Anatolian hieroglyphic
|Hmng=Pahawh Hmong
|Hung=Hungarian runes
|Inds=Indus
|Ital=Old Italic
|Java=Javanese
|Jpan=Japanese
|Jpan_alias=Hani
|Jpan_alias2=Hira
|Jpan_alias3=Kana
|Jurc=Jurchen
|Kali=Kayah Li
|Kana=Katakana
|Khar=Kharoshthi
|Khi=Khitan
|Khmr=Khmer
|Khoj=Khojki
|Knda=Kannada
|Kore=Korean
|Kore_alias=Hang
|Kore_alias2=Hani
|Kpel=Kpelle
|Kthi=Kaithi
|Lana=Lanna
|Laoo=Lao
|Latf=Fraktur
|Latg=Gaelic
|Latn|pjt-Latn=Latin
|Lepc=Lepcha
|Limb=Limbu
|Lina=Linear A
|Linb=Linear B
|Lisu=Lisu
|Loma=Loma
|Lyci=Lycian
|Lydi=Lydian
|Mand=Mandaic
|Mani=Manichaean
|Maya=Mayan
|Mend=Mende
|Merc=Meroitic cursive
|Mero=Meroitic hieroglyphic
|Mlym=Malayalam
|Mong=Mongolian
|Mroo=Mro
|Mtei=Meitei Mayek
|Mymr=Burmese
|Narb=Old North Arabian
|Nbat=Nabataean
|Nkgb=Naxi Geba
|Nkoo=N'Ko
|Nshu=Nüshu
|Ogam=Ogham
|Olck=Ol Chiki
|Orkh=Orkhon runes
|Orya=Oriya
|Osma=Osmanya
|Palm=Palmyrene
|Perm=Old Permic
|Phag=Phags-pa
|Phli=Inscriptional Pahlavi
|Phlp=Psalter Pahlavi
|Phlv=Book Pahlavi
|Phnx=Phoenician
|Plrd=Pollard
|Prti=Parthian
|Rjng=Rejang
|Roro=Rongorongo
|Runr=Runic
|Samr=Samaritan
|Sara=Sarati
|Sarb=Old South Arabian
|Saur=Saurashtra
|Sgnw=SignWriting
|Shaw=Shavian
|Shrd=Sharada
|Sind=Sindhi
|Sinh=Sinhalese
|Sora=Sorang Sompeng
|Sund=Sundanese
|Sylo=Syloti Nagri
|Syrc=Syriac
|Tagb=Tagbanwa
|Takr=Takri
|Tale=Tai Le
|Talu=New Tai Lue
|Taml=Tamil
|Tang=Tangut
|Tavt=Tai Viet
|Telu=Telugu
|Teng=Tengwar
|Tfng=Tifinagh
|Tglg=Tagalog
|Thaa=Thaana
|Thai=Thai
|Tibt=Tibetan
|Tirh=Tirhuta
|Ugar=Ugaritic
|Vaii=Vai
|Visp=Visible Speech
|Wara=Varang Kshiti
|Wole=Woleai
|Xpeo=Old Persian
|Xsux=Cuneiform
|Yiii=Yi
|Zmth=Mathematical notation
|Zyyy=Undetermined
|unicode=Latin
{{script|Latn}}
- The following documentation is located at Template:script/doc. [edit]
- Note: Please move the documentation subpage to Template:script/documentation.
This template returns a script name from a script code.
Usage
<small>మార్చు</small>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
<small>మార్చు</small>- {{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|{{script|Jpan_alias3}}}} returns:
- Katakana
Mechanics
<small>మార్చు</small>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
<small>మార్చు</small>- 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:
- langname (same as above, but also returns a language name from the same language name)
- languagex (returns the language name from any language code)
- langnamex (same as above, but also 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)
- langfamily (returns the language family from a language code)
- 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:
- langprefix (returns the prefix, like conl:, of a language template)
- 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)