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

m 1 revision imported
Updated
 
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
     -->
     -->{{Election box begin}}
|- class="vcard"
</noinclude>|- class="vcard"
| style="background-color: {{Template:{{{party}}}/meta/color}}; width: 5px;" |
| style="color:inherit;background-color:{{safesubst<noinclude/>:#if:{{{party|}}}|{{safesubst<noinclude/>:#invoke:Political party|fetch|{{{party|N/A}}}|color}}|white}}; width:5px;" |
| class="org" style="width: 130px" | '''[[{{{party}}}|{{Template:{{{party}}}/meta/shortname}}]] '''
| 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}}]]}}'''|}}
| class="fn" | '''{{{candidate}}} '''
!scope=row style="text-align:left; font-weight:normal; color:inherit; background:inherit;" class="fn" | '''{{{candidate}}} '''
| style="text-align: right; margin-right: 0.5em" | '''{{formatnum:{{replace|{{{votes}}}|,|}}}} '''
| style="text-align:right; margin-right:0.5em" | '''{{safesubst<noinclude/>:formatnum:{{safesubst<noinclude/>:replace|{{{votes}}}|,|}}}} '''
| style="text-align: right; margin-right: 0.5em" | '''{{{percentage}}} '''
| style="text-align:right; margin-right:0.5em" | '''{{{percentage}}} '''
| style="text-align: right; margin-right: 0.5em" | '''{{{change}}} '''
| style="text-align:right; margin-right:0.5em" | '''{{#invoke:String|replace|source={{{change|}}}|-|−}} '''
|-<noinclude>
|-
 
<noinclude>
{{Election box end}}
{{documentation}}
{{documentation}}
[[Category:Templates generating hCards]]
[[Category:Templates generating hCards]]
[[Category:Election and referendum infobox templates]]</noinclude>
[[Category:Election and referendum infobox templates]]
</noinclude>

Latest revision as of 18:30, 17 May 2026

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