Difference between revisions of "Template:Language-box"

From Akvopedia
Jump to: navigation, search
(Making each language optional)
Line 1: Line 1:
 
{| align="right" width="9%"  cellpadding="0" cellspacing="6" class="akvopedia-language-box"
 
{| align="right" width="9%"  cellpadding="0" cellspacing="6" 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}}}}}|style="background-color:#eee|}} {{!}}[[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}}}}}|style="background-color:#eee"|}} {{!}} [[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}}}}}|style="background-color:#eee"|}} {{!}} [[File:Flag of Spain.svg {{!}} x16px{{!}}link={{{spanish_link}}}{{!}}alt=Español]]
 
}}
 
}}
 
|}
 
|}

Revision as of 08:10, 22 September 2014