Template:Infobox constituency: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
(Created page with "{{Infobox |bodyclass = vcard |headerstyle = background: #efefef; |subheaderstyle = font-weight: bold; |belowstyle = background: #efefef; <!-- headers --> |abovec...") |
No edit summary |
||
(14 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
|bodyclass | |bodyclass = ib-phinbella-electoral | ||
|templatestyles=Infobox constituency/styles.css | |||
|headerstyle = background: #efefef; | |headerstyle = background: #efefef; | ||
Line 11: | Line 12: | ||
|subheader = {{{nativename|}}} | |subheader = {{{nativename|}}} | ||
|subheaderclass = category | |subheaderclass = category | ||
|subheader2 = {{#if:{{{abolished|}}}|Former|}} {{if | |subheader2 = {{#if:{{{abolished|}}}|Former|}} {{#if:{{{constituency_type|}}}|{{{constituency_type||}}}|{{{type<includeonly>|</includeonly>}}} {{#if:{{{constituency_link|}}}|[[{{{constituency_link}}}|constituency]]|Constituency}}}}{{#if:{{{parl_name|}}}|<br />for the {{{parl_name}}} }} | ||
<!-- images --> | <!-- images --> | ||
|image = {{#if:{{{map1|}}}|[[File:{{{map1}}} | |image = {{#if:{{{map1|}}}|[[File:{{{map1}}}|{{#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}}} in {{{map_entity}}}{{#if:{{{map_year|}}}| for the {{{map_year}}} general election}}|{{{caption|}}}}} | |caption = {{#if:{{{map1|}}}|Boundary of {{{name}}} in {{{map_entity}}}{{#if:{{{map_year|}}}| for the {{{map_year}}} general election}}|{{{caption|}}}}} | ||
|image2 = {{#if:{{{map2|}}}|[[File:{{{map2}}} | |image2 = {{#if:{{{map2|}}}|[[File:{{{map2}}}|{{#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}}} within {{{region}}}|{{{caption2|}}}}} | ||
|image3 = {{#if:{{{map3|}}}|[[File:{{{map3}}} | |image3 = {{#if:{{{map3|}}}|[[File:{{{map3}}}|{{#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}}} within {{{region}}}|{{{caption3|}}}}} | ||
|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|}}}}} }} | |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|}}}}} }} | ||
Line 58: | Line 59: | ||
|label14 = {{#if:{{{party_label|}}}|{{{party_label}}}|Party}} | |label14 = {{#if:{{{party_label|}}}|{{{party_label}}}|Party}} | ||
|data14 = {{{party| | |data14 = {{Phinbellan party colour|<!--{{MASStateName|{{{state}}}}}-->|{{{party}}}|name}} | ||
|label15 = {{#if:{{{members_label|{{{member_label|}}}}}}|{{{members_label|{{{member_label}}}}}}|Member(s)}} | |label15 = {{#if:{{{members_label|{{{member_label|}}}}}}|{{{members_label|{{{member_label}}}}}}|Member(s)}} | ||
|data15 = {{{members|{{{member|}}}}}} | |data15 = {{#ifeq:{{lc:{{{state-status}}} }}|active|<table class="ib-phinbella-electoral-status"><tr><td {{#ifexpr:{{#ifeq:{{{state|}}}|xyz|1|0}} + {{#ifeq:{{{region|}}}|xyz|1|0}} + {{#ifeq:{{{member|}}}|Vacant|1|0}}| {{Phinbellan party colour|XX|Other|background}} | {{Phinbellan party colour|<!--{{MASStateName|{{{region}}}}}-->|{{{party}}}|background}} }}> {{#ifeq:{{{member|}}}|Vacant||<br /> }}</td><td> </td></tr></table> {{#ifexpr:{{#ifeq:{{{region|}}}|xyz|1|0}} + {{#ifeq:{{{region|}}}|xyz|1|0}}|{{#ifexist: {{{member}}} | [[{{{member|{{{members}}}}}}]] | {{{member|{{{members}}}}}} }} | {{#ifeq:{{{member|}}}|Vacant|Vacant| {{#ifexist: {{{member}}} | [[{{{member|{{{members}}}}}}]] | {{{member|{{{members}}}}}} }}{{#if:{{{party|}}} }} }} }} }} | ||
|label16 = {{#if:{{{local_council_label|}}}|{{{local_council_label}}}|Local council}} | |label16 = {{#if:{{{local_council_label|}}}|{{{local_council_label}}}|Local council}} | ||
Line 92: | Line 93: | ||
|data30 = {{{module|{{{embedded|}}}}}} | |data30 = {{{module|{{{embedded|}}}}}} | ||
}}<noinclude> | }}<noinclude>[[Category: Infobox templates]] | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 18:56, 22 November 2021
{{{name}}} | |
{{{type}}} Constituency | |
Current | |
---|---|
Party | {{{party}}} |
[create] Template documentation
Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |