Difference between revisions of "Template:Language-box"

 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| align="right" width="9%"  cellpadding="0" cellspacing="6" class="akvopedia-language-box"
+
{| class="akvopedia-language-box"
|  {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{english_link}}}}}|style="background-color:#eee|}} |[[File:Flag_of_the_United_Kingdom.svg | x16px|link={{{english_link}}}|alt=English]] || align="center" {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{french_link}}}}}|style="background-color:#eee"|}} | [[File:Flag_of_France.svg |x16px|link={{{french_link}}}|alt=Français]]  ||  {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{spanish_link}}}}}|style="background-color:#eee"|}} | [[File:Flag of Spain.svg | x16px|link={{{spanish_link}}}|alt=Español]]
+
{{#if: {{{english_link|}}}|
 +
{{!}} {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{english_link}}}}}|class="current"|}} {{!}}[[File:Flag_of_the_United_Kingdom.svg {{!}}x16px{{!}}link={{{english_link}}}{{!}}alt=English]]
 +
}}
 +
{{#if: {{{french_link|}}}|
 +
{{!}} align="center" {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{french_link}}}}}|class="current"|}} {{!}} [[File:Flag_of_France.svg {{!}}x16px{{!}}link={{{french_link}}}{{!}}alt=Français]]
 +
}}
 +
{{#if: {{{spanish_link|}}}|
 +
{{!}}  {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{spanish_link}}}}}|class="current"|}} {{!}} [[File:Flag of Spain.svg {{!}} x16px{{!}}link={{{spanish_link}}}{{!}}alt=Español]]
 +
}}
 +
{{#if: {{{hindi_link|}}}|
 +
{{!}}  {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{hindi_link}}}}}|class="current"|}} {{!}} [[File:India flag.jpg {{!}} x16px{{!}}link={{{hindi_link}}}{{!}}alt=भारत]]
 +
}}
 +
{{#if: {{{malayalam_link|}}}|
 +
{{!}}  {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{malayalam_link}}}}}|class="current"|}} {{!}} [[File:India flag.jpg {{!}} x16px{{!}}link={{{malayalam_link}}}{{!}}alt=മലയാളം]]
 +
}}
 +
{{#if: {{{tamil_link|}}}|
 +
{{!}}  {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{tamil_link}}}}}|class="current"|}} {{!}} [[File:India flag.jpg {{!}} x16px{{!}}link={{{tamil_link}}}{{!}}alt=தமிழ்]]
 +
}}
 +
{{#if: {{{swahili_link|}}}|
 +
{{!}} {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{swahili_link}}}}}|class="current"|}} {{!}} [[File:Kenya flag.png {{!}} x16px{{!}}link={{{swahili_link}}}{{!}}alt=Swahili]]
 +
}}
 +
{{#if: {{{korean_link|}}}|
 +
{{!}} {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{korean_link}}}}}|class="current"|}} {{!}} [[File:korean flag.jpg {{!}} x16px{{!}}link={{{korean_link}}}{{!}}alt=한국어]]
 +
}}
 +
{{#if: {{{chinese_link|}}}|
 +
{{!}}  {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{chinese_link}}}}}|class="current"|}} {{!}} [[File:chinese flag.jpg {{!}} x16px{{!}}link={{{chinese_link}}}{{!}}alt=中國]]
 +
}}
 +
{{#if: {{{indonesian_link|}}}|
 +
{{!}}  {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{indonesian_link}}}}}|class="current"|}} {{!}} [[File:indonesian flag.png {{!}} x16px{{!}}link={{{indonesian_link}}}{{!}}alt=Indonesia]]
 +
}}
 +
{{#if: {{{japanese_link|}}}|
 +
{{!}}  {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{japanese_link}}}}}|class="current"|}} {{!}} [[File:japanese flag.png {{!}} x16px{{!}}link={{{japanese_link}}}{{!}}alt=Japanese]]
 +
}}
 +
{{#if: {{{russian_link|}}}|
 +
{{!}}  {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{russian_link}}}}}|class="current"|}} {{!}} [[File:russia-flag.jpg {{!}} x16px{{!}}link={{{russian_link}}}{{!}}alt=Russian]]
 +
}}
 
|}
 
|}

Latest revision as of 23:40, 19 May 2017