Template:Language/archives/Suflang: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<!--
<includeonly><onlyinclude>{{#switch:{{{suf|}}}
 
    + Documentation +
 
-->{{uselang|en=1}}
{{ {{autolang|documentation}} |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 {{Code|<nowiki>{{#switch:{{{suf|}}}|#default=...|:...=...|...}}</nowiki>}}. It should use in other templates so it can play its part.
== Usage ==
{{MdCodeBlock|<nowiki>{{suflang|suf={{{suf|}}}|...|:...=...|...}}</nowiki>}}
=== 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. {{ModernNote|'''If you use the template in other templates, please specify it into {{param|tag=kbd|<nowiki>suf|</nowiki>}} and it will work.''' Example: {{Code|<nowiki>{{suflang|suf={{{suf|}}}|...|:...=...|...}}</nowiki>}}
=== Examples ===
{{Code|<nowiki>{{suflang|text}}</nowiki>}} → {{suflang|text}}
 
{{Code|<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|}}}
|#default={{{1|}}}
|:en={{{:en|{{{1|}}}}}}
|:en={{{:en|{{{1|}}}}}}
Line 49: Line 25:
|:ka={{{:ka|{{{1|}}}}}}
|:ka={{{:ka|{{{1|}}}}}}
|:he={{{:he|{{{1|}}}}}}
|:he={{{:he|{{{1|}}}}}}
}}</onlyinclude></includeonly>
}}</onlyinclude></includeonly>{{doc}}

Revision as of 09:27, 27 January 2023

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 [view] [create]
Icon-translate.png Available doc translations
Info.png
The Template:Language/archives/Suflang/doc 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.
Template:Language/archives/Suflang/doc