Template:LanguageSelector/link: Difference between revisions
Template page
More actions
fixed missing icon height restriction |
added default for flags |
||
| Line 1: | Line 1: | ||
{{#ifeq:{{{2}}}|yes | <onlyinclude>{{#ifeq:{{{2|yes}}}|yes | ||
|[[File:{{{4}}}|20x13px|link=http://commons.wikimedia.org/wiki/{{FULLPAGENAMEE}}?uselang={{{1}}}]] [http://commons.wikimedia.org/wiki/{{FULLPAGENAMEE}}?uselang={{{1}}} {{{3}}}] | |[[File:{{{4}}}|20x13px|link=http://commons.wikimedia.org/wiki/{{FULLPAGENAMEE}}?uselang={{{1}}}]] [http://commons.wikimedia.org/wiki/{{FULLPAGENAMEE}}?uselang={{{1}}} {{{3}}}] | ||
|{{#ifeq:{{{2}}}|only | |{{#ifeq:{{{2|yes}}}|only | ||
|[[File:{{{4}}}|20x13px|link=http://commons.wikimedia.org/wiki/{{FULLPAGENAMEE}}?uselang={{{1}}}]] | |{{#if:{{{4|}}}|[[File:{{{4}}}|20x13px|link=http://commons.wikimedia.org/wiki/{{FULLPAGENAMEE}}?uselang={{{1}}}]] | ||
|[http://commons.wikimedia.org/wiki/{{FULLPAGENAMEE}}?uselang={{{1}}} {{{3}}}] | |[http://commons.wikimedia.org/wiki/{{FULLPAGENAMEE}}?uselang={{{1}}} {{{3}}}] | ||
}}}} | }}}}</onlyinclude> | ||
<!-- just a few notes | |||
flag requested? exists? -> render flag | |||
both requested? exist? -> render spacer | |||
text requested? exists? -> render text | |||
{{{1}}}:ISO must exist, default to fallback | |||
{{{2}}}:flags value | |||
{{{3}}}:language name | |||
{{{4}}}:language icon file | |||
if flag exists | |||
then ?flag + if text exists and required then ?text | |||
else if text exists then ?text else ?ISO | |||
--> | |||
Revision as of 23:30, 10 January 2010
{{#ifeq:yes|yes |[[File:{{{4}}}|20x13px|link=http://commons.wikimedia.org/wiki/Template:LanguageSelector/link?uselang={{{1}}}]] {{{3}}} |