Difference between revisions of "Template:Flagright/flag"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(moved documentation to /doc)
imported>S.A. Julio
m (→‎top: adjust logic for spacing)
Line 1: Line 1:
[[{{{alias}}}|{{{name}}}]]&nbsp;{{#ifeq:{{{size}}}|23x16px|&nbsp;}}{{#ifeq:{{{alias}}}|Nepal|&nbsp;&nbsp;}}<span class="flagicon">[[File:{{{flag alias-{{{variant}}}|{{{flag alias}}}}}}|{{#if:{{{size|}}}|{{{size}}}|23x15px}}|{{{border-{{{variant}}}|{{{border|border}}}}}} |alt=|link=]]</span><noinclude>{{Documentation}}</noinclude>
+
[[{{{alias}}}|{{{name}}}]]&nbsp;{{#switch:{{{flag alias}}}|Flag of Switzerland.svg|Flag of the Vatican City.svg=&nbsp;}}{{#ifeq:{{{alias}}}|Nepal|&nbsp;&nbsp;}}<span class="flagicon">[[File:{{{flag alias-{{{variant}}}|{{{flag alias}}}}}}|{{#if:{{{size|}}}|{{{size}}}|23x15px}}|{{{border-{{{variant}}}|{{{border|border}}}}}} |alt=|link=]]</span><noinclude>{{Documentation}}</noinclude>

Revision as of 22:42, 22 October 2019

[[{{{alias}}}|{{{name}}}]] [[File:{{{flag alias}}}|23x15px|border |alt=|link=]]

Template documentation[view] [edit] [history] [purge]

This template is used internally by Template:Flagright. It is not intended to be transcluded directly.

Because {{flagright/core}} doesn't seem to work properly for non-sports usages in some cases (possibly related to the absence of the {{{altlink}}} parameter on some country data templates), this template is used as the "core" for {{flagright}}. The code is copied from {{flag/core}}, but has the flag icon and the country link switched. </noinclude>