Jump to content

Template:Election box candidate with party link

From Wikipedia, the free encyclopedia
{{safesubst:#if:|
left=style="float:left;clear:left;margin-right:1em" right=style="float:right;clear:right;margin-left:1em" centre=style="margin-left:auto;margin-right:auto"
}}
{{{title}}}
Party Candidate Votes % <templatestyles src="Template:Tooltip/styles.css" />{{#ifeq:Template:Yesno-no|yes ±% Template:Encodefirst

}}{{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Tooltip with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | class | dotted | id | link | style }}

fetch {{safesubst:#if:|{{safesubst:#ifeq:{{{party}}}|independent|Independent|[[{{{party}}}|{{safesubst:#invoke:Political party|fetch|{{{party}}}|shortname}}]]}}}} {{safesubst:#if:1|{{{candidate}}}}}

{{safesubst:#ifeq:|-|

| }}

{{safesubst:#if:|{{safesubst:#ifeq:|-|

| }}| }}

{{safesubst:#if:|

{{#invoke:String|replace|source=|-|−}}| }}

||} }}{{safesubst:#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:End with unknown parameter "_VALUE_"|ignoreblank=y| html | 1 }}

Template:Documentation