Template:If lang: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
m updated.
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#switch:{{#invoke:Lang|get_lang_code}}
{{#switch:{{#invoke:Lang|get_lang_code}}
|cs|es|fr|ja|ko|pt-br|ru|tr|zh-hans|zh-hant = {{{2|{{{non-en|{{{lang|/{{#invoke:Lang|get_lang_code}}}}}}}}}}}
|cs|es|fr|ja|ko|pt-br|ru|tr|zh-hans = {{{2|{{{non-en|{{{lang|/{{#invoke:Lang|get_lang_code}}}}}}}}}}}
| #default = {{{1|{{{en|}}}}}}
| #default = {{{1|{{{en|}}}}}}
}}<noinclude>{{Documentation}}</noinclude>
}}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 22:32, 2 July 2026

Template documentation [view] [edit] [history] [purge]

Usage

This template allows language-specific links, useful for templates. Language codes here should match Data:LangCodes.json.

Code English page result Language page result (ru)
[[Abrams{{if lang}}]] Abrams Abrams/ru