Difference between revisions of "Template:LangSwitch"
Jump to navigation
Jump to search
(this should use a Lua module (possibly part of the Translate MW-extension also based on Lua) for full and faster processing of many possible parameter names (lang codes) and full support of fallbacks (still missing)) |
|||
Line 1: | Line 1: | ||
{{{ | {{{ | ||
− | {{#switch: {{{ {{ | + | {{#switch: {{{ {{Uselang|lang={{{lang|}}}}} |}}} |
| ~ = empty | | ~ = empty | ||
− | | = {{#switch: {{{ {{GetFallback| {{ | + | | = {{#switch: {{{ {{GetFallback| {{Uselang|lang={{{lang|}}}}} |default=default}} |}}} |
| ~ = empty | | ~ = empty | ||
− | | = {{#switch: {{{ {{GetFallback2| {{ | + | | = {{#switch: {{{ {{GetFallback2| {{Uselang|lang={{{lang|}}}}} |default=default}} |}}} |
| ~ = empty | | ~ = empty | ||
| = {{#if: {{{default|}}} | default | en }} | | = {{#if: {{{default|}}} | default | en }} | ||
− | | #default = {{GetFallback2| {{ | + | | #default = {{GetFallback2| {{Uselang|lang={{{lang|}}}}} |default=default}} |
− | }} | + | }} |
− | | #default = {{GetFallback| {{ | + | | #default = {{GetFallback| {{Uselang|lang={{{lang|}}}}} |default=default}} |
}} | }} | ||
− | | #default = {{ | + | | #default = {{Uselang|lang={{{lang|}}}}} |
}} | }} | ||
|}}} | |}}} |