Template:Election results-STV/doc
Appearance
This is a documentation subpage for Template:Election results-STV. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Purpose
[edit]This template is a version of {{Election results}} modified for single transferable vote (STV) elections, allowing up to 13 counts to be entered. Percentages for the second count onwards can be turned off using the 'nopercentage' function.
Usage
[edit]{{Election results-STV
|caption = <!--Heading for the table-->
|reporting = <!--Add percentage reporting here (without the % symbol)-->
|candtitle = <!--Custom heading for candidate column in DSV elections-->
|partytitle = <!--Custom heading for party or party/alliances column-->
|nopercentage = <!--To hide percentages for the second count onwards -->
|cand1 = <!--First candidate. Wikilink to candididate's name, or just write out the name if no article exists)-->
|party1 = <!--Political party. If party has an article, use a standard Wikilink, e.g. [[Labour Party (UK)|Labour Party]]. If there is no article, only use the party name-->
|color1 = <!--Manual entry for colour of party if not in the political party modules-->
|votes1 = <!--Votes received by first candidate-->
|votes1_2 = <!--Second count of votes votes received by first candidate-->
|votes1_3 = <!--Third count of votes received by first candidate. Goes up to 13-->
|votes2 = <!--Votes received by second candidate-->
|votes2_2 = <!--Second count of votes votes received by second candidate-->
|votes2_3 = <!--Third count of votes received by second candidate. Goes up to 13-->
|valid = <!--Number of valid votes if different to party totals – only needed where voters can cast more than one vote in a constituency-->
|invalid = <!--Number of invalid and blank votes-->
|blank = <!--Number of blank votes-->
|totalvotes = <!--Total votes cast when the valid/invalid split is unknown-->
|electorate = <!--Number of registered voters-->
|turnout = <!--Manual entry of voter turnout when registered voters is unknown. Overrides and hides any entry of electorate-->
|result = <!--For displaying results of individual constituency elections-->
|majority = <!--Majority of the winning candidate-->
|majoritypct = <!--Majority of the winning candidate-->
|resultsw = <!--Overall swing to the winning candidate-->
|source = <!--Source(s) for the results-->
}}
Examples
[edit]