Template:Language/archives/Suflang: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "<!-- + Documentation + -->{{uselang|en=1|zh-cn=1}} {{ {{autolang|documentation|zh-cn=documentation:zh-cn}} |content={{autolang|{{distinguish|Template:Autolang}} This tem...")
 
No edit summary
 
(27 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<!--
{{APH}}
 
    + Documentation +
 
-->{{uselang|en=1|zh-cn=1}}
{{ {{autolang|documentation|zh-cn=documentation:zh-cn}} |content={{autolang|{{distinguish|Template:Autolang}}
This template is used to switch the content according to the {{param|suf}} parameter. It can be also instead of {{MdCode|<nowiki>{{#switch:{{{suf|}}}|#default=...|:...=...|...}}</nowiki>}}. It should use in other templates so it can play its part.
== Usage ==
=== Parameters ===
All the parameters are '''optional'''.
* {{param|1|tag=kbd}}: The default value the template should show. It should be in English.
* {{param|:<lang suffix>|tag=kbd}}: The content of this language the template should show. See examples to understand better.
* {{param|suf|tag=kbd}}: The suffix of the language. Usually specified by other templates.
=== Examples ===
{{MdCode|<nowiki>{{suflang|text}}</nowiki>}} → {{suflang|text}}
 
{{MdCode|<nowiki>{{suflang|text|:zh-cn=文本|suf=:zh-cn}}</nowiki>}} → {{suflang|text|:zh-cn=文本|suf=:zh-cn}}
}}
}}[[Category:Translation templates]][[Category:Templates]][[Category:Multiple languages]]
<!--
 
    + Template +
 
--><includeonly><onlyinclude>{{#switch:{{{suf|}}}
|#default={{{1|}}}
|:en={{{:en|{{{1|}}}}}}
|:ca={{{:ca|{{{1|}}}}}}
|:cs={{{:cs|{{{1|}}}}}}
|:de={{{:de|{{{1|}}}}}}
|:es={{{:es|{{{1|}}}}}}
|:et={{{:et|{{{1|}}}}}}
|:fr={{{:fr|{{{1|}}}}}}
|:hu={{{:hu|{{{1|}}}}}}
|:it={{{:it|{{{1|}}}}}}
|:nl={{{:nl|{{{1|}}}}}}
|:no={{{:no|{{{1|}}}}}}
|:pl={{{:pl|{{{1|}}}}}}
|:pt={{{:pt|{{{1|}}}}}}
|:pt-br={{{:pt-br|{{{1|}}}}}}
|:ru={{{:ru|{{{1|}}}}}}
|:uk={{{:uk|{{{1|}}}}}}
|:sv={{{:sv|{{{1|}}}}}}
|:tr={{{:tr|{{{1|}}}}}}
|:ja={{{:ja|{{{1|}}}}}}
|:zh-cn={{{:zh-cn|{{{1|}}}}}}
|:zh-tw={{{:zh-tw|{{{1|}}}}}}
|:ko={{{:ko|{{{1|}}}}}}
|:ka={{{:ka|{{{1|}}}}}}
|:he={{{:he|{{{1|}}}}}}
}}</onlyinclude></includeonly>

Latest revision as of 17:56, 14 August 2024

Note.pngNote:Archived page history
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.