Assembly | Years | Member | Party | |
---|---|---|---|---|
Standard template to add a short greyed row into Members of Provincial Parliament table in Ontario Election/Candidate/Riding articles for sitting(s) where NoData is currently available.
Specify a parameter (or "title=") to insert a full-sized row with the specified text appearing (bold & centered) as a title. (e.g. to indicate changes in electoral district name)
Usage
Use to add a short grey row between other rows created with the {{OntMPP Row}} template to indicate that some data is missing from the middle of the list, or to add a title row in the middle of the table (when riding names change, etc.)
{{OntMPP}} {{OntMPP Row … }} {{OntMPP NoData}} or {{OntMPP NoData |Some title}} or {{OntMPP NoData |title=…}} {{OntMPP Row … }} {{OntMPP End}}
Examples
Note how the …Terms# parameters replace the duplicate of information and span multiple rows in the table: | |
{{OntMPP}} {{OntMPP Row | FromYr = 2007 | ToYr = 2011 | Assembly# = 39 | OntParty = Liberal | RepName = Joe Dickson | RepLink = | #ByElections = | PartyTerms# = | RepTerms# = }} {{OntMPP Row | FromYr = 2011 | ToYr = | Assembly# = 40 | OntParty = Liberal | RepName = Joe Dickson | RepLink = | #ByElections = | PartyTerms# = | RepTerms# = }} {{OntMPP End}} |
{{OntMPP|Ajax–Pickering}} {{OntMPP Row | FromYr = 2007 | ToYr = 2011 | Assembly# = 39 | OntParty = Liberal | RepName = Joe Dickson | PartyTerms# = 2 | RepTerms# = 2 }} {{OntMPP Row | FromYr = 2011 | Assembly# = 40 }} {{OntMPP End}} |
yields
|
|
Set the #ByElections to provide multiple results for a single sitting of the Legislature: | |
{{OntMPP|Parry Sound–Muskoka}} {{OntMPP Row | FromYr = 1999 | ToYr = 2001 | Assembly# = 37 | OntParty = Progressive Conservative | RepName = Ernie Eves | RepLink = Ernest Eves | #ByElections = 1 | PartyTerms# = 5 | RepTerms# = }} {{OntMPP Row <!-- This is the by−election --> | FromYr = 2001 | ToYr = 2003 | Assembly# = <!-- Leave Assembly# blank --> | OntParty = | RepName = Norm Miller | RepLink = | #ByElections = | PartyTerms# = | RepTerms# = 4 }} {{OntMPP Row | FromYr = 2003 | ToYr = 2007 | Assembly# = 38 | OntParty = | RepName = | RepLink = | #ByElections = | PartyTerms# = | RepTerms# = }} {{OntMPP Row | FromYr = 2007 | ToYr = 2011 | Assembly# = 39 | OntParty = | RepName = | RepLink = | #ByElections = | PartyTerms# = | RepTerms# = }} {{OntMPP Row | FromYr = 2011 | ToYr = | Assembly# = 40 | OntParty = | RepName = | RepLink = | #ByElections = | PartyTerms# = | RepTerms# = }} {{OntMPP End}} |
{{OntMPP|Parry Sound–Muskoka}} {{OntMPP Row | FromYr = 1999 | ToYr = 2001 | Assembly# = 37 | OntParty = Progressive Conservative | RepName = Ernie Eves | RepLink = Ernest Eves | #ByElections = 1 | PartyTerms# = 5 }} {{OntMPP Row | FromYr = 2001 | ToYr = 2003 | RepName = Norm Miller | RepTerms# = 4 }} {{OntMPP Row | FromYr = 2003 | ToYr = 2007 | Assembly# = 38 }} {{OntMPP Row | FromYr = 2007 | ToYr = 2011 | Assembly# = 39 }} {{OntMPP Row | FromYr = 2011 | Assembly# = 40 }} {{OntMPP End}} |
yields
|
|
NOTE: Changing the browser Zoom level may alter the wrapping of text in these side-by-side tables.
Where data is unavailable for one or more sittings, or where a title row is needed to identify change in electoral district name, use the {{OntMPP NoData}} template to insert a short greyed row into the table: | |
{{OntMPP|Durham}} {{OntMPP Row | FromYr = 1926 | ToYr = 1929 | Assembly# = 17 | OntParty = Liberal | RepName = John Bragg | RepLink = *NoWikiPage* <!-- This John Bragg |
{{OntMPP}} {{OntMPP NoData|Nepean}} {{OntMPP Row | FromYr = 1987 | ToYr = 1990 | Assembly# = 34 | OntParty = Liberal | RepName = Hans Daigeler | PartyTerms# = 2 | RepTerms# = 2 }} {{OntMPP Row | FromYr = 1990 | ToYr = 1995 | Assembly# = 35 }} {{OntMPP Row | FromYr = 1995 | ToYr = 1999 | Assembly# = 36 | OntParty = Progressive Conservative | RepName = John Baird | RepLink = John Baird (Canadian politician) | PartyTerms# = <!-- Don't specify multiple terms in office | RepTerms# = if using title/separator row within that range. --> }} {{OntMPP NoData|Nepean—Carleton}} {{OntMPP Row | FromYr = 1999 | ToYr = 2003 | Assembly# = 37 | OntParty = Progressive Conservative | RepName = John Baird | RepLink = John Baird (Canadian politician) | PartyTerms# = 5 | RepTerms# = 2 }} {{OntMPP Row | FromYr = 2003 | ToYr = 2005 | Assembly# = 38 | #ByElections = 1 }} {{OntMPP Row | FromYr = 2005 | ToYr = 2007 | RepName = Lisa MacLeod | RepTerms# = 3 }} {{OntMPP Row | FromYr = 2007 | ToYr = 2011 | Assembly# = 39 }} {{OntMPP Row | FromYr = 2011 | ToYr = 2014 | Assembly# = 40 }} {{OntMPP Row | FromYr = 2014 | ToYr = | Assembly# = 41 | OntParty = | RepName = }} {{OntMPP End}} |
yields
|
|