Template:Scriptname

From translatewiki.net
Jump to navigation Jump to search

Test Template Info-Icon - Version (2).svg

The documentation of this template is included from its /doc subpage (Edit)

Usage:
Utility to translate ISO 15924 script codes into their names.
Syntax:
{{Scriptname
| 1=script
| 2=lang
}}
Parameters:
  • 1=script code representing the script name (mandatory)
  • 2=lang code of the language into which the script name will be translated (optional)
    The default empty value will return the script name in the UI language in the current user language selected in the UI, using {{UILANGCODE}}.
    This recognizes all ISO 15924 codes (whose letter case is not significant), including numeric codes, and aliases referenced by the Unicode Character Database (sometimes using underscores).
Examples:
  • ‹{{Scriptname|Latn}}› generates ‹Latin› (the script name translated in a user preferred language)
  • ‹{{Scriptname|Latn|en}}› generates ‹Latin› (the standard script name in English)
  • ‹{{Scriptname|Latn|fr}}› generates ‹latin› (the standard script name in French)
  • ‹{{Scriptname|Arab}}› generates ‹Arabic› (the standard script name in a user preferred language)
  • ‹{{Scriptname|Arab|en}}› generates ‹Arabic› (the standard script name in English)
  • ‹{{Scriptname|Arab|fr}}› generates ‹arabe› (the standard script name in French)
  • ‹{{Scriptname|Arab|ar}}› generates ‹Arabic› (the standard script translated name in Arabic, is possible)
Notes:
  • There's for now no translation data in MediaWiki for these script names, all translations are built in the template (including the names in French and English from the ISO standard itself).
  • the following standard ISO 15924 codes are supported by this template, but these scripts are still not encoded in Unicode (so localisation of written text into one them is still not possible):
    |Afak|439 |Blis|550 |Cirt|291 |Cpmn|402 |Dogr|328 |Egyd |70 |Gong|312 |Hmnp|451 |Inds|610 |Jurc|510 |Kitl|505 |Kits|288 |Kpel|436 |Leke|364 |Loma|437 |Maka|366 |Maya |90 |Medf|265 |Moon|218 |Nkdb|85 |Nkgb|420 |Phlv|133 |Piqd|293 |Qaaa|900 |Qabx|949 |Rohg|167 |Roro|620 |Sara|292 |Shui|530 |Sogd|141 |Sogo|142 |Teng|290 |Visp|280 |Wcho|283 |Wole|480
  • the following special ISO 1524 codes are supported by this template, but these scripts should not be used for qualifying actual locales:
    |Zinh|994|Inherited |Zxxx|997 |Zyyy|998|Common |Zzzz|999
See also: