Difference between revisions of "Template:Lang"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Thumperward
(add an rtl option, for use with template:lang-he and template:lang-yi amongst others)
imported>Happy-melon
(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
| <!--Not article space, do nothing-->
+
| main =[[Category:Articles containing {{#switch:{{{1|}}}
| <!--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 15:48, 24 May 2012

{{{2}}}

Template documentation[create]