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"
|  {{#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}}}}}|style="background-color:#eee|}} |[[File:Flag_of_the_United_Kingdom.svg | x16px|link={{{english_link}}}|alt=English]]
 +
}}
 +
{{#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]]
 +
}}
 +
{{#if: {{{spanish_link|}}}|
 +
|  {{#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:06, 22 September 2014

align="center"