Template:Flag: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
m (Ireland's flag had UK mouseover text)
m (→‎top: replaced: Category:Inline Templates → Category:Inline templates)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>[[File:{{#switch: {{{1}}}
<includeonly>{{#invoke:Region|Flag}}</includeonly><noinclude>
|en = United States of America Flag.png{{!}}United States of America
|jp = Japan Flag.png{{!}}Japan
|ar = Argentine Republic Flag.png{{!}}Argentine Republic
|at = Austria Flag.svg{{!}}Republic of Austria
|au | aus = Commonwealth of Australia Flag.png{{!}}Commonwealth of Australia
|be = Belgium Flag.svg{{!}}Kingdom of Belgium
|br = Brazil Flag.png{{!}}Federative Republic of Brazil
|ca | can = Canada Flag.png{{!}}Canada
|ch = Switzerland Flag.svg{{!}}Swiss Confederation (Switzerland)
|cn = China Flag.png{{!}}People's Republic of China
|cl = Chile Flag.svg{{!}}Republic of Chile
|co = Colombia Flag.svg{{!}}Republic of Colombia
|cz = Czech Republic Flag.png{{!}}Czech Republic
|de | ger = Germany Flag.png{{!}}Federal Republic of Germany
|dk = Kingdom of Denmark Flag.png{{!}}Kingdom of Denmark
|el = Greece Flag.svg{{!}}Hellenic Republic (Greece)
|es = Spain Flag.png{{!}}Kingdom of Spain
|eu = European Union Flag.png{{!}}European Union
|fi = Republic of Finland Flag.png{{!}}Republic of Finland
|fil = Philippines Flag.svg{{!}}Republic of the Philippines
|fr = French Republic Flag.png{{!}}French Republic
|hk = Hong Kong Flag.svg{{!}}HKSAR (Hong Kong)
|hu = Hungary Flag.png{{!}}Hungary
|il = State of Israel Flag.png{{!}}State of Israel
|it = Italy Flag.png{{!}}Italian Republic
|ko = Republic of Korea Flag.png{{!}}Republic of Korea
|la | celac | clacs = CELAC Flag.png{{!}}Community of Latin American and Caribbean States
|ms = Malaysia Flag.svg{{!}}Republic of Malaysia
|mx | mex = United Mexican States Flag.png{{!}}United Mexican States
|nl = Netherlands Flag.png{{!}}Netherlands
|no = Kingdom of Norway Flag.png‎{{!}}Kingdom of Norway
|pe = Peru Flag.svg{{!}}Republic of Peru
|pl = Republic of Poland Flag.png{{!}}Republic of Poland
|pt = Portugal Flag.png{{!}}Portuguese Republic
|ru = Russia Flag.png{{!}}Russian Federation
|se = Kingdom of Sweden Flag.png{{!}}Kingdom of Sweden
|sg = Singapore Flag.svg{{!}}Republic of Singapore
|sk = Slovakia Flag.svg{{!}}Slovak Republic
|th = Thailand Flag.svg{{!}}Kingdom of Thailand
|tw = Taiwan Flag.svg{{!}}Republic of China (Taiwan)
|uk = United Kingdom Flag.jpg{{!}}United Kingdom of Great Britain and Northern Ireland
|za = South Africa Flag.svg{{!}}Republic of South Africa
|#default= No Image.png{{!}}ERROR: You must enter a country code.
}}|{{{2|20px}}}|link=]] {{#switch: {{{1|}}}
|au | aus = [[File:New Zealand Flag.svg|New Zealand|{{{2|20px}}}|link=]]
|uk = [[File:Ireland Flag.svg|Republic of Ireland|{{{2|20px}}}|link=]]
}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
[[Category:Inline Templates]]
[[Category:Inline templates]]

Latest revision as of 14:50, 9 July 2023


Purpose

Displays a region's flag(s).

Usage

SyntaxBoilerplate
{{Flag|<code>|<size>}}
{{Flag|}}
ParameterStatusDescriptionAccepted valuesDefault value
1coderequiredA code representing a region. For countries, this is the ISO 3166-1 alpha-2 code.See Module:Region/Data
2sizeoptionalAn image size.20px

Displays a region's [[:Category:Flags|flag(s)]].

Template parameters

ParameterDescriptionTypeStatus
code1

A code representing a region. For countries, this is the {{Wp|ISO 3166-1 alpha-2}} code.

Stringrequired
size2

An {{MediaWiki|Help:Images#Size_and_frame|image size}}.

Stringoptional
__

Dummy parameter. Do not use.

Unknownoptional

Examples

See Module:Region/Data for the full list of supported regions.

#InputOutputCategories added
1{{Flag|ca}} Canada
2{{Flag|thm}} The Republic of China The Hong Kong Special Administrative Region of China The Macao Special Administrative Region of China
3{{Flag|eur|40px}} Europe
4{{Flag|narnia}}
5{{Flag|}}
The above documentation is transcluded from Template:Flag/Documentation. (edit | history)