Ŝablono:Language/dokumentado

El Komunejo

(Malsamoj inter versioj)
Iri al: navigado, serĉi
(update doc)
(m)
Linio 23: Linio 23:
* [[svn:/trunk/phase3/languages/Names.php]]
* [[svn:/trunk/phase3/languages/Names.php]]
* {{tl|Language/ISO 639/en}} - returns the language name given a ISO 639 code (as opposed to the codes used in MediaWiki). Works for all 639-1, 639-2, 639-3 codes (you may have trouble editing it because of the size). Similar to [[:en:Template:Language]] and [[:fr:Modèle:Langue-local]].
* {{tl|Language/ISO 639/en}} - returns the language name given a ISO 639 code (as opposed to the codes used in MediaWiki). Works for all 639-1, 639-2, 639-3 codes (you may have trouble editing it because of the size). Similar to [[:en:Template:Language]] and [[:fr:Modèle:Langue-local]].
-
 
-
[[Category:Internationalization templates|{{PAGENAME}}]]
 
-
</noinclude>
 

Kiel registrite je 07:00, 3. Maj 2009

Ŝablono:Documentation subpage

This template will return the name of a language given the language code. This template is made specifically for the language codes used in MediaWiki (not necessarily ISO codes, but see {{Language/ISO 639/en}}).

Examples

  • {{language|ar}} → Arabic
  • {{language|is}} → Icelandic
  • {{language|zh-hant}} → Traditional Chinese

The second parameter can be used to set the desired output language, otherwise it will return the name in the user's interface language (if a translation exists).

  • {{language|en|fr}} → anglais
  • {{language|en|he}} → English

You can also use this template's subpages directly to archive the same effect (which is also easier on the servers).

Subpages

Language/cs Language/de Language/dokumentado
Language/empty Language/en Language/fr
Language/pl

See also

Personaj iloj