Difference between revisions of "Template:Election summary net"

From blackwiki
Jump to navigation Jump to search
imported>Rich Farmbrough
m (Rich Farmbrough moved page Template:Election Summary net to Template:Election summary net: Caps)
imported>Petr Matas
(Pass totalvotes to party transformation template for percentage calculation)
Line 8: Line 8:
 
| template = Election summary net party
 
| template = Election summary net party
 
| totalseats = {{#invoke:Item|gather|parameter=seats|template=Sum}}
 
| totalseats = {{#invoke:Item|gather|parameter=seats|template=Sum}}
 +
| totalvotes = {{{totalvotes|}}}
 
| seats % decimals = {{{seats % decimals|1}}}
 
| seats % decimals = {{{seats % decimals|1}}}
 
}}
 
}}

Revision as of 09:31, 18 December 2015

{{{title}}}
Party Seats Net gain/loss Seats % Votes % Votes +/−
Total Lua error: expandTemplate: template "Sum" does not exist.

|}

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

Usage

{{Election summary net
| title      = 
| seatnote   = 
| netnote    = 
| votesnote  = 
| totalseats =
| totalvotes = 
| seats % decimals = 1
| {{Item
   | type       = (optional; use "other" if the item is not a party)
   | party      = 
   | seats      = 
   | net        = 
   | votes %    = (optional; omit to have it calculated autmatically)
   | votes      = 
   | plus/minus = 
  }}
| {{Item|...}}
| {{Item|...}}
| ...
}}