Template:Language/archives/Suflang: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (autolang replace)
Line 4: Line 4:


-->{{ulf|en=1}}{{Tdeprecated|Autolang}}
-->{{ulf|en=1}}{{Tdeprecated|Autolang}}
{{doc|content={{autolang|{{distinguish|Template: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.
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 ==
== Usage ==

Revision as of 18:43, 5 August 2024

English (en)
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
Please use {{Autolang}} instead.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.
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.
Not to be confused with Template:Autolang.

This template is used to switch the content according to the {{{suf}}} parameter. It can be also instead of {{#switch:{{{suf|}}}|#default=...|:...=...|...}}. It should use in other templates so it can play its part.

Usage

{{suflang|suf={{{suf|}}}|...|:...=...|...}}

Parameters

All the parameters are optional.

  • {{{1}}}: The default value the template should show. It should be in English.
  • {{{
<lang suffix>}}}: The content of this language the template should show. See examples to understand better.
  • {{{suf}}}: The suffix of the language.
    Note.pngNote:If you use the template in other templates, please specify it into {{{suf|}}} and it will work. Example: {{suflang|suf={{{suf|}}}|...|:...=...|...}}

Examples

{{suflang|text}} → text

{{suflang|text|:zh-cn=文本|suf=:zh-cn}} → 文本

See also