Template:Language/archives/Suflang: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (autolang replace)
(Delete)
Tag: Replaced
Line 1: Line 1:
<!--
{{Delete|reason=deprecated|No pages are using this template.}}
 
    + Documentation +
 
-->{{ulf|en=1}}{{Tdeprecated|Autolang}}
{{doc|content={{#switch: {{language}}|#default = {{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 ==
{{CodeBlock|<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. {{note|'''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}}
== See also ==
*{{tl|link=autolang}}
*{{tl|link=Uselangflags}}
*{{tl|link=uilang}}
}}
}}}}[[Category:Translation templates]][[Category:Templates]]
<!--
 
    + Template +
 
--><includeonly><onlyinclude>{{#switch:{{{suf|}}}
|#default={{{1|}}}
|:en={{{:en|{{{1|}}}}}}
|:eo={{{:eo|{{{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|}}}}}}
|:vi={{{:vi|{{{1|}}}}}}
|:zh-cn={{{:zh-cn|{{{1|}}}}}}
|:zh-tw={{{:zh-tw|{{{1|}}}}}}
|:ko={{{:ko|{{{1|}}}}}}
|:ka={{{:ka|{{{1|}}}}}}
|:he={{{:he|{{{1|}}}}}}
}}</onlyinclude></includeonly>

Revision as of 11:04, 14 August 2024

Warning icon.png
This template has been marked as a candidate for speedy deletion because it has been deprecated for the following reason:
No pages are using this template.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.