Template:Flag/core: Difference between revisions

Jump to navigation Jump to search
imported>Andrwsc
(add new parameter for alt attribute of image (with default to previous value); "name" will now always be set, so no need to put into a conditional)
imported>PineApple1298
m (1 revision imported)
 
(20 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Image:{{
<span class="flagicon">[[File:{{{flag alias-{{{variant}}}|{{#if:{{{flag alias|}}}|{{{flag alias}}}|Flag placeholder.svg}}}}}|{{#if:{{{size|}}}|{{{size}}}|{{{size flag alias-{{{variant}}}|{{#if:{{{variant|}}}|23x15px|{{{size flag alias|23x15px}}}}}}}}}}|{{{border-{{{variant}}}|{{{border|border}}}}}} |alt=|link=]]&nbsp;{{#switch:{{{flag alias}}}|Flag of Switzerland.svg|Flag of the Vatican City.svg=&nbsp;}}{{#ifeq:{{{alias}}}|Nepal|&nbsp;&nbsp;}}</span>[[{{{alias}}}|{{{name}}}]]<noinclude>{{documentation}}</noinclude>
  #if: {{{variant|}}} | {{{flag alias-{{{variant}}}}}} | {{{flag alias}}}
}}|{{
  #if: {{{size|}}} | {{{size}}} | 22x20px
}}|border|{{{alt attribute|Flag of {{{alias}}}}}}]]&nbsp;[[{{{alias}}}|{{{name}}}]]<noinclude>
{{protected template}}{{template doc}}</noinclude>

Latest revision as of 21:06, 27 January 2021

File:Flag placeholder.svg [[{{{alias}}}|{{{name}}}]]