Difference between revisions of "Template:Constituency changes"
Jump to navigation
Jump to search
imported>Frietjes (make sure the date is numeric) |
imported>Spleodrach (copyedit) |
||
| Line 12: | Line 12: | ||
Apart from making cells sort properly, it's also needed for standards-compliant HTML --> | Apart from making cells sort properly, it's also needed for standards-compliant HTML --> | ||
{{#if: {{{gain|}}} | | {{#if: {{{gain|}}} | | ||
| − | ! style="background-color: {{Template:{{{gain}}}/meta/color}}" {{!}} | + | ! style="background-color: {{Template:{{{gain}}}/meta/color}}; width: 3px;" {{!}} |
{{!}} style="white-space:nowrap" {{!}} [[{{{gain}}} {{!}} {{Template:{{{gain}}}/meta/shortname}}]] | {{!}} style="white-space:nowrap" {{!}} [[{{{gain}}} {{!}} {{Template:{{{gain}}}/meta/shortname}}]] | ||
| | | | ||
| Line 18: | Line 18: | ||
}} | }} | ||
{{#if: {{{loss|}}} | | {{#if: {{{loss|}}} | | ||
| − | ! style="background-color: {{Template:{{{loss}}}/meta/color}}" {{!}} | + | ! style="background-color: {{Template:{{{loss}}}/meta/color}}; width: 3px;" {{!}} |
{{!}} style="white-space:nowrap" {{!}} [[{{{loss}}} {{!}} {{Template:{{{loss}}}/meta/shortname}}]] | {{!}} style="white-space:nowrap" {{!}} [[{{{loss}}} {{!}} {{Template:{{{loss}}}/meta/shortname}}]] | ||
| | | | ||
Revision as of 20:40, 2 February 2013
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. |