Page permanently protected

Template:LangSwitch: Difference between revisions

From Wikidata
Jump to navigation Jump to search
Content deleted Content added
change back to Jarekt's way (misunderstood how he meant to use it - sorry mr. job queue)
m final fix after use of template:LangSwitch/test + moved categories to documentation page
Line 75: Line 75:
|el={{{el|}}}
|el={{{el|}}}
|eml={{{eml|}}}
|eml={{{eml|}}}
|en={{{en|}}}
|en={{{en|{{{default|}}}}}}
|en-gb={{{en-gb|}}}
|en-gb={{{en-gb|}}}
|eo={{{eo|}}}
|eo={{{eo|}}}
Line 366: Line 366:
|#default={{{default|{{{en|}}}}}}
|#default={{{default|{{{en|}}}}}}
}}<includeonly>{{#if:{{{lang|}}}{{{default|}}}||{{#ifeq:{{{en|NoVal}}}|NoVal|[[Category:LangSwitch template without English version]]}} }}</includeonly><noinclude>
}}<includeonly>{{#if:{{{lang|}}}{{{default|}}}||{{#ifeq:{{{en|NoVal}}}|NoVal|[[Category:LangSwitch template without English version]]}} }}</includeonly><noinclude>

{{Documentation}}
{{Documentation}}

[[Category:Function templates]]
[[Category:Internationalization templates]]
</noinclude>
</noinclude>

Revision as of 02:13, 19 October 2010


Documentation icon Template documentation[view · edit · history · purge ]

How to

{{LangSwitch
 |de =
 |en = 
 |es = 
 |fr = 
 |it = 
 |default = NASAMEN
}}

default or en is required

Examples

This code

{{LangSwitch |de = wort |en = word |es = palabra |fr = mot |it = parola |nl = woord }}

gives

word


This code

{{LangSwitch |de = wort |en = word |es = palabra |fr = mot |it = parola |nl = woord |lang = vec }}

gives

parola

See also