Difference between revisions of "Template:Constituency changes"
Jump to navigation
Jump to search
imported>Spleodrach |
imported>Izno (data-sort-value; use nowrap style instead of template) |
||
| Line 1: | Line 1: | ||
<includeonly>|- | <includeonly>|- | ||
| − | | | + | | data-sort-value="{{{year}}}-{{#if:{{{month|}}}|{{0expr|{{MONTHNUMBER|{{{month}}}}}}}|00}}-{{#iferror: {{#expr: {{{date}}} < 0}} | 00 | {{0expr|{{{date}}}}} }}" style="white-space:nowrap" | {{#if: {{{date|}}} | {{{date}}} {{{month}}} {{{year}}} | {{{month}}} {{{year}}}}} |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | }} | ||
{{#ifeq:{{{con|a}}}|{{{con|b}}}|{{!}} {{#if: {{{con|}}} | {{{con}}} | }} | {{#ifeq:{{{con|a}}}|{{{con|b}}}|{{!}} {{#if: {{{con|}}} | {{{con}}} | }} | ||
<!-- Note that empty table cells do not sort properly, so if the cells below | <!-- Note that empty table cells do not sort properly, so if the cells below | ||
Latest revision as of 02:53, 24 March 2019
The {{constituency changes start}}, {{constituency changes}}, and {{end}} templates may be used to create a sortable table showing party/constituency changes over time.
Usage
{{constituency changes start}}
{{constituency changes
|date =
|month =
|year =
|con =
|gain =
|loss =
|note =
}}
{{end}}
or
{{constituency changes start|con=Panel}}
{{constituency changes
|date =
|month =
|year =
|con =
|gain =
|loss =
|note =
}}
{{end}}
or
{{constituency changes start|nocon=true}}
{{constituency changes
|date =
|month =
|year =
|gain =
|loss =
|note =
}}
{{end}}
Example
{{constituency changes start}}
{{constituency changes
|date = 22
|month = December
|year = 2011
|con = 6th district
|gain = Croatian Democratic Union
|loss = Democratic Centre (Croatia)
|note = [[Vesna Škare-Ožbolt]] of DC was replaced by Ivana Roksandić of HDZ
}}
{{constituency changes
|date = 30
|month = May
|year = 2012
|con = 4th district
|gain = Croatian Democratic Alliance of Slavonia and Baranja
|loss = Croatian Democratic Union
|note = [[Josip Salapić]] left HDZ and joined HDSSB
}}
{{end}}
| Date | Script error: No such module "If empty". | Gain | Loss | Note | ||
|---|---|---|---|---|---|---|
| 22 December 2011 | 6th district | HDZ | DC | Vesna Škare-Ožbolt of DC was replaced by Ivana Roksandić of HDZ | ||
| 30 May 2012 | 4th district | HDSSB | HDZ | Josip Salapić left HDZ and joined HDSSB
|
| The above documentation is transcluded from Template:Constituency changes/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |