Difference between revisions of "Template:Language-box"

From Akvopedia
Jump to: navigation, search
m
(Adding class="current")
Line 1: Line 1:
 
{| class="akvopedia-language-box"
 
{| class="akvopedia-language-box"
 
{{#if: {{{english_link|}}}|
 
{{#if: {{{english_link|}}}|
{{!}}  {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{english_link}}}}}|style="background-color:#eee"|}} {{!}}[[File:Flag_of_the_United_Kingdom.svg {{!}}x16px{{!}}link={{{english_link}}}{{!}}alt=English]]
+
{{!}}  {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{english_link}}}}}|class="current"|}} {{!}}[[File:Flag_of_the_United_Kingdom.svg {{!}}x16px{{!}}link={{{english_link}}}{{!}}alt=English]]
 
}}
 
}}
 
{{#if: {{{french_link|}}}|
 
{{#if: {{{french_link|}}}|
{{!}} align="center" {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{french_link}}}}}|style="background-color:#eee"|}} {{!}} [[File:Flag_of_France.svg {{!}}x16px{{!}}link={{{french_link}}}{{!}}alt=Français]]
+
{{!}} align="center" {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{french_link}}}}}|class="current"|}} {{!}} [[File:Flag_of_France.svg {{!}}x16px{{!}}link={{{french_link}}}{{!}}alt=Français]]
 
}}
 
}}
 
{{#if: {{{spanish_link|}}}|
 
{{#if: {{{spanish_link|}}}|
{{!}}  {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{spanish_link}}}}}|style="background-color:#eee"|}} {{!}} [[File:Flag of Spain.svg {{!}} x16px{{!}}link={{{spanish_link}}}{{!}}alt=Español]]
+
{{!}}  {{#ifeq: {{PAGENAME}}|{{PAGENAME:{{{spanish_link}}}}}|class="current"|}} {{!}} [[File:Flag of Spain.svg {{!}} x16px{{!}}link={{{spanish_link}}}{{!}}alt=Español]]
 
}}
 
}}
 
|}
 
|}

Revision as of 07:53, 23 September 2014