قالب:جدول دائرة انتخابية بريطانية رئيسي

{{{name}}}
[[دائرة انتخابية {{{type}}}]]
لمجلس العموم
الدائرة الحالية
خُلِقت{{{year}}} ({{{year}}}) {{{year}}} ({{{year}}})
عضو البرلمانNone
تراكب
Template documentation[view] [edit] [history] [purge]

Usage

See also User:H2g2bob/Infobox UK constituency main/testcases

Blank example for current constituencies:

{{Infobox UK constituency main
 |name        = 
 |parliament  = uk
 |map1        = 
 |map2        = 
 |map_entity  = 
 |map_year    = 
 |year        = 
 |abolished   = 
 |type        = <!-- Borough, County -->
 |previous    = 
 |next        = 
 |electorate  = 
 |mp          = 
 |party       = 
 |region      = England
 |county      = 
 |european    = 
}}

Blank example for abolished constituencies:

{{Infobox UK constituency main
 |name        = 
 |parliament  = uk
 |map1        = 
 |map2        = 
 |map_entity  = 
 |map_year    = 
 |year        = 
 |abolished   = 
 |type        = <!-- County or Borough -->
 |previous    = 
 |next        = 
 |region      = England
 |county      = 
}}

All parameters

{{Infobox UK constituency main
 |name        = 
 |parliament  = 

 |image       = 
 |caption     = 
 |image2      = 
 |caption2    = 
 
 |map1        = 
 |map2        = 
 |map_entity  = 
 |map_year    = 
 |map_size    = 
 
 |year        = 
 |abolished   = 
 |type        = 
 |previous    = 
 |next        = 
 |elects_howmany = 

 |year2       = 
 |abolished2  = 
 |type2       = 
 |previous2   = 
 |next2       = 
 |elects_howmany2 = 

 |year3       = 
 |abolished3  = 
 |type3       = 
 |previous3   = 
 |next3       = 
 |elects_howmany3 = 

 |population  = 
 |electorate  = 
 |mp          = 
 |party       = 

 |region      = 
 |county      = 
 |towns       = 

 |national    = 
 |westminster = 
 |european    = 
}}

Explanation

parameter name description example
Information about constituency
name name of constituency Rayleigh and Wickford
parliament set to "uk" for uk parliament, to allow extension to "welsh", "scottish" parliaments (recommended, but defaults to "uk") uk
year year of first election where this boundary was used 2010
type either "County", "Borough" or "Burgh" depending on type on constituency County
previous link(s) to constituencies abolished by this one (to aid navigation) [[Rayleigh (UK Parliament constituency)|Rayleigh]], [[Billericay (UK Parliament constituency)|Billericay]]
Image
image image, eg: map of region (or use "map1") [[Image:....|200px|alt=Map of constituency]]
caption caption for image Boundary of Rayleigh and Wickford in the 2010 election, shown within Essex
image2 image, eg: a second map (or use "map2") [[Image:....|200px|alt=Map]]
caption2 caption of second image Location of Essex within England
image3 image, eg: a third map [[Image:....|200px|alt=Another map]]
caption3 caption of second image Location of Greater London within England
... or use the default map images
map1 Part of map image (like that for "UK constituency infobox"). Use instead of image and image2 to fill in captions automatically) BlackleyBroughton2007
map2 Part of second map image (like that for "UK constituency infobox") EnglandGreaterManchester
map_entity Region shown in map1 Greater Manchester
map_year Year of boundary shown in maps 2010
map_size Size of map 120px
If constituency is currently active
electorate the electorate of constituency 47,000 (in 2010)
population the population of constituency. You may want to use electorate instread: population is hard to find. 47,000 (in 2010)
mp name of current member of parliament (defaults to "None") [[Gordon Brown]]
party party of current mp Labour Party (UK)
If constituency is not longer active
abolished year constituency was abolished. Leave blank if constituency is currently being used.
next link to constituencies created when this was abolished (to aid navigation)
elects_howmany How many MPs are elected (for old multiple-member constituencies). two
Information about previous constituency, which has been abolished in the past
year2 if constituency previously created and abolished, the year of creation 1910
abolished2 if constituency previously created and abolished, the year of abolition 1940
type2 if previous constituency was of a different type to the current constituency, set this to either "County", "Borough" or "Burgh"
previous2 if constituency previously created and abolished, what constituencies were abolished to create it
next2 if constituency previously created and abolished, what constituencies were created when it was abolished [[Rayleigh (UK Parliament constituency)|Rayleigh]]
elects_howmany2 How many MPs are elected (for old multiple-member constituencies). two
Overlaps with these areas (if constituency is active)
region Constituent country: England, Scotland, Northern Ireland or Wales England
county County, District or Subdivision (depending on how region is set) Essex
towns major population centers associated with constituency, if any [[Rayleigh]]
national Region in the national parliament, for example Welsh Assembly region Brecon and Radnorshire
westminster Constituency in the UK Parliament (for when parliament is not "uk")
european European parliament seat East of England

Why?

We have 3 (or more!) templates, we should have one. And they should use {{infobox}}, which is easier and clearer than the current templates.

More about this....

{{UK constituency infobox}}

{{Infobox UK constituency
 |name = Bishop Auckland
 |map1 = BishopAuckland
 |map2 = Durham
 |type = County
 |year = 1885
 |entity = County Durham
 |county = County Durham
 |EP = North East England
 |MP = [[Helen Goodman]]
 |party = [[Labour Party (UK)|Labour]]
}}

{{UK constituency infobox alt}}

{{UK constituency infobox alt|
 | Name         = <!-- name of consitituency -->
 | Map          = <!-- location of constituency: [[Image:Aberavon2007Constituency.svg|180px|]] -->
 | Type         = <!-- County or Borough -->
 | Entity       = <!-- for "shown within ...", eg: Wales
 | DivisionType = <!-- don't know: [[Preserved counties of Wales|Preserved county]] -->
 | Division     = <!-- don't know: [[West Glamorgan]] -->
 | Year         = <!-- year of general election -->
 | MP           = <!-- current mp -->
 | Party        = <!-- party of current mp -->
 | EP           = <!-- European parliament region -->
}}

{{Infobox UK constituency (former)}}

{{Infobox UK constituency (former)
| Name      = Sussex
| Type      = County
| Members   = two
| Year      = 1290
| Abolition = 1832
| Previous  = 
| Next      = [[East Sussex (UK Parliament constituency)|East Sussex]]<br />[[West Sussex (UK Parliament constituency)|West Sussex]]
}}

And possibly also...

{{Welsh Assembly constituency infobox}}
{{Welsh Assembly constituency infobox|
 | Name = Brecon and Radnorshire
 | Type = county
 | Map = [[Image:Brecon and Radnorshire (Assembly constituency).svg|150px]]
 | Region = Mid and West Wales
 | Year = 1999
 | AM = Kirsty Williams
 | Party = [[Welsh Liberal Democrats|Liberal Democrats]]
 | County= [[Powys]] 
}}
{{Scottish Parliament constituency infobox}}
{{Scottish Parliament constituency infobox|
 | Name = Ayr
 | Type = county
 | Map = [[Image:Ayr ScottishParliamentConstituency.PNG|200px]]
 | Region = South of Scotland
 | Year = 1999
 | MSP = John Scott (Scottish politician)|
 | Party = [[Scottish Conservative Party|Conservative Party]]
 | Council = [[Scottish Borders]] 
}}
{{Northern Ireland Assembly constituency infobox}}
{{Northern Ireland Assembly constituency infobox|
 | Name = Belfast West
 | Type = Borough
 | Map = [[Image:BelfastWestUKParliamentConstituency.png|200px]]
 | Year = 1973
 | AM = [[Gerry Adams]]<br /> [[Alex Attwood]]<br /> [[Paul Maskey]]<br /> [[Fra McCann]]<br /> [[Jennifer McCann]]<br /> [[Sue Ramsey]] 
 | Districts = [[Belfast City Council|Belfast]], [[Lisburn City Council|Lisburn]]
}}

Microformat

The HTML mark up produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. For more information about the use of microformats on Wikipedia, please see the microformat project.

hCard uses HTML classes including:

  • "adr"
  • "county-name"
  • "fn"
  • "label"
  • "locality"
  • "nickname"
  • "note"
  • "org"
  • "vcard"

Please do not rename or remove these classes.