Template talk:Infobox flag

(Redirected from Template talk:Flag)
Latest comment: 8 years ago by User000name in topic FORMAT fail

Note. This template is only a proposal. See Commons talk:WikiProject Flags#Flag template and flag finder for more information.

Usage edit

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:

{{Infobox 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:

Flag of {{{of}}}
used by {{{of}}}
current since 0
created by
format {{{format}}}
shape rectangular
colours see included flag
other characteristics {{{characteristics}}}

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 COUNTRY.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 (only to be specified if the flag is not current)
  • CREATOR — Creator of the flag, if known
  • FORMAT — proportion height:width
  • FIAV — FIAV-Code (six binary numbers). Usage of these codes can be found here
  • TYPE — Usage not covered by FIAV
  • MAINCOLORS — main colors of the flags
  • SHAPE — shape of the flag (only to be specified if not rectangular)
  • CHARACTERISTICS — see below

To input information into the table simply insert it after the equals sign on each row as appropriate. It is recommended that FIAV= is always included even if it is blank.

Characteristics edit

These templates can be used under CHARACTERISTICS if a flag has any of these characteristics. Parameters are in italics.

  • {{Horizontal stripes|number of horizontal stripes}} — Parameter: number of horizontal stripes
  • {{Vertical stripes|number of vertical stripes}} — Parameter: number of vertical stripes
  • {{Crescent}} — if a crescent is depicted on the flag
  • {{Full moon}} — if a full moon is depicted on the flag
  • {{Sun}} — if the sun is depicted on the flag
  • {{Cross}} — if a cross is depicted on the flag
  • {{Hammer and sickle}} — if a hammer and sickle are depicted on the flag
  • {{Arm|lemma on Commons of the depicted arm}} — can be used more than one time
  • {{Tool|lemma on Commons of the depicted tool or instrument}} — can be used more than one time
  • {{Organism|Latin name of the depicted animal/plant/creature}} — can be used more than one time
  • {{Stripe|left;right;center|horizontal;vertical;diagonal}}
  • {{Stars|number of stars in the flag|optional identifier for specific formation (e.g. Southern Cross)}}
  • {{Includes coat of arms|Name of the image showing the coat of arms, which is included in this flag}} — can be used more than one time
  • {{Includes flag|Name of the image showing the flag, which is included in this flag}} — can be used more than one time
  • {{Includes text|text of a included writing}} — can be used more than one time
  • {{Includes map|Name of the Commons gallery showing the territory, whose map is included in this flag}} — can be used more than one time

Example of Usage edit

The markup below produces the table after the markup:

{{Infobox 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=
|CREATOR=Foo Bar
|FORMAT=1:2
|FIAV=111000
|TYPE=Civil aviation ensign, naval jack
|MAINCOLORS={{Tbc|1|191|10|48|red}}{{Tbc|0|254|215|0|yellow}}
{{Tbc|0|0|40|104|blue}} {{Tbc|4|204|119|34|ochre}}
|CHARACTERISTICS=
{{Stars|4|Crux}}
|BGC=#DEF
}}



Flag of Foobar*
other names Foobarese Democratic Party Flag, "Old Foobar"
country Foobaria
used by Foobaria, Foobaria Democratic Party
current since 1970-1-1
created by Foo Bar
format 1:2
shape rectangular
FIAV  
also used as Civil aviation ensign, naval jack
colours
     red rendered as RGB 191 010 048
     yellow rendered as RGB 254 215 000
     blue rendered as RGB 000 040 104
     ochre rendered as RGB 204 119 034
other characteristics flag contains 4 stars   (special formation of the stars: Southern Cross).

Note that this markup shows that the file name is Flag of Foobaria.svg (See Country and Default variables).

FORMAT fail edit

The "FORMAT — proportion height:width" fails, see File:Flag of the People's Republic of China.svg, also the text here should be at Template:Infobox flag/doc —User000name 05:10, 4 April 2016 (UTC)Reply

Parameters for Igen edit

Return to "Infobox flag" page.