Difference between revisions of "Template:AbMLA/example"
Jump to navigation
Jump to search
blackwiki>Caddyshack01 (←Created page with '<!-- Standard EXAMPLE for the {{AbMLA}} template series --><!-- ##### PLEASE ADD ALL CATEGORIES/INTERWIKIS TO THE BOTTOM OF THE /doc PAGE -- NOT HERE....') |
blackwiki>Caddyshack01 |
||
Line 40: | Line 40: | ||
</td> | </td> | ||
<td> | <td> | ||
− | <span style="font-weight:{{#ifeq:{{{1|0}}}|1|bold|normal}}"><nowiki>{{</nowiki>AbMLA/top<span style="{{#ifeq:{{{1|0}}}|1|background-color:Yellow;|}}">| | + | <span style="font-weight:{{#ifeq:{{{1|0}}}|1|bold|normal}}"><nowiki>{{</nowiki>AbMLA/top<span style="{{#ifeq:{{{1|0}}}|1|background-color:Yellow;|}}">|Members of the Legislative Assembly for Nanton-Claresholm</span><nowiki>}}</nowiki></span> |
+ | <span style="font-weight:{{#ifeq:{{{1|0}}}|1|bold|normal}}"><nowiki>{{</nowiki>AbMLA/top<span style="{{#ifeq:{{{1|0}}}|1|background-color:Yellow;|}}">|See <nowiki>[[Claresholm (provincial electoral district)|Claresholm]]</nowiki> electoral district from 1909-1929</span><nowiki>}}</nowiki></span> | ||
<span style="font-weight:{{#ifeq:{{{1|0}}}|2|bold|normal}}"><nowiki>{{</nowiki>AbMLA/row</span> | <span style="font-weight:{{#ifeq:{{{1|0}}}|2|bold|normal}}"><nowiki>{{</nowiki>AbMLA/row</span> | ||
− | | FromYr = | + | | FromYr = 1930 |
− | | ToYr = | + | | ToYr = 1935 |
− | | Assembly# = | + | | Assembly# = 7 |
− | | AbParty = | + | | AbParty = United Farmers |
− | | RepName = | + | | RepName = Gordon Beverly Walker |
− | <span style="{{#ifeq:{{{1|0}}}|2|background-color:Yellow;|}}">| PartyTerms# = | + | <span style="{{#ifeq:{{{1|0}}}|2|background-color:Yellow;|}}">| PartyTerms# = 1</span> |
− | <span style="{{#ifeq:{{{1|0}}}|2|background-color:Yellow;|}}">| RepTerms# = | + | <span style="{{#ifeq:{{{1|0}}}|2|background-color:Yellow;|}}">| RepTerms# = 1</span> |
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
<span style="font-weight:{{#ifeq:{{{1|0}}}|2|bold|normal}}"><nowiki>{{</nowiki>AbMLA/row</span> | <span style="font-weight:{{#ifeq:{{{1|0}}}|2|bold|normal}}"><nowiki>{{</nowiki>AbMLA/row</span> | ||
− | | FromYr = | + | | FromYr = 1935 |
− | | Assembly# = | + | | ToYr = 1940 |
+ | | Assembly# = 8 | ||
+ | | AbParty = Social Credit | ||
+ | | RepName = Harry O. Haslam | ||
+ | <span style="{{#ifeq:{{{1|0}}}|2|background-color:Yellow;|}}">| PartyTerms# = 1</span> | ||
+ | <span style="{{#ifeq:{{{1|0}}}|2|background-color:Yellow;|}}">| RepTerms# = 1</span> | ||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
<span style="font-weight:{{#ifeq:{{{1|0}}}|3|bold|normal}}"><nowiki>{{AbMLA/end}}</nowiki></span> | <span style="font-weight:{{#ifeq:{{{1|0}}}|3|bold|normal}}"><nowiki>{{AbMLA/end}}</nowiki></span> | ||
Line 88: | Line 94: | ||
</td> | </td> | ||
<td> | <td> | ||
− | {{AbMLA/top| | + | {{AbMLA/top|Members of the Legislative Assembly for Nanton-Claresholm}} |
+ | {{AbMLA/change|See [[Claresholm (provincial electoral district)|Claresholm]] electoral district from 1909-1929}} | ||
{{AbMLA/row | {{AbMLA/row | ||
− | | FromYr = | + | | FromYr = 1930 |
− | | ToYr = | + | | ToYr = 1935 |
− | | Assembly# = | + | | Assembly# = 7 |
− | | AbParty | + | | AbParty = United Farmers |
− | | RepName = | + | | RepName = Gordon Beverly Walker |
− | | PartyTerms# = | + | | RepLink = |
− | | RepTerms# = | + | | #ByElections = |
+ | | PartyTerms# = 1 | ||
+ | | RepTerms# = 1 | ||
}} | }} | ||
{{AbMLA/row | {{AbMLA/row | ||
− | | FromYr = | + | | FromYr = 1935 |
− | | Assembly# = | + | | ToYr = 1940 |
+ | | Assembly# = 8 | ||
+ | | AbParty = Social Credit | ||
+ | | RepName = Harry O. Haslam | ||
+ | | RepLink = | ||
+ | | #ByElections = | ||
+ | | PartyTerms# = 1 | ||
+ | | RepTerms# = 1 | ||
}} | }} | ||
{{AbMLA/end}} | {{AbMLA/end}} |
Revision as of 04:42, 23 May 2020
![]() | This is a Template Example subpage for the {{AbMLA}} template series. It contains standard example(s) replicated throughout the various documentation subpages for the series |
Examples
Note how the …Terms# parameters replace the duplicate of information and span multiple rows in the table: | |
{{AbMLA/top}} {{AbMLA/row | FromYr = 2007 | ToYr = 2011 | Assembly# = 39 | AbParty = Liberal | RepName = Joe Dickson | RepLink = | #ByElections = | PartyTerms# = | RepTerms# = }} {{AbMLA/row | FromYr = 2011 | ToYr = | Assembly# = 40 | AbParty = Liberal | RepName = Joe Dickson | RepLink = | #ByElections = | PartyTerms# = | RepTerms# = }} {{AbMLA/end}} |
{{AbMLA/top|Members of the Legislative Assembly for Nanton-Claresholm}} {{AbMLA/top|See [[Claresholm (provincial electoral district)|Claresholm]] electoral district from 1909-1929}} {{AbMLA/row | FromYr = 1930 | ToYr = 1935 | Assembly# = 7 | AbParty = United Farmers | RepName = Gordon Beverly Walker | PartyTerms# = 1 | RepTerms# = 1 }} {{AbMLA/row | FromYr = 1935 | ToYr = 1940 | Assembly# = 8 | AbParty = Social Credit | RepName = Harry O. Haslam | PartyTerms# = 1 | RepTerms# = 1 }} {{AbMLA/end}} |
yields
|
|
Set the #ByElections to provide multiple results for a single sitting of the Legislature: | |
{{AbMLA|Parry Sound–Muskoka}} {{AbMLA/row | FromYr = 1999 | ToYr = 2001 | Assembly# = 37 | AbParty = Progressive Conservative | RepName = Ernie Eves | RepLink = Ernest Eves | #ByElections = 1 | PartyTerms# = 5 | RepTerms# = }} {{AbMLA/row <!-- This is the by−election --> | FromYr = 2001 | ToYr = 2003 | Assembly# = <!-- Leave Assembly# blank --> | AbParty = | RepName = Norm Miller | RepLink = | #ByElections = | PartyTerms# = | RepTerms# = 4 }} {{AbMLA/row | FromYr = 2003 | ToYr = 2007 | Assembly# = 38 | AbParty = | RepName = | RepLink = | #ByElections = | PartyTerms# = | RepTerms# = }} {{AbMLA/row | FromYr = 2007 | ToYr = 2011 | Assembly# = 39 | AbParty = | RepName = | RepLink = | #ByElections = | PartyTerms# = | RepTerms# = }} {{AbMLA/row | FromYr = 2011 | ToYr = | Assembly# = 40 | AbParty = | RepName = | RepLink = | #ByElections = | PartyTerms# = | RepTerms# = }} {{AbMLA/end}} |
{{AbMLA|Parry Sound–Muskoka}} {{AbMLA/row | FromYr = 1999 | ToYr = 2001 | Assembly# = 37 | AbParty = Progressive Conservative | RepName = Ernie Eves | RepLink = Ernest Eves | #ByElections = 1 | PartyTerms# = 5 }} {{AbMLA/row | FromYr = 2001 | ToYr = 2003 | RepName = Norm Miller | RepTerms# = 4 }} {{AbMLA/row | FromYr = 2003 | ToYr = 2007 | Assembly# = 38 }} {{AbMLA/row | FromYr = 2007 | ToYr = 2011 | Assembly# = 39 }} {{AbMLA/row | FromYr = 2011 | Assembly# = 40 }} {{AbMLA/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 {{AbMLA/NoData}} template to insert a short greyed row into the table: | |
{{AbMLA|Durham}} {{AbMLA/row | FromYr = 1926 | ToYr = 1929 | Assembly# = 17 | AbParty = Liberal | RepName = John Bragg | RepLink = *NoWikiPage* <!-- This John Bragg |
{{AbMLA}} {{AbMLA/NoData|Nepean}} {{AbMLA/row | FromYr = 1987 | ToYr = 1990 | Assembly# = 34 | AbParty = Liberal | RepName = Hans Daigeler | PartyTerms# = 2 | RepTerms# = 2 }} {{AbMLA/row | FromYr = 1990 | ToYr = 1995 | Assembly# = 35 }} {{AbMLA/row | FromYr = 1995 | ToYr = 1999 | Assembly# = 36 | AbParty = 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. --> }} {{AbMLA/NoData|Nepean—Carleton}} {{AbMLA/row | FromYr = 1999 | ToYr = 2003 | Assembly# = 37 | AbParty = Progressive Conservative | RepName = John Baird | RepLink = John Baird (Canadian politician) | PartyTerms# = 5 | RepTerms# = 2 }} {{AbMLA/row | FromYr = 2003 | ToYr = 2005 | Assembly# = 38 | #ByElections = 1 }} {{AbMLA/row | FromYr = 2005 | ToYr = 2007 | RepName = Lisa MacLeod | RepTerms# = 3 }} {{AbMLA/row | FromYr = 2007 | ToYr = 2011 | Assembly# = 39 }} {{AbMLA/row | FromYr = 2011 | ToYr = 2014 | Assembly# = 40 }} {{AbMLA/row | FromYr = 2014 | ToYr = | Assembly# = 41 | AbParty = | RepName = }} {{AbMLA/end}} |
yields