Template:Lang: Difference between revisions

69 bytes removed ,  14 years ago
reverting last edit: it broke rendering if parameter {{{1}}} begins with '*', the * now results in a bullet.
(Adding whitespace stripping around parameter 2, by using "{{#if:x| }}", since we need it in some cases.)
(reverting last edit: it broke rendering if parameter {{{1}}} begins with '*', the * now results in a bullet.)
Line 1:
<span lang="{{{1}}}" xml:lang="{{{1}}}">{{#if:x| {{{2}}} }}</span>{{#if:{{NAMESPACE}}|
|[[Category:Articles containing {{#switch:{{{1|}}}
| <!--Not article space, do nothing-->
| <!--Article space-->
[[Category:Articles containing {{#switch:{{{1|}}}
|ar = Arabic
|es = Spanish
Line 25 ⟶ 23:
|en|eng = explicitly cited English
|#default = {{#ifexist:Category:Articles containing {{ISO 639 name {{{1|}}}}} language text
|{{ISO 639 name {{{1|}}}}}
|non-English
}}
}} language text]]
}}<noinclude>
{{pp-template|small=yes}}
 
{{pp-template}}
{{documentation}}
<!-- Add cats and interwikis to the /doc subpage, not here! -->
Anonymous user