Template:OntMPP Row
| Assembly | Years | Member | Party | |
|---|---|---|---|---|
| {{{FromYr}}}–present | ||||
Standard template for row in Members of Provincial Parliament table in Ontario Election/Candidate/Riding articles.
Usage
Use to create row for individual results following {{OntMPP}} template to create headings; complete with {{OntMPP End}} template to close the series. Optionally use {{OntMPP NoData}} if periods of data are missing.
{{OntMPP}} {{OntMPP Row | FromYr = | ToYr = | Assembly# = | OntParty = | OntPartyLink = | RepName = | RepLink = | #ByElections = | PartyTerms# = | RepTerms# = }} {{OntMPP NoData}} {{OntMPP Row … }} {{OntMPP End}}
where
| • | FromYr | → | [required] #### starting year of sitting (or by−election year); | |||
| • | ToYr | → | #### ending year of sitting (or By-Election year), omit in row for present sitting to display "FromYr–Present"; | |||
| • | Assembly# | → | ## indicating which sitting of the assembly (e.g. 39 links to 39th Parliament of Ontario), automatically handles mapping to proper numeric suffix (i.e. 40 → 40th, 41 → 41st, 42 → 42nd, 43 → 43rd, 44 → 44th, etc.); | |||
| • | OntParty | → | Name of party (where both {Template:Canadian politics/party colours/OntParty} and {Ontario OntParty Party} (or redirects) exist); | |||
| • | OntPartyLink | → | May be used to override the default article ("Ontario OntParty Party") wikilinked to OntParty (above) — Use OntPartyLink=none to suppress wikilink creation; |
|||
| • | RepName | → | Firstname(s) Lastname of elected Representative (See also RepLink below); | |||
| • | RepLink | → | Link to Representative's wiki article, if it exists, (if omitted then automatically links to [[RepName]], if it exists), (assigning a non−existent value, such as "*Nothing*" or "NoRepLink", can force the template not to create a link in situations where an unrelated article exists for RepName and there is no wiki article which could be specified here); | |||
| • | #ByElections | → | # defined/non-zero only if SUBSEQUENT rows identify mid-term By-Elections (Set #ByElections = 1 if the following row defines the only by−election to have occurred (in this riding) during the assembly's sitting. Note: If more that one by−election occurs during a sitting then set this flag only on the first general election row and specify the total number of by−elections to occur during the sitting (i.e. If the riding had a general election followed by three by−elections, the first row for the general election should specify #ByElections = 3 and all subsequent rows of by−election data should omit this parameter and Assembly#)); | |||
| • | PartyTerms# | → | # of SUBSEQUENT rows that this party holds the seat (i.e. If the party is elected in this riding three times in a row, the FIRST time they are elected should specify PartyTerms# = 3 and the subsequent 2 rows should omit OntParty and PartyTerms# parameters); | |||
| • | RepTerms# | → | # of SUBSEQUENT rows that this representative was elected to the seat (i.e. if the representative holds the seat in this riding for 4 elections (or 3 elections plus 1 By-Election) in a row, the FIRST time they are elected should specify RepTerms# = 4 and all subsequent rows (election or By-Election) should omit the RepName and RepTerms# parameters (as well as the OntParty and PartyTerms# unless they changed affiliation). |
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
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.