Template:Election box candidate with party link: Difference between revisions

>Primefac
m Changed protection level for "Template:Election box candidate with party link": high-risk template with 4000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<!-- Election candidates and results template
<noinclude><!-- Election candidates and results template
     See Template_talk:Election box for details of how to use this template
     See Template_talk:Election box for details of how to use this template
     {{#if:1| ... }} allows for list markup  
     {{#if:1| ... }} allows for list markup  
     -->
     -->{{Election box begin}}
|- class="vcard"
</noinclude>|- class="vcard"
| style="background-color: {{Template:{{{party}}}/meta/color}}; width: 5px;" |
| style="color:inherit; background-color: {{safesubst<noinclude/>:#invoke:Political party|fetch|{{{party|}}}|color}}; width: 5px;" |
| class="org" style="width: 130px" | {{#if:{{{party|}}}|[[{{{party}}}|{{Template:{{{party}}}/meta/shortname}}]]}}{{{party_note|}}}
| class="org" style="width: 130px" | {{safesubst<noinclude/>:#if:{{{party|}}}|{{safesubst<noinclude/>:#ifeq:{{lc:{{{party}}}}}|independent|[[Independent politician|Independent]]|[[{{{party}}}|{{safesubst<noinclude/>:#invoke:Political party|fetch|{{{party}}}|shortname}}]]}}}}{{{party_note|}}}
| class="fn" | {{#if:1|{{{candidate}}}}}
!scope=row style="text-align:left; font-weight:normal; color:inherit; background:inherit;" class="fn" | {{safesubst<noinclude/>:#if:1|{{{candidate}}}}}
{{#ifeq:{{{votes|}}}|-|
{{safesubst<noinclude/>:#ifeq:{{{votes|}}}|-|
{{!}} style="background: <!--#ececec-->; color: #2C2C2C; vertical-align: middle; font-size: smaller; text-align: center;" class="table-na" {{!}} <!--{{abbr|N/A|Not available}}--> |
{{safesubst<noinclude/>:!}} style="color: #2C2C2C; vertical-align: middle; font-size: smaller; text-align: center;" class="table-na" {{safesubst<noinclude/>:!}} <!--{{abbr|N/A|Not available}}--> |
{{!}} style="text-align: right; margin-right: 0.5em" {{!}} {{{votes|}}} }}
{{safesubst<noinclude/>:!}} style="text-align: right; margin-right: 0.5em" {{safesubst<noinclude/>:!}} {{{votes|}}} }}
{{#if:{{{percentage|}}}|{{#ifeq:{{{percentage|}}}|-|
{{safesubst<noinclude/>:#if:{{{percentage|}}}|{{safesubst<noinclude/>:#ifeq:{{{percentage|}}}|-|
{{!}} style="background: <!--#ececec-->; color: #2C2C2C; vertical-align: middle; font-size: smaller; text-align: center;" class="table-na" {{!}} <!--{{abbr|N/A|Not available}}--> |
{{safesubst<noinclude/>:!}} style="color: #2C2C2C; vertical-align: middle; font-size: smaller; text-align: center;" class="table-na" {{safesubst<noinclude/>:!}} <!--{{abbr|N/A|Not available}}--> |
{{!}} style="text-align: right; margin-right: 0.5em" {{!}} {{{percentage|}}} }}|
{{safesubst<noinclude/>:!}} style="text-align: right; margin-right: 0.5em" {{safesubst<noinclude/>:!}} {{{percentage|}}} }}|
{{!}} style="background: <!--#ececec-->; color: #2C2C2C; vertical-align: middle; font-size: smaller; text-align: center;" class="table-na" {{!}} <!--{{abbr|N/A|Not available}}--> }}
{{safesubst<noinclude/>:!}} style="color: #2C2C2C; vertical-align: middle; font-size: smaller; text-align: center;" class="table-na" {{safesubst<noinclude/>:!}} <!--{{abbr|N/A|Not available}}--> }}
{{#if:{{{change|}}}|
{{safesubst<noinclude/>:#if:{{{change|}}}|
{{!}} style="text-align: right; margin-right: 0.5em" {{!}} {{{change|}}}|
{{safesubst<noinclude/>:!}} style="text-align: right; margin-right: 0.5em" {{safesubst<noinclude/>:!}} {{#invoke:String|replace|source={{{change|}}}|-|−}}|
{{!}} style="background: <!--#ececec-->; color: #2C2C2C; vertical-align: middle; font-size: smaller; text-align: center;" class="table-na" {{!}} <!--{{abbr|N/A|Not available}}--> }}
{{safesubst<noinclude/>:!}} style="color: #2C2C2C; vertical-align: middle; font-size: smaller; text-align: center;" class="table-na" {{safesubst<noinclude/>:!}} <!--{{abbr|N/A|Not available}}--> }}
|-<noinclude>{{documentation}}</noinclude>
|-
<noinclude>
{{Election box end}}
{{documentation}}</noinclude>

Latest revision as of 18:32, 17 May 2026

{{{title}}}
Party Candidate Votes % ±%
{{{candidate}}}
Template documentation[create]