Difference between revisions of "Template:Flagu/core"

From blackwiki
Jump to navigation Jump to search
imported>S.A. Julio
m (→‎top: adjusting for improved method to define custom flag sizes)
imported>S.A. Julio
(cat)
 
Line 1: Line 1:
 
<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=]]&nbsp;{{#switch:{{{flag alias}}}|Flag of Switzerland.svg|Flag of the Vatican City.svg=&nbsp;}}{{#ifeq:{{{alias}}}|Nepal|&nbsp;&nbsp;}}</span>{{{name}}}<noinclude>
 
<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=]]&nbsp;{{#switch:{{{flag alias}}}|Flag of Switzerland.svg|Flag of the Vatican City.svg=&nbsp;}}{{#ifeq:{{{alias}}}|Nepal|&nbsp;&nbsp;}}</span>{{{name}}}<noinclude>
{{documentation|Template:Flagu/doc}}</noinclude>
+
{{documentation|Template:Flagu/doc}}
 +
[[Category:Flag template system cores]]</noinclude>

Latest revision as of 23:50, 2 December 2019

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

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

This template is used to display a small flag icon next to an unlinked country name. It is an alternative to the {{flag}} and {{flagcountry}} templates, for use in instances where the country name should not be linked, per WP:OVERLINK.

See Wikipedia:WikiProject Flag Template for the main documentation/discussion page for the flag templates system.

Usage

{{flagu|country identifier|optional variant}}
  • country identifier is the common name of the country (e.g. "United States"), a common alias (e.g. "US"), or a standard country code such as those listed at ISO 3166-1 alpha-3
  • variant is an optional second parameter that can be used to display a flag variation, such as a historical flag. The list of variants for each country is documented on the appropriate template page, such as Template:Country data Germany

See the prefix index for the templates latently called by this one.

Examples

Wiki markup Displays
{{flagu|Germany}}  Germany
{{flagu|GER}}  GER
{{flagu|Germany|empire}}  Germany
{{flagu|German Empire}}  German Empire

See also