Difference between revisions of "Template:Infobox flag"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
imported>SiBr4 m ({{{Article|}}} missing for third flag) |
imported>Bradv |
||
(16 intermediate revisions by 12 users not shown) | |||
Line 1: | Line 1: | ||
− | { | + | {{infobox |
− | | | + | | title = {{if empty|{{{Name|}}}|{{PAGENAMEBASE}}}} |
− | | | + | | datastyle = display:none |
+ | | data1 = | ||
{{ infobox flag/entry | {{ infobox flag/entry | ||
| Alt = {{{Alt|{{{alt|}}}}}} | | Alt = {{{Alt|{{{alt|}}}}}} | ||
| Imagetext = {{{Imagetext|}}} | | Imagetext = {{{Imagetext|}}} | ||
| Image = {{{Image|}}} | | Image = {{{Image|}}} | ||
− | | Image_size = {{{Image_size| | + | | Image_size = {{{Image_size|255x170px}}} |
| Noborder = {{{Noborder|}}} | | Noborder = {{{Noborder|}}} | ||
| Nickname = {{{Nickname|}}} | | Nickname = {{{Nickname|}}} | ||
Line 14: | Line 15: | ||
| Proportion = {{{Proportion|}}} | | Proportion = {{{Proportion|}}} | ||
| Adoption = {{{Adoption|}}} | | Adoption = {{{Adoption|}}} | ||
+ | | Relinquished = {{{Relinquished|}}} | ||
| Design = {{{Design|}}} | | Design = {{{Design|}}} | ||
| Designer = {{{Designer|}}} | | Designer = {{{Designer|}}} | ||
− | }}{{#if:{{{Image2|}}}| | + | }} |
+ | |data2 = | ||
+ | {{#if:{{{Image2|}}}| | ||
{{ infobox flag/entry | {{ infobox flag/entry | ||
| Alt = {{{Alt2|{{{alt2|}}}}}} | | Alt = {{{Alt2|{{{alt2|}}}}}} | ||
Line 29: | Line 33: | ||
| Proportion = {{{Proportion2|}}} | | Proportion = {{{Proportion2|}}} | ||
| Adoption = {{{Adoption2|}}} | | Adoption = {{{Adoption2|}}} | ||
+ | | Relinquished = {{{Relinquished2|}}} | ||
| Design = {{{Design2|}}} | | Design = {{{Design2|}}} | ||
| Designer = {{{Designer2|}}} | | Designer = {{{Designer2|}}} | ||
− | }}}}{{#if:{{{Image3|}}}| | + | }}}} |
+ | | data3 = | ||
+ | {{#if:{{{Image3|}}}| | ||
{{ infobox flag/entry | {{ infobox flag/entry | ||
| Alt = {{{Alt3|{{{alt3|}}}}}} | | Alt = {{{Alt3|{{{alt3|}}}}}} | ||
Line 44: | Line 51: | ||
| Proportion = {{{Proportion3|}}} | | Proportion = {{{Proportion3|}}} | ||
| Adoption = {{{Adoption3|}}} | | Adoption = {{{Adoption3|}}} | ||
+ | | Relinquished = {{{Relinquished3|}}} | ||
| Design = {{{Design3|}}} | | Design = {{{Design3|}}} | ||
| Designer = {{{Designer3|}}} | | Designer = {{{Designer3|}}} | ||
− | }}}}{{#if:{{{Image4|}}}| | + | }}}} |
+ | |data4 = | ||
+ | {{#if:{{{Image4|}}}| | ||
{{ infobox flag/entry | {{ infobox flag/entry | ||
| Alt = {{{Alt4|{{{alt4|}}}}}} | | Alt = {{{Alt4|{{{alt4|}}}}}} | ||
Line 59: | Line 69: | ||
| Proportion = {{{Proportion4|}}} | | Proportion = {{{Proportion4|}}} | ||
| Adoption = {{{Adoption4|}}} | | Adoption = {{{Adoption4|}}} | ||
+ | | Relinquished = {{{Relinquished4|}}} | ||
| Design = {{{Design4|}}} | | Design = {{{Design4|}}} | ||
| Designer = {{{Designer4|}}} | | Designer = {{{Designer4|}}} | ||
− | }}}}{{#if:{{{Image5|}}}| | + | }}}} |
+ | | data5 = | ||
+ | {{#if:{{{Image5|}}}| | ||
{{ infobox flag/entry | {{ infobox flag/entry | ||
| Alt = {{{Alt5|{{{alt5|}}}}}} | | Alt = {{{Alt5|{{{alt5|}}}}}} | ||
Line 74: | Line 87: | ||
| Proportion = {{{Proportion5|}}} | | Proportion = {{{Proportion5|}}} | ||
| Adoption = {{{Adoption5|}}} | | Adoption = {{{Adoption5|}}} | ||
+ | | Relinquished = {{{Relinquished5|}}} | ||
| Design = {{{Design5|}}} | | Design = {{{Design5|}}} | ||
| Designer = {{{Designer5|}}} | | Designer = {{{Designer5|}}} | ||
− | }}}}{{#if:{{{Image6|}}}| | + | }}}} |
+ | | data6 = | ||
+ | {{#if:{{{Image6|}}}| | ||
{{ infobox flag/entry | {{ infobox flag/entry | ||
| Alt = {{{Alt6|{{{alt6|}}}}}} | | Alt = {{{Alt6|{{{alt6|}}}}}} | ||
Line 89: | Line 105: | ||
| Proportion = {{{Proportion6|}}} | | Proportion = {{{Proportion6|}}} | ||
| Adoption = {{{Adoption6|}}} | | Adoption = {{{Adoption6|}}} | ||
+ | | Relinquished = {{{Relinquished6|}}} | ||
| Design = {{{Design6|}}} | | Design = {{{Design6|}}} | ||
| Designer = {{{Designer6|}}} | | Designer = {{{Designer6|}}} | ||
}}}} | }}}} | ||
− | + | }}<noinclude>{{Documentation}}</noinclude> |
Latest revision as of 00:37, 25 May 2019
[[Category:Infobox templates|Template:Remove first word]]
This infobox can display up to 6 flags. It is not only for national flags.
Contents
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.
- Article
- Term to include before name of entity, e.g.
the
. - 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 Morocco. All of the following parameters are optional with the exception of |Image
. However, |Use={{FIAV#Usage symbols}}
is required for |Symbol
. (see #Example).
- 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
no
. - Nickname
- Name of the 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) |
[[Category:Infobox templates|Template:Remove first word]] |
{{Infobox flag | Name = United Nations | Article = the | 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 = | Article = | Image = | Alt = | Noborder = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "no". --> | 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 = | Article = | Image = | Alt = | Noborder = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "no". --> | 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 "no". --> | 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
{{Infobox flag | Name = | Article = | Image = | Alt = | Noborder = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "no". --> | 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 "no". --> | 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 "no". --> | Nickname3 = | Morenicks3 = | Use3 = <!-- Required for |Symbol3 --> | Symbol3 = <!-- |Use3="6-digit FIAV usage code" is required. --> | Proportion3 = | Adoption3 = | Relinquished3 = | Design3 = | Designer3 = }}
The above documentation is transcluded from Template:Infobox flag/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |