Template:Flaglink/core: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Andrwsc
revert for now
meta>Andrwsc
span icon image with CSS class; remove whitespace to reduce template size — even a few bytes helps for pages with hundreds of transclusions
Line 1: Line 1:
[[Image:{{
<span class="flagicon">[[Image:{{#if:{{{variant|}}}|{{{flag alias-{{{variant}}}}}}|{{{flag alias-{{{altvar}}}|{{{flag alias}}}}}}}}|{{#if:{{{size|}}}|{{{size}}}|22x20px}}|border|{{{alt attribute|Flag of {{{alias}}}}}}]]&nbsp;</span>[[{{{link alias-{{{altvar}}}|{{{shortname alias|{{{alias}}}}}} {{{altlink}}}}}}|{{#if:{{{name|}}}|{{{name}}}|{{{name alias-{{{altvar}}}|{{{shortname alias|{{{alias}}}}}}}}}}}]]<noinclude>{{documentation}}</noinclude>
  #if: {{{variant|}}} | {{{flag alias-{{{variant}}}}}} | {{{flag alias-{{{altvar}}}|{{{flag alias}}}}}}
}}|{{
  #if: {{{size|}}} | {{{size}}} | 22x20px
}}|border|{{{alt attribute|Flag of {{{alias}}}}}}]]&nbsp;[[{{{link alias-{{{altvar}}}|{{{shortname alias|{{{alias}}}}}} {{{altlink}}}}}}|{{
  #if: {{{name|}}} | {{{name}}} | {{{name alias-{{{altvar}}}|{{{shortname alias|{{{alias}}}}}}}}}
}}]]<noinclude>{{documentation}}</noinclude>

Revision as of 17:40, 25 January 2008

[[Image:{{{flag alias}}}|22x20px|border|Flag of {{{alias}}}]] [[{{{alias}}} {{{altlink}}}|{{{alias}}}]]