Difference between revisions of "Template:Flag/core"

From Self-sufficiency
Jump to: navigation, search
(span icon image with CSS class; remove whitespace to reduce template size (even a few bytes helps for pages with hundreds of transclusions))
m (1 revision imported)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<span class="flagicon">[[Image:{{#if:{{{variant|}}}|{{{flag alias-{{{variant}}}}}}|{{{flag alias}}}}}|{{#if:{{{size|}}}|{{{size}}}|22x20px}}|border|{{{alt attribute|Flag of {{{alias}}}}}}]]&nbsp;</span>[[{{{alias}}}|{{{name}}}]]<noinclude>{{documentation}}</noinclude>
+
<span class="flagicon">[[File:{{{flag alias-{{{variant}}}|{{#if:{{{flag alias|}}}|{{{flag alias}}}|Flag placeholder.svg}}}}}|{{#if:{{{size|}}}|{{{size}}}|23x15px}}|{{{border-{{{variant}}}|{{{border|border}}}}}} |alt=|link=]]&nbsp;{{#ifeq:{{{size}}}|23x16px|&nbsp;}}{{#ifeq:{{{alias}}}|Nepal|&nbsp;&nbsp;}}</span>[[{{{alias}}}|{{{name}}}]]<noinclude>{{documentation}}</noinclude>

Latest revision as of 21:55, 17 February 2018

23x15px [[{{{alias}}}|{{{name}}}]]