Difference between revisions of "Template:Infobox flag/doc"

From blackwiki
Jump to navigation Jump to search
imported>Treisijs
imported>Wikisaurus
 
(43 intermediate revisions by 30 users not shown)
Line 1: Line 1:
<noinclude>{{Documentation subpage}}</noinclude>
+
{{Documentation subpage}}
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
This infobox can display up to 5 flags. It is not only for national flags. Only the <code>Name</code> and <code>Image</code> parameters are mandatory.
+
This infobox can display up to 6 [[flag]]s. It is not only for [[national flag]]s.
  
===General parameters===
+
==Parameters==
 +
Only the {{para||Name}} and {{para||Image}} parameters are mandatory. However, {{para|Use|<var>{{tl|FIAV#Usage symbols}}</var>}} is required for the {{para||Symbol}} parameter. (see [[#Example]]).
 +
 
 +
===General===
 
;Name: Name of entity.
 
;Name: Name of entity.
 
;Article: Term to include before name of entity, e.g. <code>the</code>.
 
;Article: Term to include before name of entity, e.g. <code>the</code>.
;Image_size: Size of images to use in infobox; if not specified, default is 210x105px
+
;Image_size: Size of images to use in infobox; if not specified, default is <code>255x170px</code>.
  
===Flag-specific parameters parameters===
+
===Flag-specific===
Each of these fields can be given a suffix from 2 to 5 in order to specify up to 5 variants (war flags, naval 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 <code>Image</code>.
+
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 {{para||Image}}. However, {{para|Use|<var>{{tl|FIAV#Usage symbols}}</var>}} is required for {{para||Symbol}}. (see [[#Example]]).
  
;Image: Filename excluding <code>Image:</code> prefix.
+
;Image: Filename excluding <code>Image:</code> or <code>File:</code> prefix.
;Noborder: Leave this field ''blank'' to display image with border by default.
+
;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 <code>no</code>.
 
;Nickname: Name of the flag.
 
;Nickname: Name of the flag.
 
;Morenicks: More names of the flag, separated by commas.
 
;Morenicks: More names of the flag, separated by commas.
;Use: 8-bit [[Fédération internationale des associations vexillologiques|FIAV]] usage code, or text.
+
;Use: 6-bit [[FIAV]] usage code (see {{tl|FIAV#Usage symbols}}). Required for {{para||Symbol}}.
;Symbol: One or more IFIS symbols, e.g. <code>[[[[:Image:IFIS_Sinister.png]]]]</code>.
+
;Symbol: One or more IFIS symbols, e.g. <code><nowiki>[[File:IFIS Sinister.png|Obverse side of flag]]</nowiki></code> or <code><nowiki>{{FIAV|sinister}}</nowiki></code>. A list of these symbols can be seen at [[Vexillological symbol#Other symbols]] or {{tl|FIAV#Property symbols}}. {{para|Use|<var>{{tl|FIAV#Usage symbols}}</var>}} is required.  
;Proportion: width:length, e.g. 2:3
+
;Proportion: <code><var>width</var>:<var>length</var></code>, e.g. <code>2:3</code>.
 
;Adoption: Date on which the flag was adopted.
 
;Adoption: Date on which the flag was adopted.
 +
;Relinquished: Date on which the flag was relinquished.
 
;Design: Concise description of the design.
 
;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 {{para||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.
 
;Designer: Name of person(s) who designed the flag.
 +
 +
==Example==
 +
{{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)
 +
}}
 +
<pre style="overflow:auto; width:60%;">
 +
{{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)
 +
}}
 +
</pre>
 +
{{clear}}
  
 
==Code==
 
==Code==
{{col-begin}}
+
=== One flag ===
{{col-3}}
+
<pre style="overflow:auto;">
;One flag
+
{{Infobox flag
<pre>
 
{{Infobox National flag
 
 
| Name =  
 
| Name =  
 
| Article =  
 
| Article =  
| Type =
 
 
| Image =  
 
| Image =  
 +
| Alt =
 +
| Noborder = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "no". -->
 
| Nickname =  
 
| Nickname =  
 
| Morenicks =  
 
| Morenicks =  
| Use =  
+
| Use = <!-- Required for |Symbol -->
| Symbol =  
+
| Symbol = <!-- |Use="6-digit FIAV usage code" is required. -->
 
| Proportion =  
 
| Proportion =  
 
| Adoption =  
 
| Adoption =  
 +
| Relinquished =
 
| Design =  
 
| Design =  
 
| Designer =  
 
| Designer =  
Line 43: Line 80:
 
</pre>
 
</pre>
  
{{col-3}}
+
=== Two flags ===
;Two flags
+
<pre style="overflow:auto;">
<pre>
+
{{Infobox flag
{{Infobox National flag
 
 
| Name =  
 
| Name =  
 
| Article =  
 
| Article =  
| Type =
 
 
| Image =  
 
| Image =  
 +
| Alt =
 +
| Noborder = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "no". -->
 
| Nickname =  
 
| Nickname =  
 
| Morenicks =  
 
| Morenicks =  
| Use =  
+
| Use = <!-- Required for |Symbol -->
| Symbol =  
+
| Symbol = <!-- |Use="6-digit FIAV usage code" is required. -->
 
| Proportion =  
 
| Proportion =  
 
| Adoption =  
 
| Adoption =  
 +
| Relinquished =
 
| Design =  
 
| Design =  
 
| Designer =  
 
| Designer =  
  
 
| Image2 =  
 
| Image2 =  
 +
| Alt2 =
 +
| Noborder2 = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "no". -->
 
| Nickname2 =  
 
| Nickname2 =  
 
| Morenicks2 =  
 
| Morenicks2 =  
| Use2 =  
+
| Use2 = <!-- Required for |Symbol2 -->
| Symbol2 =  
+
| Symbol2 = <!-- |Use2="6-digit FIAV usage code" is required. -->
 
| Proportion2 =  
 
| Proportion2 =  
 
| Adoption2 =  
 
| Adoption2 =  
 +
| Relinquished2 =
 
| Design2 =  
 
| Design2 =  
 
| Designer2 =  
 
| Designer2 =  
Line 72: Line 113:
 
</pre>
 
</pre>
  
{{col-3}}
+
=== Three flags... and so on ===
;Three flags... and so on
+
<pre style="overflow:auto;">
<pre>
+
{{Infobox flag
{{Infobox National flag
 
 
| Name =  
 
| Name =  
 
| Article =  
 
| Article =  
| Type =
 
 
| Image =  
 
| Image =  
 +
| Alt =
 +
| Noborder = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "no". -->
 
| Nickname =  
 
| Nickname =  
 
| Morenicks =  
 
| Morenicks =  
| Use =  
+
| Use = <!-- Required for |Symbol -->
| Symbol =  
+
| Symbol = <!-- |Use="6-digit FIAV usage code" is required. -->
 
| Proportion =  
 
| Proportion =  
| Adoption =  
+
| Adoption =
 +
| Relinquished = 
 
| Design =  
 
| Design =  
 
| Designer =  
 
| Designer =  
  
 
| Image2 =  
 
| Image2 =  
 +
| Alt2 =
 +
| Noborder2 = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "no". -->
 
| Nickname2 =  
 
| Nickname2 =  
 
| Morenicks2 =  
 
| Morenicks2 =  
| Use2 =  
+
| Use2 = <!-- Required for |Symbol2 -->
| Symbol2 =  
+
| Symbol2 = <!-- |Use2="6-digit FIAV usage code" is required. -->
 
| Proportion2 =  
 
| Proportion2 =  
 
| Adoption2 =  
 
| Adoption2 =  
 +
| Relinquished2 =
 
| Design2 =  
 
| Design2 =  
 
| Designer2 =  
 
| Designer2 =  
  
 
| Image3 =  
 
| Image3 =  
 +
| Alt3 =
 +
| Noborder3 = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "no". -->
 
| Nickname3 =  
 
| Nickname3 =  
 
| Morenicks3 =  
 
| Morenicks3 =  
| Use3 =  
+
| Use3 = <!-- Required for |Symbol3 -->
| Symbol3 =  
+
| Symbol3 = <!-- |Use3="6-digit FIAV usage code" is required. -->
 
| Proportion3 =  
 
| Proportion3 =  
 
| Adoption3 =  
 
| Adoption3 =  
 +
| Relinquished3 =
 
| Design3 =  
 
| Design3 =  
 
| Designer3 =  
 
| Designer3 =  
 
}}
 
}}
</pre>
+
</pre><includeonly>{{Sandbox other||
{{col-end}}
 
<includeonly>
 
 
 
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
[[Category:Vexillological templates| ]]
 
[[Category:Vexillological templates| ]]
  
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
[[fr:Modèle:Infobox Drapeau]]
+
[[gl:Modelo:Infobox Bandeira]]
[[lv:Veidne:Infobox Flag]]
+
}}</includeonly>
[[ja:Template:国旗]]
 
[[ro:Template:National flag infobox]]
 
[[zh:Template:Infobox National flag]]
 
</includeonly>
 

Latest revision as of 20:15, 3 June 2020

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

Script error: No such module "If empty".
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 = 
}}