Difference between revisions of "Template:LangSwitch"

From "PTTLink Wiki"
Jump to navigation Jump to search
Mediawiki>Jarekt
(Switch to Module:LangSwitch; allow multiple languages to map to a single value)
m (1 revision imported)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#invoke:LangSwitch|langSwitch}}</includeonly><noinclude>
+
{{{
 
+
  {{#switch: {{{ {{Uselang|lang={{{lang|}}}}} |}}}
{{heavily used template}}
+
  | ~ = empty
 +
  |  = {{#switch: {{{ {{GetFallback| {{Uselang|lang={{{lang|}}}}} |default=default}} |}}}
 +
    | ~ = empty
 +
    |  = {{#switch: {{{ {{GetFallback2| {{Uselang|lang={{{lang|}}}}} |default=default}} |}}}
 +
      | ~        = empty
 +
      |          = {{#if: {{{default|}}} | default | en }}
 +
      | #default = {{GetFallback2| {{Uselang|lang={{{lang|}}}}} |default=default}}
 +
      }}
 +
    | #default = {{GetFallback| {{Uselang|lang={{{lang|}}}}} |default=default}}
 +
    }}
 +
  | #default = {{Uselang|lang={{{lang|}}}}}
 +
  }}  
 +
|}}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 19:05, 21 January 2022

Template documentationcreate · purge ]
This documentation is transcluded from Template:LangSwitch/doc.