Difference between revisions of "Template:Infobox OntarioMPP"

From blackwiki
Jump to navigation Jump to search
imported>Nephron
m (sm fix)
imported>Bearcat
(no need for a separate template)
Line 1: Line 1:
{| class="infobox" style="width:20em; font-size:90%; text-align:left;" cellpadding="3"
+
#REDIRECT [[Template:Infobox Officeholder]]
|+ style="font-size:larger;" | '''{{{name}}}'''<!--
 
-->{{#if:{{{image|}}}|<tr style="text-align:center;"><td colspan="2">[[Image:{{{image}}}|{{{imagesize|142px}}}|{{PAGENAME}}]]<br />{{{caption|}}}</td></tr>}}<!--
 
-->{{#if:{{{smallimage|}}}|<tr style="text-align:center;"><td colspan="2">[[Image:{{{smallimage}}}|{{PAGENAME}}]]<br />{{{caption|}}}</td></tr>}}<!--
 
-->{{#if:{{{cabinet|}}}|<tr><th style="text-align:center; font-size: 110%; " colspan="2"><b>{{{cabinet}}}</b></th></tr>}}<!--
 
-->{{#if:{{{party colour|}}}|<tr><th style="text-align:center; height: 15px; background:{{ #switch: {{{party colour}}}
 
| Liberal
 
| Liberl Party of Ontario
 
| [[Liberal]]
 
| LPC
 
| [[LPC]]
 
| [[Liberal Party of Ontario|Liberal Party]]
 
| Liberal Party =  lightcoral
 
| Conservative
 
| [[Conservative]]
 
| Progressive Conservative Party of Ontario
 
| [[Progressive Conservative Party of Ontario|Progressive Conservative Party]]
 
| PC
 
| [[Progressive Conservative Party of Ontario|PC]]
 
| Progressive Conservative Party = cornflowerblue
 
| NDP
 
| [[NDP]]
 
| [[New Democratic Party of Ontario|NDP]]
 
| New Democrats =sandybrown
 
| Green
 
| [[Green]]
 
| [[Green Party of Ontario|Green]]
 
| Green =mediumseagreen
 
}};" colspan="2"></th></tr>}}<!--
 
-->{{#if:{{{term_end|}}}|<!--then: in office from/to--><tr><th style="border-bottom:none; text-align:center;" colspan="2">In&nbsp;office</th></tr><tr><td style="border-top:none; text-align:center;" colspan="2">{{{term_start}}}&nbsp;&ndash;&nbsp;{{{term_end}}}</td></tr>|<!--else: assume current--><tr><th style="text-align:center; " colspan="2">[[Incumbent]]</th></tr>
 
}}<!--
 
-->{{#if:{{{riding|}}}|<tr><th>Riding</th><td>{{{riding}}}</td></tr>}}<!--
 
-->{{#if:{{{term_end|}}}|<!--then--> |<!--else--><tr><th>In&nbsp;office&nbsp;since</th><td>{{{term_start}}}</td></tr>}}<!--
 
-->{{#if:{{{predecessor|}}}|<tr><th>Preceded&nbsp;by</th><td>{{{predecessor}}}</td></tr>}}<!--
 
-->{{#if:{{{successor|}}}|<tr><th>Succeeded&nbsp;by</th><td>{{{successor}}}</td></tr>}}
 
|-
 
! Born
 
| {{{birth_date|}}}<br />{{{birth_place|}}}<!--
 
-->{{#if:{{{death_date|}}}|<tr><th>Died</th><td>{{{death_date}}}<br />{{{death_place|}}}</td></tr>}}<!--
 
-->{{#if:{{{residence|}}}|<tr><th>Residence</th><td>{{{residence}}}</td></tr>}}<!--
 
-->{{#if:{{{constituency|}}}|<tr><th>Constituency</th><td>{{{constituency}}}</td></tr>}}<!--
 
-->{{#if:{{{party|}}}|<tr><th>Political&nbsp;party</th>
 
<td>
 
{{ #switch: {{{party}}}
 
| Liberal
 
| Liberal Party of Ontario
 
| [[Liberal]]
 
| LPC
 
| [[LPC]]
 
| [[Liberal Party of Ontario|Liberal Party]]
 
| Liberal Party =  [[Liberal Party of Ontario|Liberal]]
 
| Conservative
 
| [[Conservative]]
 
| Progressive Conservative Party of Ontario
 
| [[Progressive Conservative Party of Ontario|Progressive Conservative Party]]
 
| PC
 
| [[Progressive Conservative Party of Ontario|PC]]
 
| Progressive Conservative Party = [[Progressive Conservative Party of Ontario|Conservative]]
 
| NDP
 
| [[NDP]]
 
| [[New Democratic Party of Ontario|NDP]]
 
| New Democrats = [[Ontario New Democratic Party|New Democratic Party]]
 
| {{{party}}}
 
}}
 
</td></tr>}}<!--
 
-->{{#if:{{{profession|}}}|<tr><th>Profession(s)</th><td>{{{profession}}}</td></tr>}}<!--
 
-->{{#if:{{{religion|}}}|<tr><th>Religion</th><td>{{{religion}}}</td></tr>}}<!--
 
-->{{#if:{{{spouse|}}}|<tr><th>Spouse</th><td>{{{spouse}}}</td></tr>}}<!--
 
-->{{#if:{{{portfolio|}}}|<tr><th>Portfolio(s)</th><td>{{{portfolio}}}</td></tr>}}<!--
 
-->{{#if:{{{footnotes|}}}|<tr><td colspan="2" style="font-size: smaller; border-top: 1px solid;">{{{footnotes}}}</td></tr>}}<!--
 
-->{{#if:{{{term_end2|}}}|<!--then: in office from/to--><tr><th style="border-bottom:none; text-align:center;" colspan="2">In&nbsp;office</th></tr><tr><td style="border-top:none; text-align: center;" colspan="2">{{{term_start2}}}&nbsp;&ndash;&nbsp;{{{term_end2}}}</td></tr>}}<!--
 
-->{{#if:{{{predecessor2|}}}|<tr><th>Preceded&nbsp;by</th><td>{{{predecessor2}}}</td></tr>}}<!--
 
-->{{#if:{{{successor2|}}}|<tr><th>Succeeded&nbsp;by</th><td>{{{successor2}}}</td></tr>}}<!--
 
-->{{#if:{{{portfolio2|}}}|<tr><th>Portfolio(s)</th><td>{{{portfolio2}}}</td></tr>}}
 
|}<noinclude>
 
== Usage ==
 
<pre>
 
{{Infobox OntarioMPP
 
| image =
 
| cabinet =
 
| term_start =
 
| term_end =
 
| predecessor =
 
| successor =
 
| birth_date =
 
| birth_place =
 
| death_date =
 
| death_place =
 
| profession =
 
| party =
 
| party colour =
 
| residence =
 
| riding =
 
| portfolio =
 
| footnotes =
 
| portfolio 2 =
 
| term_start2=
 
| term_end2=
 
| predecessor2=
 
| successor2=
 
| religion =
 
| spouse=
 
}}</pre></noinclude>
 

Revision as of 17:13, 17 September 2008