Template:LangSwitch: Difference between revisions
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
Uses Lua: |
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
{{TranslateThis}}
The above documentation is transcluded from Template:LangSwitch/doc (edit | history). Editors can experiment in this template's sandbox (create | mirror) and testcases (edit) page. Please add categories to the /doc subpage. Subpages of this template. |