Template:LangSwitch: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
Undo revision 7114368 by Ralgis (talk)
m bdi is preferable to bdo (it doesn't override the direction of the embedded text if it's not in the expected specified direction, but isolates the effective direction of the embedded text from the direction of the outer context)
Line 1: Line 1:
{{#ifeq:{{{{{{uselang|}}}|}}}|{{{{{{uselang|}}} |-}}}|{{{{{{uselang|}}}}}}|
{{#ifeq:{{{{{{uselang|}}}|}}}|{{{{{{uselang|}}} |-}}}|{{{{{{uselang|}}}}}}|
<bdo lang="{{BCP47|{{uselang}}}}" dir="{{dir|{{uselang}}}}">{{#switch:{{#if:{{{uselang|}}}|{{{uselang|}}}|{{uselang}}}}<!--
<bdi lang="{{BCP47|{{uselang}}}}" dir="{{dir|{{uselang}}}}">{{#switch:{{#if:{{{uselang|}}}|{{{uselang|}}}|{{uselang}}}}<!--
TODO:add the missing fallbacks port these fallbacks into the Lua module for TNT and use the fallbacks mapped in the PHP modules of MediaWiki supported languages
TODO:add the missing fallbacks port these fallbacks into the Lua module for TNT and use the fallbacks mapped in the PHP modules of MediaWiki supported languages


Line 283: Line 283:
-->|#default=
-->|#default=
{{#if:{{{default|}}}|{{#ifeq:{{{{{{default|}}}|}}}|{{{{{{default|}}}|-}}}|{{{{{{default|}}}|}}}|{{{en}}}}}|{{{en}}}}}
{{#if:{{{default|}}}|{{#ifeq:{{{{{{default|}}}|}}}|{{{{{{default|}}}|-}}}|{{{{{{default|}}}|}}}|{{{en}}}}}|{{{en}}}}}
}}</bdo>}}<noinclude><!--{{Documentation}}[[Category:formatting templates]][[Category:User interface language dependent templates|LangSwitch]]--></noinclude>
}}</bdi>}}<noinclude><!--{{Documentation}}[[Category:formatting templates]][[Category:User interface language dependent templates|LangSwitch]]--></noinclude>

Revision as of 00:14, 17 January 2014

{{{en}}}