Difference between revisions of "Template:Flagright/flag"
Jump to navigation
Jump to search
imported>S.A. Julio m (→top: adjust logic for spacing) |
imported>S.A. Julio m (→top: adjusting for improved method to define custom flag sizes) |
||
| Line 1: | Line 1: | ||
| − | [[{{{alias}}}|{{{name}}}]] {{#switch:{{{flag alias}}}|Flag of Switzerland.svg|Flag of the Vatican City.svg= }}{{#ifeq:{{{alias}}}|Nepal| }}<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}}}]] {{#switch:{{{flag alias}}}|Flag of Switzerland.svg|Flag of the Vatican City.svg= }}{{#ifeq:{{{alias}}}|Nepal| }}<span class="flagicon">[[File:{{{flag alias-{{{variant}}}|{{{flag alias}}}}}}|{{#if:{{{size|}}}|{{{size}}}|{{{size flag alias-{{{variant}}}|{{#if:{{{variant|}}}|23x15px|{{{size flag alias|23x15px}}}}}}}}}}|{{{border-{{{variant}}}|{{{border|border}}}}}} |alt=|link=]]</span><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 23:26, 22 October 2019
[[{{{alias}}}|{{{name}}}]] [[File:{{{flag alias}}}|23x15px|border |alt=|link=]]
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>
| The above documentation is transcluded from Template:Flagright/flag/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |