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

From blackwiki
Jump to navigation Jump to search
imported>Treisijs
imported>16@r
(example)
Line 1: Line 1:
 
<noinclude>{{Documentation subpage}}</noinclude>
 
<noinclude>{{Documentation subpage}}</noinclude>
 
<!-- 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 5 flags. It is not only for national flags.
  
===General parameters===
+
==Parameters==
 +
Only the <code>Name</code> and <code>Image</code> parameters are mandatory.
 +
 
 +
===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 210x105px
  
===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 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>.
  
Line 21: Line 24:
 
;Design: Concise description of the design.
 
;Design: Concise description of the design.
 
;Designer: Name of person(s) who designed the flag.
 
;Designer: Name of person(s) who designed the flag.
 +
 +
==Example==
 +
{{Infobox National flag
 +
| Name = United Nations
 +
| Article = the
 +
| Type = International
 +
| Image = Flag of the United Nations.svg
 +
| Image_size = 200px
 +
| Symbol = {{FIAV|normal}}
 +
| 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;">
 +
{{Infobox National flag
 +
| Name = United Nations
 +
| Article = the
 +
| Type = International
 +
| Image = Flag of the United Nations.svg
 +
| Image_size = 200px
 +
| Symbol = {{FIAV|normal}}
 +
| 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>
  
 
==Code==
 
==Code==

Revision as of 15:16, 15 August 2008

This infobox can display up to 5 flags. It is not only for national flags.

Parameters

Only the Name and Image parameters are mandatory.

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 210x105px

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 Image.

Image
Filename excluding Image: prefix.
Noborder
Leave this field blank to display image with border by default.
Nickname
Name of the flag.
Morenicks
More names of the flag, separated by commas.
Use
8-bit FIAV usage code, or text.
Symbol
One or more IFIS symbols, e.g. [[Image:IFIS_Sinister.png]].
Proportion
width:length, e.g. 2:3
Adoption
Date on which the flag was adopted.
Design
Concise description of the design.
Designer
Name of person(s) who designed the flag.

Example

Script error: No such module "If empty".
Flag of the United Nations.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 National flag
| Name = United Nations
| Article = the
| Type = International
| Image = Flag of the United Nations.svg
| Image_size = 200px
| Symbol = {{FIAV|normal}}
| 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