Difference between revisions of "Template:ConstituencyChanges2/start"

From blackwiki
Jump to navigation Jump to search
imported>FlyingChrysalis
(Create)
 
imported>Frietjes
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
|-  
 
|-  
 
! Date
 
! Date
{{#if:{{{nocon|}}}||! {{ifempty|{{{con|}}}|Constituency}}}}
+
{{#if:{{{nocon|}}}||! {{if empty|{{{con|}}}|Constituency}}}}
 
! class="unsortable"|  
 
! class="unsortable"|  
 
! Loss  
 
! Loss  
Line 10: Line 10:
 
<noinclude>
 
<noinclude>
 
{{end}}
 
{{end}}
{{documentation|Template:Constituency changes/doc}}
+
{{documentation|Template:ConstituencyChanges2/doc}}
 
</noinclude>
 
</noinclude>

Latest revision as of 23:43, 10 October 2019

Date Script error: No such module "If empty". Loss Gain Note


Template documentation[view] [edit] [history] [purge]

The {{ConstituencyChanges2/start}}, {{ConstituencyChanges2}}, and {{end}} templates may be used to create a sortable table showing party/ConstituencyChanges2 over time. It's {{Constituency changes}}, but with Loss before Gain.

Usage

{{ConstituencyChanges2/start}}
{{ConstituencyChanges2
|date  = 
|month = 
|year  = 
|con   = 
|loss  = 
|gain  = 
|note  = 
}}
{{end}}

or

{{ConstituencyChanges2/start|con=Panel}}
{{ConstituencyChanges2
|date  = 
|month = 
|year  = 
|con   = 
|loss  = 
|gain  = 
|note  = 
}}
{{end}}

or

{{ConstituencyChanges2/start|nocon=true}}
{{ConstituencyChanges2
|date  = 
|month = 
|year  = 
|loss  = 
|gain  = 
|note  = 
}}
{{end}}

Example

{{ConstituencyChanges2/start}}
{{ConstituencyChanges2
|date  = 22
|month = December
|year  = 2011
|con   = 6th district
|loss  = Democratic Centre (Croatia)
|gain  = Croatian Democratic Union
|note  = [[Vesna Škare-Ožbolt]] of DC was replaced by Ivana Roksandić of HDZ
}}
{{ConstituencyChanges2
|date  = 30
|month = May
|year  = 2012
|con   = 4th district
|loss  = Croatian Democratic Union
|gain  = Croatian Democratic Alliance of Slavonia and Baranja
|note  = [[Josip Salapić]] left HDZ and joined HDSSB
}}
{{end}}
Date Script error: No such module "If empty". Loss Gain Note
22 December 2011 6th district DC HDZ Vesna Škare-Ožbolt of DC was replaced by Ivana Roksandić of HDZ
30 May 2012 4th district HDZ style="background-color: Template:Official Monster Raving Loony Party/meta/color" | [[Official Monster Raving Loony Party | Template:Official Monster Raving Loony Party/meta/shortname]] George III left HDZ and joined MRLP