Difference between revisions of "Template:Infobox flag"

From Nationstates - The Kerbin Region - Wiki
Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> This infobox can display up to 6 flags. It is not only for national flags. ==Parameters...")
 
m
 
Line 1: Line 1:
{{Documentation subpage}}
+
{{infobox
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
+
| title = {{if empty|{{{Name|}}}|{{PAGENAMEBASE}}}}
This infobox can display up to 6 [[flag]]s. It is not only for [[national flag]]s.
+
| datastyle = display:none
 
+
| data1 =
==Parameters==
+
{{ infobox flag/entry
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]]).
+
| Alt = {{{Alt|{{{alt|}}}}}}
 
+
| Imagetext = {{{Imagetext|}}}
===General===
+
| Image = {{{Image|}}}
;Name: Name of entity.
+
| Image_size = {{{Image_size|255x170px}}}
;Article: Term to include before name of entity, e.g. <code>the</code>.
+
| Noborder = {{{Noborder|}}}
;Image_size: Size of images to use in infobox; if not specified, default is <code>255x170px</code>.
+
| Nickname = {{{Nickname|}}}
 
+
| Morenicks = {{{Morenicks|}}}
===Flag-specific===
+
| Use = {{{Use|}}}
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]]).
+
| Symbol = {{{Symbol|}}}
 
+
| Proportion = {{{Proportion|}}}
;Image: Filename excluding <code>Image:</code> or <code>File:</code> prefix.
+
| Adoption = {{{Adoption|}}}
;Imagetext: Caption for the image.
+
| Relinquished = {{{Relinquished|}}}
;Noborder: Leave this field ''blank'' to display image with border by default for rectangular flag. For non-rectangular flag, type <code>no</code>.
+
| Design = {{{Design|}}}
;Nickname: Name of the flag.
+
| Designer = {{{Designer|}}}
;Morenicks: More names of the flag, separated by commas.
 
;Use: 6-bit [[FIAV]] usage code (see {{tl|FIAV#Usage symbols}}). Required for {{para||Symbol}}.
 
;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: <code><var>width</var>:<var>length</var></code>, e.g. <code>2:3</code>.
 
;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 {{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.
 
 
 
==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%;">
+
|data2 =  
{{Infobox flag
+
{{#if:{{{Image2|}}}|
| Name = United Nations
+
{{ infobox flag/entry
| Article = the
+
| Alt = {{{Alt2|{{{alt2|}}}}}}
| Image = Flag of the United Nations.svg
+
| Imagetext = {{{Imagetext2|Variant flag of {{{Article|}}} {{{Name|}}}}}}
| Image_size = 200px
+
| Image = {{{Image2|}}}
| Alt = Flag of the United Nations
+
| Image_size = {{{Image_size|210x105px}}}
| Use = 000000
+
| Noborder = {{{Noborder2|}}}
| Symbol = [[File:IFIS Equal.svg]]
+
| Nickname = {{{Nickname2|}}}
| Proportion = 2:3 or 3:5
+
| Morenicks = {{{Morenicks2|}}}
| Adoption = December 7, 1946
+
| Use = {{{Use2|}}}
| Design = A white UN emblem (world map surrounded by two olive branches) on a light blue background.
+
| Symbol = {{{Symbol2|}}}
| Designer = [[Donal McLaughlin]] (emblem only)
+
| Proportion = {{{Proportion2|}}}
}}
+
| Adoption = {{{Adoption2|}}}
</pre>
+
| Relinquished = {{{Relinquished2|}}}
{{clear}}
+
| Design = {{{Design2|}}}
 
+
| Designer = {{{Designer2|}}}
==Code==
+
}}}}
=== One flag ===
+
| data3 =  
<pre style="overflow:auto;">
+
{{#if:{{{Image3|}}}|
{{Infobox flag
+
{{ infobox flag/entry
| Name =
+
| Alt = {{{Alt3|{{{alt3|}}}}}}
| Article =  
+
| Imagetext = {{{Imagetext3|Variant flag of {{{Article|}}} {{{Name|}}}}}}
| Image =
+
| Image = {{{Image3|}}}
| Alt =  
+
| Image_size = {{{Image_size|210x105px}}}
| Noborder = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "no". -->
+
| Noborder = {{{Noborder3|}}}
| Nickname =  
+
| Nickname = {{{Nickname3|}}}
| Morenicks =  
+
| Morenicks = {{{Morenicks3|}}}
| Use = <!-- Required for |Symbol -->
+
| Use = {{{Use3|}}}
| Symbol = <!-- |Use="6-digit FIAV usage code" is required. -->
+
| Symbol = {{{Symbol3|}}}
| Proportion =  
+
| Proportion = {{{Proportion3|}}}
| Adoption =  
+
| Adoption = {{{Adoption3|}}}
| Relinquished =  
+
| Relinquished = {{{Relinquished3|}}}
| Design =  
+
| Design = {{{Design3|}}}
| Designer =  
+
| Designer = {{{Designer3|}}}
}}
+
}}}}
</pre>
+
|data4 =  
 
+
{{#if:{{{Image4|}}}|
=== Two flags ===
+
{{ infobox flag/entry
<pre style="overflow:auto;">
+
| Alt = {{{Alt4|{{{alt4|}}}}}}
{{Infobox flag
+
| Imagetext = {{{Imagetext4|Variant flag of {{{Article|}}} {{{Name|}}}}}}
| Name =  
+
| Image = {{{Image4|}}}
| Article =
+
| Image_size = {{{Image_size|210x105px}}}
| Image =  
+
| Noborder = {{{Noborder4|}}}
| Alt =  
+
| Nickname = {{{Nickname4|}}}
| Noborder = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "no". -->
+
| Morenicks = {{{Morenicks4|}}}
| Nickname =  
+
| Use = {{{Use4|}}}
| Morenicks =  
+
| Symbol = {{{Symbol4|}}}
| Use = <!-- Required for |Symbol -->
+
| Proportion = {{{Proportion4|}}}
| Symbol = <!-- |Use="6-digit FIAV usage code" is required. -->
+
| Adoption = {{{Adoption4|}}}
| Proportion =  
+
| Relinquished = {{{Relinquished4|}}}
| Adoption =  
+
| Design = {{{Design4|}}}
| Relinquished =  
+
| Designer = {{{Designer4|}}}
| Design =  
+
}}}}
| Designer =  
+
| data5 =  
 
+
{{#if:{{{Image5|}}}|
| Image2 =
+
{{ infobox flag/entry
| Alt2 =
+
| Alt = {{{Alt5|{{{alt5|}}}}}}
| Noborder2 = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "no". -->
+
| Imagetext = {{{Imagetext5|Variant flag of {{{Article|}}} {{{Name|}}}}}}
| Nickname2 =
+
| Image = {{{Image5|}}}
| Morenicks2 =
+
| Image_size = {{{Image_size|210x105px}}}
| Use2 = <!-- Required for |Symbol2 -->
+
| Noborder = {{{Noborder|}}}
| Symbol2 = <!-- |Use2="6-digit FIAV usage code" is required. -->
+
| Nickname = {{{Nickname5|}}}
| Proportion2 =
+
| Morenicks = {{{Morenicks5|}}}
| Adoption2 =  
+
| Use = {{{Use5|}}}
| Relinquished2 =
+
| Symbol = {{{Symbol5|}}}
| Design2 =
+
| Proportion = {{{Proportion5|}}}
| Designer2 =
+
| Adoption = {{{Adoption5|}}}
}}
+
| Relinquished = {{{Relinquished5|}}}
</pre>
+
| Design = {{{Design5|}}}
 
+
| Designer = {{{Designer5|}}}
=== Three flags... and so on ===
+
}}}}
<pre style="overflow:auto;">
+
| data6 =
{{Infobox flag
+
{{#if:{{{Image6|}}}|
| Name =
+
{{ infobox flag/entry
| Article =
+
| Alt = {{{Alt6|{{{alt6|}}}}}}
| Image =  
+
| Imagetext = {{{Imagetext6|Variant flag of {{{Article|}}} {{{Name|}}}}}}
| Alt =  
+
| Image = {{{Image6|}}}
| Noborder = <!-- Leave blank for rectangular flag; for non-rectangular flag, type "no". -->
+
| Image_size = {{{Image_size|210x105px}}}
| Nickname =  
+
| Noborder = {{{Noborder|}}}
| Morenicks =  
+
| Nickname = {{{Nickname6|}}}
| Use = <!-- Required for |Symbol -->
+
| Morenicks = {{{Morenicks6|}}}
| Symbol = <!-- |Use="6-digit FIAV usage code" is required. -->
+
| Use = {{{Use6|}}}
| Proportion =  
+
| Symbol = {{{Symbol6|}}}
| Adoption =
+
| Proportion = {{{Proportion6|}}}
| Relinquished =
+
| Adoption = {{{Adoption6|}}}
| Design =  
+
| Relinquished = {{{Relinquished6|}}}
| Designer =  
+
| Design = {{{Design6|}}}
 
+
| Designer = {{{Designer6|}}}
| Image2 =  
+
}}}}
| Alt2 =
+
}}<noinclude>{{Documentation}}</noinclude>
| 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 =
 
}}
 
</pre>
 
== TemplateData ==
 
{{TemplateData header}}
 
<templatedata>
 
{
 
"params": {
 
"Name": {
 
"label": "Name",
 
"description": "Name of entity",
 
"type": "string",
 
"suggested": true
 
},
 
"Alt": {
 
"label": "Alt text",
 
"type": "string",
 
"suggested": true
 
},
 
"Imagetext": {
 
"label": "Caption",
 
"description": "The caption of the image",
 
"type": "string",
 
"suggested": true
 
},
 
"Image": {
 
"label": "Image",
 
"description": "Image of the first flag to display",
 
"type": "wiki-file-name",
 
"required": true
 
},
 
"Image_size": {
 
"label": "Image size",
 
"description": "The size of all images used in the infobox",
 
"example": "255x170px"
 
},
 
"Noborder": {
 
"label": "Bordered",
 
"description": "To disable a border for non-rectangular flags, enter 'no'.",
 
"example": "no",
 
"type": "boolean"
 
},
 
"Nickname": {
 
"label": "Nickname",
 
"description": "The name of the flag",
 
"type": "string",
 
"suggested": true
 
},
 
"Morenicks": {
 
"label": "Nicknames",
 
"description": "Other nicknames",
 
"type": "string"
 
},
 
"Use": {
 
"label": "FIAV usage code",
 
"description": "A 6-bit FIAV usage code, if necessary. See [[Template:FIAV#Usage symbols]] for information",
 
"example": "100101",
 
"type": "string"
 
},
 
"Symbol": {
 
"label": "IFIS symbol",
 
"description": "One or more IFIS symbol. See [[Template:FIAV#Property symbols]]",
 
"example": "{{FIAV|sinister}}"
 
},
 
"Proportion": {
 
"label": "Aspect ratio",
 
"description": "The aspect ratio of the width and heights.",
 
"example": "2:3",
 
"type": "string",
 
"suggested": true
 
},
 
"Adoption": {
 
"label": "Adopted",
 
"description": "Date or year on which the flag was adopted",
 
"example": "{{Start date and age|1999}}",
 
"type": "date",
 
"suggested": true
 
},
 
"Relinquished": {
 
"description": "Date or year on which the flag was relinquished",
 
"example": "{{End date|1575}}",
 
"type": "date"
 
},
 
"Design": {
 
"label": "Design",
 
"description": "Concise description of the design",
 
"example": "Solid blue with a white Earth-shaped outline in the center.",
 
"type": "string",
 
"suggested": true
 
},
 
"Designer": {
 
"label": "Designer",
 
"description": "The designer(s) of the flag",
 
"type": "string",
 
"suggested": true
 
},
 
"Image2": {},
 
"Alt2": {},
 
"Imagetext2": {},
 
"Article": {
 
"description": "What the infobox will append to other variations, if specified. E.g. \"Variant flag of [the] American flag\"",
 
"example": "the",
 
"type": "string",
 
"suggested": true
 
},
 
"Noborder2": {},
 
"Nickname2": {},
 
"Morenicks2": {},
 
"Use2": {},
 
"Symbol2": {},
 
"Proportion2": {},
 
"Adoption2": {},
 
"Relinquished2": {},
 
"Design2": {},
 
"Designer2": {},
 
"Image3": {},
 
"Alt3": {},
 
"Imagetext3": {},
 
"Noborder3": {},
 
"Nickname3": {},
 
"Morenicks3": {},
 
"Use3": {},
 
"Symbol3": {},
 
"Proportion3": {},
 
"Adoption3": {},
 
"Relinquished3": {},
 
"Design3": {},
 
"Designer3": {},
 
"Image4": {},
 
"Alt4": {},
 
"Imagetext4": {},
 
"Noborder4": {},
 
"Nickname4": {},
 
"Morenicks4": {},
 
"Use4": {},
 
"Symbol4": {},
 
"Proportion4": {},
 
"Adoption4": {},
 
"Relinquished4": {},
 
"Design4": {},
 
"Designer4": {},
 
"Image5": {},
 
"Alt5": {},
 
"Imagetext5": {},
 
"Nickname5": {},
 
"Morenicks5": {},
 
"Use5": {},
 
"Symbol5": {},
 
"Proportion5": {},
 
"Adoption5": {},
 
"Relinquished5": {},
 
"Design5": {},
 
"Designer5": {},
 
"Image6": {},
 
"Alt6": {},
 
"Imagetext6": {},
 
"Nickname6": {},
 
"Morenicks6": {},
 
"Use6": {},
 
"Symbol6": {},
 
"Proportion6": {},
 
"Adoption6": {},
 
"Relinquished6": {},
 
"Design6": {},
 
"Designer6": {}
 
},
 
"description": "An infobox for flags.",
 
"paramOrder": [
 
"Name",
 
"Article",
 
"Image_size",
 
"Image",
 
"Imagetext",
 
"Alt",
 
"Noborder",
 
"Nickname",
 
"Morenicks",
 
"Use",
 
"Symbol",
 
"Proportion",
 
"Adoption",
 
"Relinquished",
 
"Design",
 
"Designer",
 
"Image2",
 
"Alt2",
 
"Imagetext2",
 
"Noborder2",
 
"Nickname2",
 
"Morenicks2",
 
"Use2",
 
"Symbol2",
 
"Proportion2",
 
"Adoption2",
 
"Relinquished2",
 
"Design2",
 
"Designer2",
 
"Image3",
 
"Alt3",
 
"Imagetext3",
 
"Noborder3",
 
"Nickname3",
 
"Morenicks3",
 
"Use3",
 
"Symbol3",
 
"Proportion3",
 
"Adoption3",
 
"Relinquished3",
 
"Design3",
 
"Designer3",
 
"Image4",
 
"Alt4",
 
"Imagetext4",
 
"Noborder4",
 
"Nickname4",
 
"Morenicks4",
 
"Use4",
 
"Symbol4",
 
"Proportion4",
 
"Adoption4",
 
"Relinquished4",
 
"Design4",
 
"Designer4",
 
"Image5",
 
"Alt5",
 
"Imagetext5",
 
"Nickname5",
 
"Morenicks5",
 
"Use5",
 
"Symbol5",
 
"Proportion5",
 
"Adoption5",
 
"Relinquished5",
 
"Design5",
 
"Designer5",
 
"Image6",
 
"Alt6",
 
"Imagetext6",
 
"Nickname6",
 
"Morenicks6",
 
"Use6",
 
"Symbol6",
 
"Proportion6",
 
"Adoption6",
 
"Relinquished6",
 
"Design6",
 
"Designer6"
 
],
 
"format": "block"
 
}</templatedata>
 
 
 
<includeonly>{{Sandbox other||
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
[[Category:Vexillological templates| ]]
 
 
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 
[[gl:Modelo:Infobox Bandeira]]
 
}}</includeonly>
 

Latest revision as of 13:22, 7 June 2022

Infobox flag
Template documentation[view] [edit] [history] [purge]

Official Documentation