Template:Lang: Difference between revisions

From TEPwiki, Urth's Encyclopedia
Jump to navigation Jump to search
Content added Content deleted
(add an rtl option, for use with template:lang-he and template:lang-yi amongst others)
(use {{category handler}} to implement categorisation optout)
Line 1: Line 1:
<span lang="{{{1}}}" xml:lang="{{{1}}}" {{#if:{{{rtl|}}}|dir="rtl"}}>{{{2}}}</span>{{#if:{{NAMESPACE}}
<span lang="{{{1}}}" xml:lang="{{{1}}}" {{#if:{{{rtl|}}}|dir="rtl"}}>{{{2}}}</span>{{category handler
| main =[[Category:Articles containing {{#switch:{{{1|}}}
| <!--Not article space, do nothing-->
| <!--Article space-->
[[Category:Articles containing {{#switch:{{{1|}}}
|ar = Arabic
|ar = Arabic
|es = Spanish
|es = Spanish
Line 29: Line 27:
}}
}}
}} language text]]
}} language text]]
| nocat = {{{nocat|}}}
}}<noinclude>{{documentation}}<!-- Add cats and interwikis to the /doc sub-page --></noinclude>
}}<noinclude>{{documentation}}<!-- Add cats and interwikis to the /doc sub-page --></noinclude>

Revision as of 09:48, 24 May 2012

{{{2}}}