Template:Flag

From Zelda Wiki, the Zelda encyclopedia
Revision as of 20:09, 24 March 2022 by MagicMason1000 (talk | contribs) (Adding new countries based on Nintendo's marketing regions)


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.

#InputOutput
1{{Flag|ca}} Canada
2{{Flag|thm}} ERROR: You must enter a country code.
3{{Flag|eur|40px}} ERROR: You must enter a country code.
4{{Flag|narnia}} ERROR: You must enter a country code.
5{{Flag|}} ERROR: You must enter a country code.
The above documentation is transcluded from Template:Flag/Documentation. (edit | history)