Template:Languages2/Lang: Difference between revisions

Content deleted Content added
revert
add extra span for language name
 
(7 intermediate revisions by the same user not shown)
Line 1:
<includeonly>{{#ifeq: {{{1}}}{{{force|}}}|{{pagelang}}||
<includeonly>{{#ifexist: {{#if: {{{2|}}} | {{{2}}} | {{#titleparts:{{FULLPAGENAME}}|1}}}}/{{{1}}} |<li lang="{{{1}}}" style="white-space: nowrap;">{{#if: {{{2|}}}|[[{{{2}}}/{{{1}}}|{{#language:{{{1}}}}}]] | [[{{#titleparts:{{FULLPAGENAME}}|1}}/{{{1}}}|{{#language:{{{1}}}}}]]}}</li><li class="sp-language-divider">·</li>|}}</includeonly>
{{#ifeq: {{{1}}}|en|
<li lang="en">[[{{#titleparts:{{FULLPAGENAME}}|1}}|<span class="language-name">English</span>]]</li>|
<includeonly>{{#ifexist: {{#if: {{{2|}}} | {{{2}}} | {{#titleparts:{{FULLPAGENAME}}|1}}}}/{{{1}}} |<li lang="{{{1}}}" style="white-space: nowrap;">{{#if: {{{2|}}}|[[{{{2}}}/{{{1}}}|{{#language:{{{1}}}}}]] | [[{{#titleparts:{{FULLPAGENAME}}|1}}/{{{1}}}|<span class="language-name">{{#language:{{{1}}}}}]]}}</lispan><li class="sp-language-divider">·]]</li>|}}}}}}</includeonly>