Template:Language/archives/Suflang: Difference between revisions
Jump to navigation
Jump to search
1416006136 (talk | contribs) mNo edit summary |
1416006136 (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
-->{{uselang|en=1|zh-cn=1}} | -->{{uselang|en=1|zh-cn=1}} | ||
{{ {{autolang|documentation | {{ {{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 {{MdCode|<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 {{MdCode|<nowiki>{{#switch:{{{suf|}}}|#default=...|:...=...|...}}</nowiki>}}. It should use in other templates so it can play its part. | ||
== Usage == | == Usage == | ||
Line 11: | Line 11: | ||
* {{param|1|tag=kbd}}: The default value the template should show. It should be in English. | * {{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|:<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. If you use the template in other templates, please specify it into {{param|tag=kbd|<nowiki>suf|</nowiki>}} and it will work. | * {{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.'''}} | ||
=== Examples === | === Examples === | ||
{{MdCode|<nowiki>{{suflang|text}}</nowiki>}} → {{suflang|text}} | {{MdCode|<nowiki>{{suflang|text}}</nowiki>}} → {{suflang|text}} |
Revision as of 02:30, 20 January 2023

This template (and its redirect) is
Deprecated. Its use is not recommended and its functionality may be compromised.
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.
Additional notes:
Use #switch parser function instead. Example

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.
Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
}}
|content=

This template (and its redirect) is
Deprecated. Its use is not recommended and its functionality may be compromised.
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.
Additional notes:
Use #switch parser function instead. Example

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.
Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
}}
}}