Jump to content

Template:Infobox constituency: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
fix abolished
m per edit request on talk page - update spacing
 
(43 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|}}}
|subheader = {{#if:{{{abolished|}}}|Former|}} {{{type<includeonly>|</includeonly>}}} {{#if:{{{constituency_link|}}}|[[{{{constituency_link}}}|Constituency]]|Constituency}}
|subheaderclass = category
|subheaderclass = category
|subheader2 = {{ucfirst: {{#if:{{{abolished|}}}|Former|}} {{if empty|{{{constituency_type|}}}|{{{type<includeonly>|</includeonly>}}} {{#if:{{{constituency_link|}}}|[[{{{constituency_link}}}|constituency]]|constituency}}}}{{#if:{{{parl_name|}}}|<br />for the {{{parl_name}}} }} }}
|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|}}}}} }}
|caption1 = {{#if:{{{map1|}}}|Boundary of {{{name}}} in {{{map_entity}}}{{#if:{{{map_year|}}}|&#32;for the {{{map_year}}} general election}}|{{{caption|}}}}}
|caption = {{#if:{{{map1|}}}|Boundary of {{{name}}}{{#if:{{{map_entity|}}}|&nbsp;in {{{map_entity}}}}}{{#if:{{{map_year|}}}|&#32;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}}} within {{{region}}}|{{{caption2|}}}}}
|caption2 = {{#if:{{{map2|}}}|Location of {{{map_entity}}}{{#if:{{{region|}}}|&nbsp;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}}} within {{{region}}}|{{{caption3|}}}}}
|caption3 = {{#if:{{{map3|}}}|Location of {{{map_entity}}}{{#if:{{{region|}}}|&nbsp;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|}}}

|label2 = {{#if:{{{region_label|}}}|{{{region_label}}}|Region}}
|label2 = {{#if:{{{region_label|}}}|{{{region_label}}}|Region}}
|class2 = label
|class2 = label
|data2 = {{{region|}}}
|data2 = {{{region|}}}
|label3 = Population
|data3 = {{{population|}}}
|label4 = Electorate
|data4 = {{{electorate|}}}
|label5 = Major settlements
|data5 = {{{towns|}}}


|label3 = Polling divisions
<!-- currently a constituency, or previously a constituency (if abolished is set) -->
|header6 = {{#if:{{{abolished|}}}
|data3 = {{{polling_divisions|}}}

|Former constituency
|label4 = Population
|Current constituency}}
|data4 = {{{population|}}}
|label7 = Created

|data7 = {{{year|}}}
|label5 = Electorate
|label8 = {{#if:{{{abolished|}}}|Abolished}}
|data8 = {{{abolished|}}}
|data5 = {{{electorate|}}}

|label9 = {{#if:{{{members_label|{{{member_label|}}}}}}|{{{members_label|{{{member_label}}}}}}|Member(s)}}
|label6 = {{#if: {{{towns_label|}}} | {{{towns_label}}} | Major settlements }}
|data9 = {{{members|{{{member|}}}}}}
|class6 = label
|label10 = Number of members
|data10 = {{{seats|{{{elects_howmany|}}}}}}
|data6 = {{{towns|}}}

|label11 = {{#if:{{{party_label|}}}|{{{party_label}}}|Party}}
|data11 = {{{party|}}}
|label7 = Area
|data7 = {{{area|}}}
|label12 = {{#if:{{{local_council_label|}}}|{{{local_council_label}}}|Local council}}

|data12 = {{{local_council|}}}
|header10 = {{#if:{{{abolished|}}}|Former|{{#if:{{{future|}}}|Future|Current}} }} {{if empty|{{{constituency_type|}}}|constituency}}
|label13 = Replaced by
|label11 = Created
|data13 = {{{next|}}}
|data11 = {{{year|}}}
|label14 = Created from

|data14 = {{{previous|}}}
|label12 = {{#if:{{{abolished_label|}}}|{{{abolished_label}}}|Abolished}}
|data12 = {{{abolished|}}}

|label13 = {{#if:{{{seats|}}}|Seats|Number of members}}
|data13 = {{#if:{{{seats|}}}|{{{seats}}}|{{{elects_howmany|}}}}}

|label14 = {{#if:{{{party_label|}}}|{{{party_label}}}|Party}}
|data14 = {{{party|}}}

|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|}}}

|label19 = Replaced by
|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|}}}}}


|label15 = {{{blank1_name}}}
|data30 = {{{module|{{{embedded|}}}}}}
|data15 = {{#if:{{{blank1_name|}}}|{{{blank1_info|}}}}}
|label16 = {{{blank2_name}}}
|data16 = {{#if:{{{blank2_name|}}}|{{{blank2_info|}}}}}
|label17 = {{{blank3_name}}}
|data17 = {{#if:{{{blank3_name|}}}|{{{blank3_info|}}}}}
|label18 = {{{blank4_name}}}
|data18 = {{#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