模板:Election results/doc

模板页面

参数及使用方法

{{Election results
| caption     = <!--Heading for the table-->
| image       = <!--Insert parliamentary diagrams here-->
| firstround  = <!--Changes heading from 'First round' to text specified-->
| secondround = <!--Changes heading from 'Second round' to text specified-->

| party1      = <!--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-->
| cand1       = <!--Wikilink to candididate's name, or just write out the name if no article exists)-->
| vp1         = <!--Wikilink to candididate's name, or just write out the name if no article exists)-->
| votes1      = <!--Votes received by first candidate or party-->
| votes1_2    = <!--Second round votes received by first candidate or party-->
| sw1         = <!--Swing for first party or candidate-->
| seats1      = <!--Seats won by first party-->
| sc1         = <!--Seat change of first party compared to previous election-->
| color1      = <!--Manual entry of colour if no meta template exists or need to override the meta template-->

| row3        = <!--Non-party rows such as 'Against all', 'None of the above' or 'Appointed seats'-->
| votes3      = <!--Number of votes received by 'Against all' or 'None of the above'-->
| votes3_2    = <!--Number of votes received by 'Against all' or 'None of the above' in the second round-->
| seats3      = <!--Number of seats for this row (if appointed seats)-->
| sc3         = <!--Seat change for this row (if appointed seats)-->

| total_sc    = <!--Change in total number of seats available-->
| valid       = <!--Number of valid votes if different to party totals – only needed where voters can cast more than one vote in a constituency-->
| validsw     = <!--Change in the percentage of valid votes compared to the previous election-->
| invalid     = <!--Number of invalid and blank votes-->
| invalidsw   = <!--Change in the percentage of invalid votes compared to the previous election-->
| blank       = <!--To be used when blank votes are counted as valid votes; turns 'Invalid/blank votes' to 'Invalid 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-->
| turnoutsw   = <!--Change in the turnout percentage compared to the previous election-->

| valid2      = <!--Number of valid ballots cast in the second round – ONLY NEEDED FOR PARLIAMENTARY ELECTIONS-->
| invalid2    = <!--Number of invalid and blank votes in the second round-->
| electorate2 = <!--Number of registered voters in the second round-->
| turnout2    = <!--Manual entry of voter turnout in second round when registered voters is unknown-->

| source      = <!--Source(s) for the results-->
}}