Difference between revisions of "Template:Infobox England and Wales electoral division"

From blackwiki
Jump to navigation Jump to search
imported>Leutha
(Created page with '.')
 
imported>Leutha
 
Line 1: Line 1:
.
+
{{Infobox
 +
|decat = yes
 +
|bodyclass    = vcard <!-- for Wikipedia:WikiProject Microformats -->
 +
 
 +
|headerstyle    = background: #ccf;
 +
|subheaderstyle = font-weight: bold;
 +
|labelstyle    = width: 50%
 +
|datastyle      =
 +
|belowstyle    = background: #ddf;
 +
 
 +
<!-- headers -->
 +
|aboveclass  = fn org
 +
|above        = {{{name}}}
 +
|subheader    = {{#if:{{{abolished|}}}|Former}} {{#switch:{{{council|uk}}}
 +
  |uk=[[{{{type}}} ward]]
 +
  |#default=ward}}<br/><span class="category">{{#switch:{{{council|uk}}}
 +
  |Ipswich=for [[Ipswich Borough Council|Ipswich Council]]
 +
  |#default=Unknown council {{{council}}}.}}</span>
 +
 
 +
<!-- images -->
 +
|image        = {{#if:{{{map1|}}}|[[File:{{{map1}}}|{{#if:{{{map_size|}}}|{{{map_size}}}|120px}}|alt=Outline map]]|{{{image|}}}}}
 +
|caption1    = {{#if:{{{map1|}}}|Boundary of {{{name}}} in {{{map_entity}}}{{#if:{{{map_year|}}}|&#32; from {{{map_year}}}}}.|{{{caption|}}}}}
 +
|image2      = {{#if:{{{map2|}}}|[[File:{{{map2}}}.svg|{{#if:{{{map_size|}}}|{{{map_size}}}|120px}}|alt=Outline map]]|{{{image2|}}}}}
 +
|caption2    = {{#if:{{{map2|}}}|Location of {{{map_entity}}} within {{{region}}}.|{{{caption2|}}}}}
 +
|image3      = {{#if:{{{map3|}}}|[[File:{{{map3}}}.svg|{{#if:{{{map_size|}}}|{{{map_size}}}|120px}}|alt=Outline map]]|{{{image3|}}}}}
 +
|caption3    = {{#if:{{{map3|}}}|Location of {{{map_entity}}} within {{{region}}}.|{{{caption3|}}}}}
 +
 
 +
<!-- main content -->
 +
|label1  = {{#switch:{{{region|}}}
 +
  |England=[[Ceremonial counties of England|County]]
 +
  |Northern Ireland=[[Local government in Northern Ireland|Districts of Northern Ireland]]
 +
  |Scotland=[[Subdivisions of Scotland]]
 +
  |Wales=[[Preserved counties of Wales|Preserved county]]
 +
  |#default=Local government in {{{region}}}}}
 +
|class1  = label <!-- hCard magic -->
 +
|data1  = {{{county|}}}
 +
|label2  = Population
 +
|data2  = {{{population|}}}
 +
|label3  = [[Electoral registration in the United Kingdom|Electorate]]
 +
|data3  = {{{electorate|}}}
 +
|label4  = Major settlements
 +
|data4  = {{{towns|}}}
 +
 
 +
<!-- currently a ward, or previously a ward (if abolished is set) -->
 +
|header5 = {{#if:{{{abolished|}}}
 +
            |{{Infobox UK ward/year|{{{council|uk}}}|start|{{{year}}}}}–{{Infobox UK ward/year|{{{council|uk}}}|end|{{{abolished}}}}}
 +
            |Current ward}}
 +
|label6  = Created
 +
|data6  = {{#if:{{{abolished|}}}||{{Infobox UK ward/year|{{{council|uk}}}|start|{{{year}}}}}}}
 +
|label7  = {{#switch:{{{council|uk}}}
 +
  |uk=[[Councillor]]
 +
  |#default=Councillor}}
 +
|data7  = {{#if:{{{abolished|}}}||{{#if:{{{councillor1|}}}|{{{councillor1}}}|None}} {{#if:{{{party1|}}}|({{#ifexist:Template:{{{party1}}}/meta/shortname|[[{{{party1}}}|<span class="category">{{Template:{{{party1}}}/meta/shortname}}</span>]]|{{{party1}}}}})}}}}
 +
|label8  = {{#switch:{{{council|uk}}}
 +
  |uk=[[Councillor]]
 +
  |#default=Councillor}}
 +
|data8  = {{#if:{{{abolished|}}}||{{#if:{{{councillor2|}}}|{{{councillor2}}}|}} {{#if:{{{party2|}}}|({{#ifexist:Template:{{{party2}}}/meta/shortname|[[{{{party2}}}|<span class="category">{{Template:{{{party2}}}/meta/shortname}}</span>]]|{{{party2}}}}})}}}}
 +
|label9  = {{#switch:{{{council|uk}}}
 +
  |uk=[[Councillor]]
 +
  |#default=Councillor}}
 +
|data9  = {{#if:{{{abolished|}}}||{{#if:{{{councillor3|}}}|{{{councillor3}}}|}} {{#if:{{{party3|}}}|({{#ifexist:Template:{{{party3}}}/meta/shortname|[[{{{party3}}}|<span class="category">{{Template:{{{party3}}}/meta/shortname}}</span>]]|{{{party3}}}}})}}}}
 +
|label10  = Number of councillors
 +
|data10  = {{{elects_howmany|}}}
 +
|label11  = Replaced by
 +
|data11  = {{{next|}}}
 +
|label12  = Created from
 +
|data12  = {{{previous|}}}
 +
 
 +
<!-- previously a ward between these years -->
 +
|header13 = {{#if:{{{abolished2|}}}
 +
              |{{Infobox UK ward/year|{{{council|uk}}}|start|{{{year2}}}}}–{{Infobox UK ward/year|{{{council|uk}}}|end|{{{abolished2}}}}}
 +
              }}
 +
|label14  = Number of councillors
 +
|data14  = {{{elects_howmany2|}}}
 +
|label15  = Type of ward
 +
|data15  = {{#if:{{{type2|}}}|[[{{{type2}}} ward]]}}
 +
|label16  = Replaced by
 +
|data16  = {{{next2|}}}
 +
|label17  = Created from
 +
|data17  = {{{previous2|}}}
 +
 
 +
<!-- previously a ward between these years -->
 +
|header18 = {{#if:{{{abolished3|}}}
 +
              |{{Infobox UK ward/year|{{{council|uk}}}|start|{{{year3}}}}}–{{Infobox UK ward/year|{{{council|uk}}}|end|{{{abolished3}}}}}
 +
              }}
 +
|label19  = Number of councillors
 +
|data19  = {{{elects_howmany3|}}}
 +
|label20  = Type of ward
 +
|data20  = {{#if:{{{type3|}}}|[[{{{type3}}} ward]]}}
 +
|label21  = Replaced by
 +
|data21  = {{{next3|}}}
 +
|label22  = Created from
 +
|data22  = {{{previous3|}}}
 +
 
 +
<!-- previously a ward between these years -->
 +
|header23 = {{#if:{{{abolished4|}}}
 +
              |{{Infobox UK ward/year|{{{council|uk}}}|start|{{{year4}}}}}–{{Infobox UK ward/year|{{{council|uk}}}|end|{{{abolished4}}}}}
 +
              }}
 +
|label24  = Number of councillors
 +
|data24  = {{{elects_howmany4|}}}
 +
|label25  = Type of ward
 +
|data25  = {{#if:{{{type4|}}}|[[{{{type4}}} ward]]}}
 +
|label26  = Replaced by
 +
|data26  = {{{next4|}}}
 +
|label27  = Created from
 +
|data27  = {{{previous4|}}}
 +
 
 +
<!-- overlaps with these constituencies. only makes sense for current constituencies -->
 +
|header28 = {{#if:{{{abolished|}}}||Overlaps}}
 +
|label29  = {{#switch:{{{region|}}}
 +
  |Northern Ireland=[[Northern Ireland Assembly]]
 +
  |Scotland=[[Scottish Parliament]]
 +
  |Wales=[[National Assembly for Wales|Welsh Assembly]]
 +
  |#default=National government in {{{region}}}}}
 +
|data29  = {{#switch:{{{region|}}}
 +
  |Northern Ireland={{#ifexist:{{{national}}} (Assembly constituency)|[[{{{national}}} (Assembly constituency)|{{{national}}}]]|{{{national|}}}}}
 +
  |Wales={{#ifexist:{{{national}}} (National Assembly for Wales electoral region)|[[{{{national}}} (National Assembly for Wales electoral region)|{{{national}}}]]|{{{national|}}}}}
 +
  |Scotland={{#ifexist:{{{national}}} (Scottish Parliament region)|[[{{{national}}} (Scottish Parliament region)|{{{national}}}]]|{{{national|}}}}}
 +
  |#default={{{national|}}}}}
 +
|label30  = [[Parliament of the United Kingdom|UK Parliament constituency]]
 +
|data30  = {{#if:{{{westminster1|}}}|[[{{{westminster1}}} (UK Parliament constituency)|{{{westminster1}}}]]}}
 +
|label31  = [[Parliament of the United Kingdom|UK Parliament constituency]]
 +
|data31  = {{#if:{{{westminster2|}}}|[[{{{westminster2}}} (UK Parliament constituency)|{{{westminster2}}}]]}}
 +
|label32  = [[European Parliament|European Parliament constituency]]
 +
|data32  = {{#if:{{{european|}}}|[[{{{european}}} (European Parliament constituency)|{{{european}}}]]}}
 +
 
 +
|below =
 +
}}<noinclude>
 +
{{documentation}}
 +
</noinclude>

Latest revision as of 17:18, 6 May 2020

{{{name}}}
[[{{{type}}} ward]]
Unknown council {{{council}}}.
Current ward
Created{{{year}}}
CouncillorNone
Overlaps

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]
{{{name}}}
[[{{{type}}} ward]]
Unknown council {{{council}}}.
Current electoral division
Created{{{year}}}
CouncillorNone
Overlaps
[[Category:Infobox templates|Template:Remove first word]]