Template:Election summary party: Difference between revisions
Appearance
Content deleted Content added
add color:inherit to reduce lint issues |
|||
Line 2: | Line 2: | ||
|- |
|- |
||
| style="color:inherit; background-color: {{if empty|{{{colour|}}}|{{{color|}}}|{{#if:{{{party|}}}|{{#invoke:Political party|fetch|{{{party}}}|color}}}}}}; width: 3px;" | |
| style="color:inherit; background-color: {{if empty|{{{colour|}}}|{{{color|}}}|{{#if:{{{party|}}}|{{#invoke:Political party|fetch|{{{party}}}|color}}}}}}; width: 3px;" | |
||
!scope=row style="color:inherit; background:inherit; width: 130px;{{#if:{{{government|}}}|font-weight:bold|font-weight:normal}}" |{{#if:{{{other|}}}|{{{other|}}}|{{#if:{{{party|}}}|[[{{#ifeq:{{{party}}}|Independent|Independent politician|{{{party}}}}}|{{#invoke:Political party|fetch|{{{party}}}|shortname}}]]}}}} |
|||
| style="text-align:right; {{#if:{{{government|}}}|font-weight:bold;|}}" | {{{seats}}} |
| style="text-align:right; {{#if:{{{government|}}}|font-weight:bold;|}}" | {{{seats}}} |
||
| style="text-align:right; {{#if:{{{government|}}}|font-weight:bold;|}}" | {{{gain}}} |
| style="text-align:right; {{#if:{{{government|}}}|font-weight:bold;|}}" | {{{gain}}} |
Latest revision as of 22:36, 13 April 2025
{{{seats}}} | {{{gain}}} | {{{loss}}} | {{{net}}} | {{{seats %}}} | {{{votes %}}} | {{{votes}}} | {{{plus/minus}}} |
![]() | This template is used on approximately 4,200 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
![]() | This template uses Lua: |
Usage
{{Election summary party |party = Fine Party |seats = 4 |net = {{steady}} |gain = {{increase}} 4 |loss = {{decrease}} 4 |votes = |votes % = |seats % = |plus/minus = }}
- If non-empty parameter
government
is present, the line is displayed in bold. - Parameter
party
may be replaced with parameterother
, which is displayed as it is, i.e. without a link. - Some applications of this template show use of the closing table code,
|}
, at the end of the final usage. See Staffordshire edit screen for example.
Example
Party | Seats | Gains | Losses | Net gain/loss | Seats % | Votes % | Votes | +/− | |
---|---|---|---|---|---|---|---|---|---|
Conservative | 9 | 4 | 0 | +4 | 45.0 | 38.8 | 11,951 | ||
Liberal Democrats | 6 | 1 | 3 | −2 | 30.0 | 33.1 | 10,192 | ||
Labour | 4 | 1 | 2 | −1 | 20.0 | 24.1 | 7,429 | ||
Tiptree Residents | 1 | 0 | 0 | 0 | 5.0 | 2.4 | 727 | ||
Independent | 0 | 0 | 1 | −1 | 0 | 1.6 | 478 | ||
Natural Law | 0 | 0 | 0 | 0 | 0 | 0.1 | 39 |