Template:Infobox constituency: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Infobox  
{{Infobox  
|bodyclass   = vcard
|bodyclass = ib-phinbella-electoral
|templatestyles=Infobox constituency/styles.css


|headerstyle    = background: #efefef;
|headerstyle    = background: #efefef;
Line 14: Line 15:


<!-- images -->
<!-- images -->
|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|}}}}} }}
|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|}}}|&#32;for the {{{map_year}}} general election}}|{{{caption|}}}}}
|caption      = {{#if:{{{map1|}}}|Boundary of {{{name}}} 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]] | {{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}} }}
|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}}}.svg|{{#if:{{{map_size|}}}|{{{map_size}}}|120px}}|alt=Outline map]] | {{#invoke:InfoboxImage|InfoboxImage|image={{{image3|}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}} }}
|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  = {{#ifeq:{{lc:{{{state-status}}} }}|active|<table class="ib-malaysia-electoral-status"><tr><td {{#ifexpr:{{#ifeq:{{{state|}}}|xyz|1|0}} + {{#ifeq:{{{state|}}}|xyz|1|0}} + {{#ifeq:{{{state-rep|}}}|Vacant|1|0}}| {{Phinbellan party colour|XX|Other|background}} | {{Phinbellan party colour|<!--{{MASStateName|{{{state}}}}}-->|{{{state-rep-party}}}|background}} }}>&nbsp;{{#ifeq:{{{state-rep|}}}|Vacant||<br />&nbsp;}}</td><td>&nbsp;</td></tr></table> {{#ifexpr:{{#ifeq:{{{state|}}}|xyz|1|0}} + {{#ifeq:{{{state|}}}|xyz|1|0}}|{{#ifexist: {{{members}}} | [[{{{members}}}]] | {{{members}}} }} | {{#ifeq:{{{members|}}}|Vacant|Vacant| {{#ifexist: {{{members}}} | [[{{{members}}}]] | {{{members}}} }}{{#if:{{{state-rep-party|}}}|<br/>{{Phinbellan party colour|<!--{{MASStateName|{{{state}}}}}-->|{{{state-rep-party}}}|name}} }} }} }} }}
|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}} }}>&nbsp;{{#ifeq:{{{member|}}}|Vacant||<br />&nbsp;}}</td><td>&nbsp;</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