Template:Infobox flag
This template uses Lua: |
This infobox can display up to 6 flags. It is not only for national flags.
Parameters
Only the |Name
and |Image
parameters are mandatory. However, |Use={{FIAV#Usage symbols}}
is required for the |Symbol
parameter. (see #Example).
General
- Name
- Name of entity.
- Image_size
- Size of images to use in infobox; if not specified, default is
255x170px
.
Flag-specific
Each of these fields can be given a suffix from 2 to 6 in order to specify up to 6 variants (war flags, naval ensigns, air force ensigns, alternative civil flags, etc.) of the national flag, in addition to the main (non-suffixed) version considered the national flag. For an example, see Flag of the United Kingdom. All of the following parameters are optional with the exception of |Image
. However, |Use={{FIAV#Usage symbols}}
is required for |Symbol
. (see #Example).
Oduduwa flag | |
Togo flag | |
- Image
- Filename excluding
Image:
orFile:
prefix. - Imagetext
- Caption for the image.
- Noborder
- Leave this field blank to display image with border by default for rectangular flag. For non-rectangular flag, type
yes
. - Nickname
- Name of the flag. Wikilinks will work in all Nickname parameters.
- NicknameN: example
|Nickname2=
. For flags 2 through 6, this name will be placed in a header to clearly separate information from the previous flag's information. |Nickname=[[Oduduwa|Oduduwa flag]]
and|Nickname2=[[Togo|Togo flag]]
...- Morenicks
- More names of the flag, separated by commas.
- Use
- 6-bit FIAV usage code (see {{FIAV#Usage symbols}}). Required for
|Symbol
. - Symbol
- One or more IFIS symbols, e.g.
[[File:IFIS Sinister.png|Obverse side of flag]]
or{{FIAV|sinister}}
. A list of these symbols can be seen at Vexillological symbol#Other symbols or {{FIAV#Property symbols}}.|Use={{FIAV#Usage symbols}}
is required. - Proportion
width:length
, e.g.2:3
.- Adoption
- Date on which the flag was adopted.
- Relinquished
- Date on which the flag was relinquished.
- Design
- Concise description of the design.
- Alt
- Alt text for the image, for visually impaired readers. See Wikipedia:Alternative text for images. If omitted or empty, the
|Design
parameter should contain a suitable description, or there should be nearby text in the article that describes the image. - Designer
- Name of person(s) who designed the flag.
Example
Use | Other |
---|---|
Proportion | 2:3 or 3:5 |
Adopted | December 7, 1946 |
Design | A white UN emblem (world map surrounded by two olive branches) on a light blue background. |
Designed by | Donal McLaughlin (emblem only) |
{{Infobox flag
| Name = Flag of the United Nations
| Image = Flag of the United Nations.svg
| Image_size = 200px
| Alt = Flag of the United Nations
| Use = 000000
| Symbol = [[File:IFIS Equal.svg]]
| Proportion = 2:3 or 3:5
| Adoption = December 7, 1946
| Design = A white UN emblem (world map surrounded by two olive branches) on a light blue background.
| Designer = [[Donal McLaughlin]] (emblem only)
}}
Code
One flag
{{Infobox flag
| Name =
| Image =
| Alt =
| Noborder = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "yes". -->
| Nickname =
| Morenicks =
| Use = <!-- Required for |Symbol -->
| Symbol = <!-- |Use="6-digit FIAV usage code" is required. -->
| Proportion =
| Adoption =
| Relinquished =
| Design =
| Designer =
}}
Two flags
{{Infobox flag
| Name =
| Image =
| Alt =
| Noborder = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "yes". -->
| Nickname =
| Morenicks =
| Use = <!-- Required for |Symbol -->
| Symbol = <!-- |Use="6-digit FIAV usage code" is required. -->
| Proportion =
| Adoption =
| Relinquished =
| Design =
| Designer =
| Image2 =
| Alt2 =
| Noborder2 = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "yes". -->
| Nickname2 =
| Morenicks2 =
| Use2 = <!-- Required for |Symbol2 -->
| Symbol2 = <!-- |Use2="6-digit FIAV usage code" is required. -->
| Proportion2 =
| Adoption2 =
| Relinquished2 =
| Design2 =
| Designer2 =
}}
Three flags... and so on
Up to six flags may be included.
{{Infobox flag
| Name =
| Image =
| Alt =
| Noborder = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "yes". -->
| Nickname =
| Morenicks =
| Use = <!-- Required for |Symbol -->
| Symbol = <!-- |Use="6-digit FIAV usage code" is required. -->
| Proportion =
| Adoption =
| Relinquished =
| Design =
| Designer =
| Image2 =
| Alt2 =
| Noborder2 = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "yes". -->
| Nickname2 =
| Morenicks2 =
| Use2 = <!-- Required for |Symbol2 -->
| Symbol2 = <!-- |Use2="6-digit FIAV usage code" is required. -->
| Proportion2 =
| Adoption2 =
| Relinquished2 =
| Design2 =
| Designer2 =
| Image3 =
| Alt3 =
| Noborder3 = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "yes". -->
| Nickname3 =
| Morenicks3 =
| Use3 = <!-- Required for |Symbol3 -->
| Symbol3 = <!-- |Use3="6-digit FIAV usage code" is required. -->
| Proportion3 =
| Adoption3 =
| Relinquished3 =
| Design3 =
| Designer3 =
}}
TemplateData
TemplateData for Infobox flag
An infobox for flags.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | Name | Name of entity | String | suggested |
Image size | Image_size | The size of all images used in the infobox
| Unknown | optional |
Image | Image | Image of the first flag to display | File | required |
Caption | Imagetext | The caption of the image | String | suggested |
Alt text | Alt | no description | String | suggested |
Bordered | Noborder | To disable a border for non-rectangular flags, enter 'yes'.
| Boolean | optional |
Nickname | Nickname | The name of the flag | String | suggested |
Nicknames | Morenicks | Other nicknames | String | optional |
FIAV usage code | Use | A 6-bit FIAV usage code, if necessary. See Template:FIAV symbols for information
| String | optional |
IFIS symbol | Symbol | One or more IFIS symbol. See [[Template:FIAV#Property symbols]]
| Unknown | optional |
Aspect ratio | Proportion | The aspect ratio of the width and heights.
| String | suggested |
Adopted | Adoption | Date or year on which the flag was adopted
| Date | suggested |
Relinquished | Relinquished | Date or year on which the flag was relinquished
| Date | optional |
Design | Design | Concise description of the design
| String | suggested |
Designer | Designer | The designer(s) of the flag | String | suggested |
Image2 | Image2 | no description | Unknown | optional |
Alt2 | Alt2 | no description | Unknown | optional |
Imagetext2 | Imagetext2 | no description | Unknown | optional |
Noborder2 | Noborder2 | no description | Unknown | optional |
Nickname2 | Nickname2 | no description | Unknown | optional |
Morenicks2 | Morenicks2 | no description | Unknown | optional |
Use2 | Use2 | no description | Unknown | optional |
Symbol2 | Symbol2 | no description | Unknown | optional |
Proportion2 | Proportion2 | no description | Unknown | optional |
Adoption2 | Adoption2 | no description | Unknown | optional |
Relinquished2 | Relinquished2 | no description | Unknown | optional |
Design2 | Design2 | no description | Unknown | optional |
Designer2 | Designer2 | no description | Unknown | optional |
Image3 | Image3 | no description | Unknown | optional |
Alt3 | Alt3 | no description | Unknown | optional |
Imagetext3 | Imagetext3 | no description | Unknown | optional |
Noborder3 | Noborder3 | no description | Unknown | optional |
Nickname3 | Nickname3 | no description | Unknown | optional |
Morenicks3 | Morenicks3 | no description | Unknown | optional |
Use3 | Use3 | no description | Unknown | optional |
Symbol3 | Symbol3 | no description | Unknown | optional |
Proportion3 | Proportion3 | no description | Unknown | optional |
Adoption3 | Adoption3 | no description | Unknown | optional |
Relinquished3 | Relinquished3 | no description | Unknown | optional |
Design3 | Design3 | no description | Unknown | optional |
Designer3 | Designer3 | no description | Unknown | optional |
Image4 | Image4 | no description | Unknown | optional |
Alt4 | Alt4 | no description | Unknown | optional |
Imagetext4 | Imagetext4 | no description | Unknown | optional |
Noborder4 | Noborder4 | no description | Unknown | optional |
Nickname4 | Nickname4 | no description | Unknown | optional |
Morenicks4 | Morenicks4 | no description | Unknown | optional |
Use4 | Use4 | no description | Unknown | optional |
Symbol4 | Symbol4 | no description | Unknown | optional |
Proportion4 | Proportion4 | no description | Unknown | optional |
Adoption4 | Adoption4 | no description | Unknown | optional |
Relinquished4 | Relinquished4 | no description | Unknown | optional |
Design4 | Design4 | no description | Unknown | optional |
Designer4 | Designer4 | no description | Unknown | optional |
Image5 | Image5 | no description | Unknown | optional |
Alt5 | Alt5 | no description | Unknown | optional |
Imagetext5 | Imagetext5 | no description | Unknown | optional |
Nickname5 | Nickname5 | no description | Unknown | optional |
Morenicks5 | Morenicks5 | no description | Unknown | optional |
Use5 | Use5 | no description | Unknown | optional |
Symbol5 | Symbol5 | no description | Unknown | optional |
Proportion5 | Proportion5 | no description | Unknown | optional |
Adoption5 | Adoption5 | no description | Unknown | optional |
Relinquished5 | Relinquished5 | no description | Unknown | optional |
Design5 | Design5 | no description | Unknown | optional |
Designer5 | Designer5 | no description | Unknown | optional |
Image6 | Image6 | no description | Unknown | optional |
Alt6 | Alt6 | no description | Unknown | optional |
Imagetext6 | Imagetext6 | no description | Unknown | optional |
Nickname6 | Nickname6 | no description | Unknown | optional |
Morenicks6 | Morenicks6 | no description | Unknown | optional |
Use6 | Use6 | no description | Unknown | optional |
Symbol6 | Symbol6 | no description | Unknown | optional |
Proportion6 | Proportion6 | no description | Unknown | optional |
Adoption6 | Adoption6 | no description | Unknown | optional |
Relinquished6 | Relinquished6 | no description | Unknown | optional |
Design6 | Design6 | no description | Unknown | optional |
Designer6 | Designer6 | no description | Unknown | optional |