Template:Language name/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{doc/subpage}}
{{doc/subpage}}
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}}). If {{param|3}} is true, English will be used as a fallback.
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.
 
{{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 12:38, 5 January 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, English 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