Vorlage:LangSwitch: Unterschied zwischen den Versionen

Aus Stadtbahn-Wiki Bielefeld
Zur Navigation springen Zur Suche springen
StadtbahnBI>Mainframe98
K (Protected "Template:LangSwitch": Excessive vandalism ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
 
StadtbahnBI>Jarekt
(Switch to Module:LangSwitch; allow multiple languages to map to a single value)
Zeile 1: Zeile 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>

Version vom 4. Juni 2018, 13:13 Uhr


This message box is using an invalid "type=query" parameter and needs fixing.
Vorlagendokumentation

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

LangSwitch

[[Category:Templates using TemplateData{{#translation:}}]]

Keine Beschreibung.

Vorlagenparameter

ParameterBeschreibungTypStatus
Language Codelang

The ISO 639 language code.

Zeichenfolgeerforderlich
Default Fallbackdefault

The default fallback result, used when the page language is not provided.

Inhaltvorgeschlagen
Englishen

Used when the language is English or if `default` and the page language is not provided.

Inhaltvorgeschlagen