This template is protected from editing.

Difference between revisions of "Template:Lang name"

From Team Fortress Wiki
Jump to: navigation, search
m
Line 63: Line 63:
  
 
}}</includeonly><noinclude>{{doc begin}}
 
}}</includeonly><noinclude>{{doc begin}}
{{tl|Lang name}} can output the ISO code for a language if given the English name, and can output the English name if given the ISO code.  
+
{{tl|Lang name}} can output the ISO code for a language if given the English name, or the English name if given the ISO code.  
  
 
== Usage ==
 
== Usage ==
Line 74: Line 74:
  
 
=== Extra options ===
 
=== Extra options ===
Any of the following options can be used to specify Chinese and Portuguese languages. Using any of the names from the list will output the language code in brackets if {{code|1=type=code}} or {{code|code}} in parameter 1 is specified.
+
Any of the following options can be used to specify Chinese and Portuguese languages. Using any of the names from the list will output the language code (shown below in brackets) if {{code|1=type=code}} or {{code|code}} in parameter 1 is specified.
  
 
* "zh-hans"
 
* "zh-hans"

Revision as of 05:53, 10 September 2010

Documentation for Lang name

{{Lang name}} can output the ISO code for a language if given the English name, or the English name if given the ISO code.

Usage

The first parameter should contain what type of output you want, and the second should contain the language code or name.

Extra options

Any of the following options can be used to specify Chinese and Portuguese languages. Using any of the names from the list will output the language code (shown below in brackets) if type=code or code in parameter 1 is specified.

  • "zh-hans"
    • S.Chinese
    • Chinese Simp
    • Chinese Simplified
    • Chinese (Simplified)
    • Simplified Chinese
    • Simp Chinese
    • Simp. Chinese
  • "zh-hant"
    • T.Chinese
    • Traditional Chinese
    • Chinese Traditional
    • Chinese (Traditional)
  • "pt-br"
    • Portuguese Brazil
    • Brazilian Portuguese
    • Portuguese (Brazil)

Native names

The MediaWiki software can already display the native name of a language by using the code Deutsch (which generates "Deutsch"). However, {{Lang name}} can also perform the same function using the syntax {{Lang name|native|de}}.