Difference between revisions of "Template:Constituency changes"

From blackwiki
Jump to navigation Jump to search
imported>Cydebot
m (Robot - Speedily moving category Irish election results infobox templates to Ireland election results infobox templates per CFD.)
(includeonly)
Line 1: Line 1:
|-  
+
<includeonly>|-  
 
{{!}} <!-- begin hidden code to make date column sortable
 
{{!}} <!-- begin hidden code to make date column sortable
 
--><span class="sortkey" style="display:none">{{{year}}}-{{0expr|{{MONTHNUMBER|{{{month}}}}}}}-{{#if: {{{date|}}} | {{0expr|{{{date}}}}} | 00 }}</span> <!-- end hidden code
 
--><span class="sortkey" style="display:none">{{{year}}}-{{0expr|{{MONTHNUMBER|{{{month}}}}}}}-{{#if: {{{date|}}} | {{0expr|{{{date}}}}} | 00 }}</span> <!-- end hidden code
Line 24: Line 24:
 
}}
 
}}
 
| {{#if: {{{note|}}} | {{{note}}} | &nbsp; }}
 
| {{#if: {{{note|}}} | {{{note}}} | &nbsp; }}
<noinclude>[[Category:Ireland election results infobox templates]]</noinclude>
+
</includeonly><noinclude>
 +
{{documentation}}
 +
[[Category:Ireland election results infobox templates]]
 +
</noinclude>

Revision as of 15:49, 5 November 2010

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