Template:Infobox constituency: Difference between revisions
No edit summary |
m per edit request on talk page - update spacing |
||
(41 intermediate revisions by 14 users not shown) | |||
Line 1: | Line 1: | ||
{{Infobox |
{{Infobox |
||
|bodyclass = vcard |
|bodyclass = vcard |
||
|captionstyle = font-size: 80%; |
|||
|headerstyle = background: #efefef; |
|headerstyle = background: #efefef; |
||
Line 11: | Line 9: | ||
|aboveclass = fn org |
|aboveclass = fn org |
||
|above = {{{name}}} |
|above = {{{name}}} |
||
|subheader = {{{nativename|}}} |
|||
⚫ | |||
|subheaderclass = category |
|subheaderclass = category |
||
⚫ | |||
|subheader2 = for the {{{parl_name}}} |
|||
<!-- images --> |
<!-- images --> |
||
|image = {{#if:{{{map1|}}}|[[File:{{{map1}}}Constituency.svg|{{#if:{{{map_size|}}}|{{{map_size}}}|120px}}|alt=Outline map]]|{{{image|}}}}} |
|image = {{#if:{{{map1|}}}|[[File:{{{map1}}}Constituency.svg|{{#if:{{{map_size|}}}|{{{map_size}}}|120px}}|alt=Outline map]] | {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}} }} |
||
| |
|caption = {{#if:{{{map1|}}}|Boundary of {{{name}}}{{#if:{{{map_entity|}}}| in {{{map_entity}}}}}{{#if:{{{map_year|}}}| for the {{{map_year}}} general election}}|{{{caption|}}}}} |
||
|image2 = {{#if:{{{map2|}}}|[[File:{{{map2}}}.svg|{{#if:{{{map_size|}}}|{{{map_size}}}|120px}}|alt=Outline map]]|{{{image2|}}}}} |
|image2 = {{#if:{{{map2|}}}|[[File:{{{map2}}}.svg|{{#if:{{{map_size|}}}|{{{map_size}}}|120px}}|alt=Outline map]] | {{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}} }} |
||
|caption2 = {{#if:{{{map2|}}}|Location of {{{map_entity}}} |
|caption2 = {{#if:{{{map2|}}}|Location of {{{map_entity}}}{{#if:{{{region|}}}| within {{{region}}}}}|{{{caption2|}}}}} |
||
|image3 = {{#if:{{{map3|}}}|[[File:{{{map3}}}.svg|{{#if:{{{map_size|}}}|{{{map_size}}}|120px}}|alt=Outline map]]|{{{image3|}}}}} |
|image3 = {{#if:{{{map3|}}}|[[File:{{{map3}}}.svg|{{#if:{{{map_size|}}}|{{{map_size}}}|120px}}|alt=Outline map]] | {{#invoke:InfoboxImage|InfoboxImage|image={{{image3|}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}} }} |
||
|caption3 = {{#if:{{{map3|}}}|Location of {{{map_entity}}} |
|caption3 = {{#if:{{{map3|}}}|Location of {{{map_entity}}}{{#if:{{{region|}}}| within {{{region}}}}}|{{{caption3|}}}}} |
||
|image4 = {{#if:{{{map4|}}}|[[File:{{{map4}}}|{{#if:{{{map_size|}}}|{{{map_size}}}|120px}}|alt=Outline map]]|{{{image4|}}}}} |
|image4 = {{#if:{{{map4|}}}|[[File:{{{map4}}}|{{#if:{{{map_size|}}}|{{{map_size}}}|120px}}|alt=Outline map]] | {{#invoke:InfoboxImage|InfoboxImage|image={{{image4|}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}} }} |
||
|caption4 = {{#if:{{{map4|}}}|Location of {{{name}}} within {{{map_entity}}}|{{{caption4|}}}}} |
|caption4 = {{#if:{{{map4|}}}|Location of {{{name}}} within {{{map_entity}}}|{{{caption4|}}}}} |
||
<!-- main content --> |
<!-- main content --> |
||
|label1 = District |
|label1 = {{#if: {{{district_label|}}} | {{{district_label}}} | District }} |
||
|class1 = label |
|class1 = label |
||
|data1 = {{{district|}}} |
|data1 = {{{district|}}} |
||
Line 34: | Line 32: | ||
|data2 = {{{region|}}} |
|data2 = {{{region|}}} |
||
|label3 = |
|label3 = Polling divisions |
||
|data3 = {{{ |
|data3 = {{{polling_divisions|}}} |
||
⚫ | |||
⚫ | |||
|label5 = Electorate |
|||
⚫ | |||
|label6 = {{#if: {{{towns_label|}}} | {{{towns_label}}} | Major settlements }} |
|||
|class6 = label |
|||
|data6 = {{{towns|}}} |
|||
⚫ | |||
|data7 = {{{area|}}} |
|||
|header10 = {{#if:{{{abolished|}}}|Former|{{#if:{{{future|}}}|Future|Current}} }} {{if empty|{{{constituency_type|}}}|constituency}} |
|||
⚫ | |||
|data11 = {{{year|}}} |
|||
|label12 = {{#if:{{{abolished_label|}}}|{{{abolished_label}}}|Abolished}} |
|||
⚫ | |||
| |
|data12 = {{{abolished|}}} |
||
|label13 = {{#if:{{{seats|}}}|Seats|Number of members}} |
|||
|label5 = Major settlements |
|||
⚫ | |||
⚫ | |||
⚫ | |||
<!-- currently a constituency, or previously a constituency (if abolished is set) --> |
|||
| |
|data14 = {{{party|}}} |
||
|Former constituency |
|||
|Current constituency}} |
|||
⚫ | |||
⚫ | |||
| |
|label15 = {{#if:{{{members_label|{{{member_label|}}}}}}|{{{members_label|{{{member_label}}}}}}|Member(s)}} |
||
| |
|data15 = {{{members|{{{member|}}}}}} |
||
| |
|label16 = {{#if:{{{local_council_label|}}}|{{{local_council_label}}}|Local council}} |
||
| |
|data16 = {{{local_council|}}} |
||
| |
|label17 = {{#if:{{{parts_label|}}}|{{{parts_label}}}|Subdivisions}} |
||
|data17 = {{{parts|}}} |
|||
⚫ | |||
|label18 = Created from |
|||
⚫ | |||
| |
|data18 = {{{previous|}}} |
||
⚫ | |||
|label12 = {{#if:{{{local_council_label|}}}|{{{local_council_label}}}|Local council}} |
|||
| |
|data19 = {{{next|}}} |
||
|label21 = {{{blank1_name}}} |
|||
⚫ | |||
| |
|data21 = {{#if:{{{blank1_name|}}}|{{{blank1_info|}}}}} |
||
|label22 = {{{blank2_name}}} |
|||
⚫ | |||
| |
|data22 = {{#if:{{{blank2_name|}}}|{{{blank2_info|}}}}} |
||
| |
|label23 = {{{blank3_name}}} |
||
| |
|data23 = {{#if:{{{blank3_name|}}}|{{{blank3_info|}}}}} |
||
| |
|label24 = {{{blank4_name}}} |
||
| |
|data24 = {{#if:{{{blank4_name|}}}|{{{blank4_info|}}}}} |
||
| |
|label25 = {{{blank5_name}}} |
||
| |
|data25 = {{#if:{{{blank5_name|}}}|{{{blank5_info|}}}}} |
||
| |
|data30 = {{{module|{{{embedded|}}}}}} |
||
|data19 = {{#if:{{{blank4_name|}}}|{{{blank4_info|}}}}} |
|||
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox constituency with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox constituency]] with unknown parameter "_VALUE_"|ignoreblank=y| abolished | abolished_label | alt | area | blank1_info | blank1_name | blank2_info | blank2_name | blank3_info | blank3_name | blank4_info | blank4_name | blank5_info | blank5_name | caption | caption2 | caption3 | caption4 | constituency_link | constituency_type | district | district_label | electorate | elects_howmany | embedded | future | image | image_size | image2 | image3 | image4 | local_council | local_council_label | map_entity | map_size | map_year | map1 | map2 | map3 | map4 | member | member_label | members | members_label | module | name | nativename | next | parl_name | parts | parts_label | party | party_label | polling_divisions | population | previous | region | region_label | seats | towns | towns_label | type | year }}<noinclude> |
|||
}}<noinclude> |
|||
{{documentation}} |
{{documentation}} |
||
</noinclude> |
</noinclude> |
Latest revision as of 02:59, 24 October 2024
{{{name}}} | |
---|---|
{{{type}}} constituency | |
Current constituency |
This template is used on approximately 6,200 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
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.
{{{name}}} | |
---|---|
Former {{{type}}} [[{{{constituency_link}}}|constituency]] for the {{{parl_name}}} | |
[[File:{{{map1}}}Constituency.svg|{{{map_size}}}|alt=Outline map]] | |
District | {{{district}}} |
Region | {{{region}}} |
Population | {{{population}}} |
Electorate | {{{electorate}}} |
Major settlements | {{{towns}}} |
Former constituency | |
Created | {{{year}}} |
Abolished | {{{abolished}}} |
Seats | {{{seats}}} |
Party | {{{party}}} |
Member(s) | {{{members}}} |
Local council | {{{local_council}}} |
Created from | {{{previous}}} |
Replaced by | {{{next}}} |
{{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.
{{{name}}} | |
---|---|
Former {{{constituency_type}}} for the {{{parl_name}}} | |
[[File:{{{map1}}}Constituency.svg|{{{map_size}}}|alt=Outline map]] | |
[[File:{{{map2}}}.svg|{{{map_size}}}|alt=Outline map]] | |
[[File:{{{map3}}}.svg|{{{map_size}}}|alt=Outline map]] | |
[[File:{{{map4}}}|{{{map_size}}}|alt=Outline map]] | |
{{{district_label}}} | {{{district}}} |
{{{region_label}}} | {{{region}}} |
Population | {{{population}}} |
Electorate | {{{electorate}}} |
Major settlements | {{{towns}}} |
Former {{{constituency_type}}} | |
Created | {{{year}}} |
{{{abolished_label}}} | {{{abolished}}} |
Seats | {{{seats}}} |
{{{party_label}}} | {{{party}}} |
{{{members_label}}} | {{{members}}} |
{{{local_council_label}}} | {{{local_council}}} |
Created from | {{{previous}}} |
Replaced by | {{{next}}} |
{{{blank1_name}}} | {{{blank1_info}}} |
{{{blank2_name}}} | {{{blank2_info}}} |
{{{blank3_name}}} | {{{blank3_info}}} |
{{{blank4_name}}} | {{{blank4_info}}} |
{{Infobox constituency
|name =
|type =
|constituency_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 =
}}
TemplateData
TemplateData for Infobox constituency
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | The name of the electoral district | String | required |
Native name | nativename | The native name of the constitutency | Unknown | optional |
type | type | The type of electoral district | Unknown | suggested |
Constituency type | constituency_type | Label/type for the constituency parameter, otherwise shows as 'constituency'. | Unknown | optional |
Constitutency wikilink | constituency_link | The wikilink of the constituency | Unknown | optional |
Parliament name | parl_name | The wikilink of the parliament name
| Unknown | suggested |
Map name 1 | map1 | Filename of map ending with Constituency.svg
| String | suggested |
Map name 2 | map2 | Filename of map ending with .svg
| String | optional |
Map name 3 | map3 | Filename of map ending with .svg
| String | optional |
Map name 4 | map4 | Filename of map
| String | optional |
Map size | map_size | The map size in pixels
| Unknown | optional |
Map entity | map_entity | The location of a specified entity on a map | String | optional |
Map year | map_year | The year of the general election in which the map boundaries were drawn | Number | optional |
Image 1 | image | Full filename of a map image
| File | optional |
Image 2 | image2 | Full filename of a map image
| File | optional |
Image 3 | image3 | Full filename of a map image
| File | optional |
Image 4 | image4 | Full filename of a map image
| File | optional |
Image size | image_size | The map image size in pixels
| Unknown | optional |
Caption 1 | caption | Caption for map/image 1 | Unknown | optional |
Caption 2 | caption2 | Caption for map/image 2 | Unknown | optional |
Caption 3 | caption3 | Caption for map/image 3 | Unknown | optional |
Caption 4 | caption4 | Caption for map/image 4 | Unknown | optional |
District label | district_label | Label for the district parameter, otherwise shows as 'District'. | Unknown | optional |
district | district | The district(s) in which the constituency is located at. | Unknown | optional |
Region label | region_label | Label for the region parameter, otherwise shows as 'Region'. | Unknown | optional |
region | region | The region, state or province in which the constituency is located at. | Unknown | optional |
Polling divisions | polling_divisions | Name of the polling divisions | Unknown | optional |
population | population | The total population within the constituency. | Number | optional |
electorate | electorate | The number of eligible voters within the constituency. | Number | suggested |
Major settlements | towns | Major settlements near the constituency | Unknown | optional |
area | area | The area of the constituency
| Unknown | optional |
Future? | future | If set to any value, the sub-header will display as 'Future constituency'.
| Unknown | optional |
year | year | The year the constituency was first established. | Number | optional |
Abolished label | abolished_label | Label for the abolished parameter, otherwise shows as 'Abolished'. | Unknown | optional |
abolished | abolished | The year the constituency was abolished. If the parameter is used, the infobox header will include the word 'Former'. | Number | optional |
Number of members | elects_howmany | The number of people elected to Parliament by the constitutency. | Number | optional |
Seats | seats | (replaces Number of members) The number of seats in Parliament represented by the constituency. | Number | suggested |
Party label | party_label | Label for the party parameter, otherwise shows as 'Party'. | Unknown | optional |
Party | party | The governing party of the electoral district. | Unknown | suggested |
Member(s) label | member_label members_label | Label for the members parameter, otherwise shows as 'Member(s)'. | Unknown | optional |
Member(s) | member members | The member or members representing the constituency. | Unknown | optional |
Local council label | local_council_label | Label for the local_council parameter, otherwise shows as 'Local council'. | Unknown | optional |
Local council | local_council | The name of the local council or office in charge of the constituency. | Unknown | optional |
Subdivisions label | parts_label | Label for the parts parameter, otherwise shows as 'Subdivisions'. | Unknown | optional |
Subdivisions | parts | Name of subdivisions | Unknown | optional |
Created from | previous | The name of the previous electoral district in which the current electoral district was carved out or merged from. | Unknown | optional |
Replaced by | next | The name of the new electoral district carved out or merged from the current electoral district. | Unknown | optional |
Extra parameter 1 label | blank1_name | Label for extra parameter 1 | Unknown | optional |
Extra parameter 1 | blank1_info | Extra parameter 1 | Unknown | optional |
Extra parameter 2 label | blank2_name | Label for extra parameter 2 | Unknown | optional |
Extra parameter 2 | blank2_info | Extra parameter 2 | Unknown | optional |
Extra parameter 3 label | blank3_name | Label for extra parameter 3 | Unknown | optional |
Extra parameter 4 | blank3_info | Extra parameter 3 | Unknown | optional |
Extra parameter 4 label | blank4_name | Label for extra parameter 4 | Unknown | optional |
Extra parameter 4 | blank4_info | Extra parameter 4 | Unknown | optional |
Extra parameter 5 label | blank5_name | Label for extra parameter 5 | Unknown | optional |
Extra parameter 5 | blank5_info | Extra parameter 5 | Unknown | optional |