Template:Language name/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
This template translates {{param|1}} (the name of a language) into {{param|2}} (or the interface language if {{param|2}} is either blank or equal to the text {{code|uselang}}). For example, {{code|{{tl2|language name|es|en}} }} yields {{code|{{language name|es|en}} }}.
This template translates {{param|1}} (the name of a language) into {{param|2}} (or the interface language if {{param|2}} is either blank or equal to the text {{code|uselang}}). For example, {{code|{{tl2|language name|es|en}} }} yields {{code|{{language name|es|en}} }}.


If {{param|3}} is true, English will be used as a fallback.
If {{param|3}} is true, the native name of the language will be used as a fallback.


{{tip|To get the full name of a language in itself, use {{code|<nowiki>{{#language}}</nowiki>}}. For example, {{code|<nowiki>{{#language:es}}</nowiki>}} renders as {{code|{{#language:es}} }} }}
{{tip|To get the full name of a language in itself, use {{code|<nowiki>{{#language}}</nowiki>}}. For example, {{code|<nowiki>{{#language:es}}</nowiki>}} renders as {{code|{{#language:es}} }} }}

Revision as of 13:26, 1 June 2024

Edit-copy.png
This is a documentation subpage for Template:Language name.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

This template translates {{{1}}} (the name of a language) into {{{2}}} (or the interface language if {{{2}}} is either blank or equal to the text uselang). For example, {{language name|es|en}} yields Spanish.

If {{{3}}} is true, the native name of the language will be used as a fallback.

Tip.pngTip:To get the full name of a language in itself, use {{#language}}. For example, {{#language:es}} renders as español

Translations

If you need to translate the names of various languages for a certain language, please add translations to the subpage of the language in the listed pages of. For example, if you want to translate "English" into Chinese, you need to edit Template:Language name/zh and add the translation of "English" (英语).

[{{fullurl:Template:Language name/Template:Uselang|action=edit}} Icon-edit.png Edit subpage of your current interface language]

Available Languages