Template talk:Infobox flag
Note. This template is only a proposal. See Commons talk:WikiProject Flags#Flag template and flag finder for more information.
Usage
This template is designed to present summary information on a flag. It contains both mandatory and optional fields. The empty version with all fields is as follows:
{{Flag| |NAME= |DEFAULT= |OTHERNAMES= |COUNTRY= |OF= |FROM= |UNTIL= |CREATOR= |FORMAT= |FIAV= |TYPE= |MAINCOLORS= |SHAPE= |CHARACTERISTICS= |}}
Using this version of the table will result in the following default being created on the page where the template is used: [[|]]
The variables that will always appear in the template are:
- NAME
- OF
- FROM
- UNTIL
- CREATOR
- FORMAT
- MAINCOLORS
- SHAPE
- CHARACTERISTICS
If these variables are empty, no text is returned.
The remaining rows in the table are optional and they only appear if they actually have something in them since not all flags on Wikimedia Commons need these attributes. They are:
- DEFAULT
- OTHERNAMES
- COUNTRY
- FIAV
- TYPE
The variable DEFAULT indicates whether this is the flag served by the Wikimedia Commons server when Flag of <tt>COUNTRY</tt>.svg is fetched.
The usage of each row is as follows:
- NAME — Name of the flag
- DEFAULT — If this variable has a value, an asterisk will appear next to NAME.
- OTHERNAMES — Other names of the flag
- COUNTRY — Country to which the flag belongs
- OF — Object, which uses the flag
- FROM — Date, when the flag was officially introduced
- UNTIL — Date, when the flag was officially disestablished
- CREATOR — Creator of the flag, if known
- FORMAT — proportion height:width
- FIAV — FIAV-Code (six binary numbers)
- TYPE — Usage not covered by FIAV
- MAINCOLORS — main colors of the flags
- SHAPE — shape of the flag (only to be specified if not rectangular)
To input information into the table simply insert it after the equals sign on each row as appropriate.
Example of Usage
The markup below produces the table seen on the right of the page:
{{Flag |NAME=Flag of Foobar |DEFAULT=1 |OTHERNAMES=Foobarese Democratic Party Flag, "Old Foobar" |COUNTRY=Foobaria |OF=Foobaria, Foobaria Democratic Party |FROM=1970-1-1 |UNTIL=now |CREATOR=Foo Bar |FORMAT=1:2 |FIAV=111000 |TYPE=Civil aviation ensign, naval jack |MAINCOLORS=yellow |CHARACTERISTICS= {{Stars|4|Crux}} }}
[[|]]