Template:Flaglink/core: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Andrwsc
add link parameter to image syntax, so that clicking on the icon takes you to the article and not the image page
meta>Andrwsc
accessibility fix
Line 1: Line 1:
<span class="flagicon">[[Image:{{#if:{{{variant|}}}|{{{flag alias-{{{variant}}}}}}|{{{flag alias-{{{altvar}}}|{{{flag alias}}}}}}}}|{{#if:{{{size|}}}|{{{size}}}|22x20px}}|{{{border-{{{variant}}}|{{{border|border}}}}}} |link={{{alias}}}]]&nbsp;</span>[[{{{link alias-{{{altvar}}}|{{{shortname alias|{{{alias}}}}}} {{{altlink}}}}}}|{{#if:{{{name|}}}|{{{name}}}|{{{name alias-{{{altvar}}}|{{{shortname alias|{{{alias}}}}}}}}}}}]]<noinclude>{{documentation}}</noinclude>
<span class="flagicon">[[Image:{{#if:{{{variant|}}}|{{{flag alias-{{{variant}}}}}}|{{{flag alias-{{{altvar}}}|{{{flag alias}}}}}}}}|{{#if:{{{size|}}}|{{{size}}}|22x20px}}|{{{border-{{{variant}}}|{{{border|border}}}}}} |link=]]&nbsp;</span>[[{{{link alias-{{{altvar}}}|{{{shortname alias|{{{alias}}}}}} {{{altlink}}}}}}|{{#if:{{{name|}}}|{{{name}}}|{{{name alias-{{{altvar}}}|{{{shortname alias|{{{alias}}}}}}}}}}}]]<noinclude>{{documentation}}</noinclude>

Revision as of 06:50, 14 August 2009

[[Image:{{{flag alias}}}|22x20px|border |link=]] [[{{{alias}}} {{{altlink}}}|{{{alias}}}]]