Template:Infobox constituency/doc

From blackwiki
< Template:Infobox constituency
Revision as of 04:03, 3 July 2020 by imported>AquaDTRS (added basic blank version, update some param descriptions)
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             = 
|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             = 
|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

These are general parameters that should be included in the infobox.

Parameter Description
name The name of the electoral district.
type The type of electoral district.
constituency_link The wikilink to the constitutency
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.
caption, caption2,caption3, caption4 Caption for the displayed images.
district_label
district
region_label
region
population
electorate
towns
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
abolished The year the constituency was abolished. If the parameter is used, the infobox header will include the word 'Former'.
members_label
members
seats
elects_howmany
party_label
party The governing party of the electoral district.
local_council_label
local_council
next The name of the new electoral district carved out or merged from the current electoral district.
previous The name of the previous electoral district in which the current electoral district was carved out or merged from.
blank1_name, blank2_name, blank3_name, blank4_name
blank1_info, blank2_info, blank3_info, blank4_info