Template:Infobox flag/doc

From MOASSpedia
Jump to navigation Jump to search

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.
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: or File: 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

United Nations
Flag of the United Nations
UseOther IFIS Equal.svg
Proportion2:3 or 3:5
AdoptedDecember 7, 1946
DesignA white UN emblem (world map surrounded by two olive branches) on a light blue background.
Designed byDonal McLaughlin (emblem only)
{{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 = 
}}

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Infobox flag

An infobox for flags.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
NameName

Name of entity

Stringsuggested
ArticleArticle

What the infobox will append to other variations, if specified. E.g. "Variant flag of [the] American flag"

Example
the
Stringsuggested
Image sizeImage_size

The size of all images used in the infobox

Example
255x170px
Unknownoptional
ImageImage

Image of the first flag to display

Filerequired
CaptionImagetext

The caption of the image

Stringsuggested
Alt textAlt

no description

Stringsuggested
BorderedNoborder

To disable a border for non-rectangular flags, enter 'no'.

Example
no
Booleanoptional
NicknameNickname

The name of the flag

Stringsuggested
NicknamesMorenicks

Other nicknames

Stringoptional
FIAV usage codeUse

A 6-bit FIAV usage code, if necessary. See [[Template:FIAV#Usage symbols]] for information

Example
100101
Stringoptional
IFIS symbolSymbol

One or more IFIS symbol. See [[Template:FIAV#Property symbols]]

Example
{{FIAV|sinister}}
Unknownoptional
Aspect ratioProportion

The aspect ratio of the width and heights.

Example
2:3
Stringsuggested
AdoptedAdoption

Date or year on which the flag was adopted

Example
{{Start date and age|1999}}
Datesuggested
RelinquishedRelinquished

Date or year on which the flag was relinquished

Example
{{End date|1575}}
Dateoptional
DesignDesign

Concise description of the design

Example
Solid blue with a white Earth-shaped outline in the center.
Stringsuggested
DesignerDesigner

The designer(s) of the flag

Stringsuggested
Image2Image2

no description

Unknownoptional
Alt2Alt2

no description

Unknownoptional
Imagetext2Imagetext2

no description

Unknownoptional
Noborder2Noborder2

no description

Unknownoptional
Nickname2Nickname2

no description

Unknownoptional
Morenicks2Morenicks2

no description

Unknownoptional
Use2Use2

no description

Unknownoptional
Symbol2Symbol2

no description

Unknownoptional
Proportion2Proportion2

no description

Unknownoptional
Adoption2Adoption2

no description

Unknownoptional
Relinquished2Relinquished2

no description

Unknownoptional
Design2Design2

no description

Unknownoptional
Designer2Designer2

no description

Unknownoptional
Image3Image3

no description

Unknownoptional
Alt3Alt3

no description

Unknownoptional
Imagetext3Imagetext3

no description

Unknownoptional
Noborder3Noborder3

no description

Unknownoptional
Nickname3Nickname3

no description

Unknownoptional
Morenicks3Morenicks3

no description

Unknownoptional
Use3Use3

no description

Unknownoptional
Symbol3Symbol3

no description

Unknownoptional
Proportion3Proportion3

no description

Unknownoptional
Adoption3Adoption3

no description

Unknownoptional
Relinquished3Relinquished3

no description

Unknownoptional
Design3Design3

no description

Unknownoptional
Designer3Designer3

no description

Unknownoptional
Image4Image4

no description

Unknownoptional
Alt4Alt4

no description

Unknownoptional
Imagetext4Imagetext4

no description

Unknownoptional
Noborder4Noborder4

no description

Unknownoptional
Nickname4Nickname4

no description

Unknownoptional
Morenicks4Morenicks4

no description

Unknownoptional
Use4Use4

no description

Unknownoptional
Symbol4Symbol4

no description

Unknownoptional
Proportion4Proportion4

no description

Unknownoptional
Adoption4Adoption4

no description

Unknownoptional
Relinquished4Relinquished4

no description

Unknownoptional
Design4Design4

no description

Unknownoptional
Designer4Designer4

no description

Unknownoptional
Image5Image5

no description

Unknownoptional
Alt5Alt5

no description

Unknownoptional
Imagetext5Imagetext5

no description

Unknownoptional
Nickname5Nickname5

no description

Unknownoptional
Morenicks5Morenicks5

no description

Unknownoptional
Use5Use5

no description

Unknownoptional
Symbol5Symbol5

no description

Unknownoptional
Proportion5Proportion5

no description

Unknownoptional
Adoption5Adoption5

no description

Unknownoptional
Relinquished5Relinquished5

no description

Unknownoptional
Design5Design5

no description

Unknownoptional
Designer5Designer5

no description

Unknownoptional
Image6Image6

no description

Unknownoptional
Alt6Alt6

no description

Unknownoptional
Imagetext6Imagetext6

no description

Unknownoptional
Nickname6Nickname6

no description

Unknownoptional
Morenicks6Morenicks6

no description

Unknownoptional
Use6Use6

no description

Unknownoptional
Symbol6Symbol6

no description

Unknownoptional
Proportion6Proportion6

no description

Unknownoptional
Adoption6Adoption6

no description

Unknownoptional
Relinquished6Relinquished6

no description

Unknownoptional
Design6Design6

no description

Unknownoptional
Designer6Designer6

no description

Unknownoptional