Template:Language

Innen: Valve Developer Community
Ugrás a navigációhoz Ugrás a kereséshez
Warning icon.png
This template is used on approximately 19,000 pages and changes may be widely noticed.
Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage.
Consider discussing changes on the talk page before implementing them.
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [olvasás] [szerkesztés] [létrehozás Magyar (hu)]
Icon-translate.png Available doc translations
Info.png
The Template:Language/doc/hu documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.

When transcluded or used in namespaces highlighted with orange text this template returns language shortcut based on language prefix of the page otherwise it returns the shortcut based on user's interface language.

Templates Template:pagelang or Template:intlang are substituted in the subpages which are named after each namespace number


Language prefix:

  • {{language}} used or transcluded on page Hu/Info_target becomes hu
  • {{language}} used or transcluded on page Category:Vi/Level Design becomes vi
  • {{language}} used or transcluded on page Help:Eo/Contents becomes eo
  • {{language}} used or transcluded on page Dota_2_Workshop_Tools/Addon_Overview/Addon_Creation becomes en
  • {{language}} used or transcluded on page Ja/Dota_2_Workshop_Tools/Addon_Overview/Addon_Creation becomes ja


Example use in templates or in namespaces where language is determined by interface language (those not highlighted with orange):

{{#switch: {{language}}
    | #default = English
    | ja = 日本語
    | zh-tw = 中文(台灣)
    }}

See Also