Difference between revisions of "Template:LangSwitch"

From "PTTLink Wiki"
Jump to navigation Jump to search
en>Mainframe98
m (Protected "Template:LangSwitch": Excessive vandalism ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
 
Mediawiki>Jarekt
(Switch to Module:LangSwitch; allow multiple languages to map to a single value)
Line 1: Line 1:
{{{
+
<includeonly>{{#invoke:LangSwitch|langSwitch}}</includeonly><noinclude>
  {{#switch: {{{ {{Uselang|lang={{{lang|}}}}} |}}}
+
 
  | ~ = empty
+
{{heavily used template}}
  |  = {{#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>

Revision as of 12:13, 4 June 2018


This message box is using an invalid "type=query" parameter and needs fixing.
Template documentationcreate · purge ]
This documentation is transcluded from Template:LangSwitch/doc.