Difference between revisions of "Template:Lang"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Dbachmann
(reverting last edit: it broke rendering if parameter {{{1}}} begins with '*', the * now results in a bullet.)
imported>Davidgothberg
(Removing {{pp-template}}, now auto-added by {{documentation}}. Re-adding my indentation and comments, but not the whitespace stripping. I checked, Dbachmann was correct in reverting my previous edit.)
Line 1: Line 1:
<span lang="{{{1}}}" xml:lang="{{{1}}}">{{{2}}}</span>{{#if:{{NAMESPACE}}|
+
<span lang="{{{1}}}" xml:lang="{{{1}}}">{{{2}}}</span>{{#if:{{NAMESPACE}}
|[[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 23: Line 25:
 
   |en|eng  = explicitly cited English  
 
   |en|eng  = explicitly cited English  
 
   |#default = {{#ifexist:Category:Articles containing {{ISO 639 name {{{1|}}}}} language text
 
   |#default = {{#ifexist:Category:Articles containing {{ISO 639 name {{{1|}}}}} language text
  |{{ISO 639 name {{{1|}}}}}
+
    |{{ISO 639 name {{{1|}}}}}
  |non-English
+
    |non-English
  }}
+
    }}
}} language text]]
+
  }} language text]]
 
}}<noinclude>
 
}}<noinclude>
{{pp-template|small=yes}}
+
 
 
{{documentation}}
 
{{documentation}}
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 04:54, 9 January 2010

{{{2}}}

Template documentation[create]