Template:Infobox constituency/doc

From blackwiki
< Template:Infobox constituency
Revision as of 17:40, 3 July 2020 by imported>AquaDTRS (updated documentation)
Jump to navigation Jump to search

This template is used to provide an infobox for electoral districts.

Usage

Basic Version

This is a basic version of the template that is suitable for general use; most optional parameters have been removed. Template:Parameter names example

{{Infobox constituency
|name              = 
|type              = 
|constituency_link = 
|parl_name         = <!-- name of the law making body -->
|map1              = 
|map_size          = 
|image             = 
|image_size        =
|map_entity        = 
|map_year          = 
|caption           = 
|district          = 
|region            = 
|population        = 
|electorate        = 
|towns             = 
|future            = 
|year              = <!-- year of establishment -->
|abolished         = 
|members           = 
|seats             = 
|elects_howmany    = 
|party             = 
|local_council     = 
|next              = 
|previous          = 
}}

Full Blank Template

This is the full version of the template with all its optional parameters displayed. Template:Parameter names example

{{Infobox constituency
|name              = 
|type              = 
|constituency_link = 
|parl_name         = <!-- name of the law making body -->
|map1              = 
|map_size          = 
|image             = 
|image_size        =
|map_entity        = 
|map_year          = 
|caption           = 
|map2              = 
|image2            = 
|caption2          = 
|map3              = 
|image3            = 
|caption3          = 
|map4              = 
|image4            = 
|caption4          = 
|district_label    = <!-- can be State/Province, region, county -->
|district          = 
|region_label      = <!-- can be State/Province, region, county -->
|region            = 
|population        = 
|electorate        = 
|towns             = 
|future            = 
|year              = <!-- year of establishment -->
|abolished_label   = 
|abolished         = 
|members_label     = 
|members           = 
|seats             = 
|elects_howmany    = 
|party_label       = <!-- defaults to "Party" -->
|party             = 
|local_council_label = 
|local_council     = 
|next              = 
|previous          = 
|blank1_name       = 
|blank1_info       = 
|blank2_name       = 
|blank2_info       = 
|blank3_name       = 
|blank3_info       = 
|blank4_name       = 
|blank4_info       = 
}}

Parameters

The following are parameters used in the infobox:

Parameter Description
name The name of the electoral district.
type The type of electoral district.
constituency_link The wikilink to the constituency.
parl_name The wikilinked name of the Parliament.
map1, map2, map3, map4 Filename of map images. Up to 4 maps can be displayed.
map_size The map size in pixels.
map_year The year the map boundaries were drawn for a general election.
image, image2, image3, image4 Filename of images. Up to 4 images can be displayed.
image_size The image size in pixels.
caption, caption2, caption3, caption4 Caption for the displayed images.
district_label (optional) A replacement label for the district parameter, otherwise shows as 'District'.
district The district(s) in which the constituency is located at.
region_label (optional) A replacement label for the region parameter, otherwise shows as 'Region'.
region The region, state or province in which the constituency is located at.
population The total population within the constituency.
electorate The number of eligible voters within the constituency.
towns A list of towns within the constituency.
future (optional) If set to any value, the sub-header will display as 'Future constituency'.
year The year the constituency was first established.
abolished_label (optional) A replacement label for the abolished parameter, otherwise shows as 'Abolished'.
abolished The year the constituency was abolished. If the parameter is used, the infobox header will include the word 'Former'.
members_label (optional) A replacement label for the members parameter, otherwise shows as 'Member(s)'.
members The number of people governing the constituency.
seats The number of seats in Parliament represented by the constituency.
elects_howmany The number of people elected to Parliament by the constituency.
party_label (optional) A replacement label for the party parameter, otherwise shows as 'Party'.
party The governing party of the electoral district.
local_council_label (optional) A replacement label for the local_council parameter, otherwise shows as 'Local council'.
local_council The name of the local council or office in charge of the constituency.
previous The name of the previous electoral district in which the current electoral district was carved out or merged from.
next The name of the new electoral district carved out or merged from the current electoral district.
blank1_name, blank2_name, blank3_name, blank4_name (optional) Labels for the extra parameters.
blank1_info, blank2_info, blank3_info, blank4_info (optional) Extra parameters.

Example