Difference between revisions of "Template:Election summary net"
Jump to navigation
Jump to search
imported>Petr Matas (Pass totalvotes to party transformation template for percentage calculation) |
imported>Piyyas m |
||
| Line 7: | Line 7: | ||
{{#invoke:Item|each | {{#invoke:Item|each | ||
| 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|{{{totalseats|}}}}} |
| totalvotes = {{{totalvotes|}}} | | totalvotes = {{{totalvotes|}}} | ||
| seats % decimals = {{{seats % decimals|1}}} | | seats % decimals = {{{seats % decimals|1}}} | ||
}} | }} | ||
{{Election summary net total | {{Election summary net total | ||
| − | | seats = {{#invoke:Item|gather|parameter=seats|template=Sum}} | + | | seats = {{#invoke:Item|gather|parameter=seats|template=Sum|{{{totalseats|}}}}} |
| votes = {{{totalvotes|}}} | | votes = {{{totalvotes|}}} | ||
}} | }} | ||
Latest revision as of 17:28, 28 June 2020
| {{{title}}} | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Party | Seats | Net gain/loss | Seats % | Votes % | Votes | +/− | |||
| Total | Lua error: expandTemplate: template "Sum" does not exist. | ||||||||
|}
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|...}}
| ...
}}
| The above documentation is transcluded from Template:Election summary net/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. |