Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:LanguageSelector/link: Difference between revisions

Template page
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}}}]]&nbsp;[http://commons.wikimedia.org/wiki/{{FULLPAGENAMEE}}?uselang={{{1}}} {{{3}}}]
|[[File:{{{4}}}|20x13px|link=http://commons.wikimedia.org/wiki/{{FULLPAGENAMEE}}?uselang={{{1}}}]]&nbsp;[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

Cookies help us deliver our services. By using our services, you agree to our use of cookies.