Skabelon:Election results/doc

Fra Wikipedia, den frie encyklopædi
Spring til navigation Spring til søgning

Denne skabelon bruges til at lave en tabel med valgresultater for politiske valg. Den kan bruges til mange landes forskellige valgsystemer.

Skabelonen og dokumentationen er kopieret fra engelsk Wikipedia. Navnet på skabelonen og dens parametre er ikke oversat til dansk for at gøre det nemt at kopiere brug af skabelonen fra engelsk Wikipedia i artikler om valg direkte til dansk Wikipedia.

Resten af dokumentationen herunder er fra engelsk Wikipedia:

How to use this template[rediger kildetekst]

{{Election results
|caption=       <!--Heading for the table-->
|image=         <!--Insert parliamentary diagrams here-->
|dsv=           <!--Flips order of party and candidate columns for double simultaneous vote elections-->
|candtitle=     <!--Custom heading for candidate column in DSV elections-->
|partytitle=    <!--Custom heading for party column-->
|firstround=    <!--Changes heading from 'First round' to text specified-->
|secondround=   <!--Changes heading from 'Second round' to text specified-->
|seattype1=     <!--Heading of first seat column when using multiple custom seat columns-->
|seattype2=     <!--Heading of second seat column when using multiple custom seat columns-->
|seattype3=     <!--Heading of third seat column when using multiple custom seat columns-->
|seattype4=     <!--Heading of fourth seat column when using multiple custom seat columns-->
|seattype5=     <!--Heading of fifth seat column when using multiple custom seat columns-->

|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 no meta template exists-->
|alliance1=     <!--Alliance. 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-->
|acolor1=       <!--When used with alliances: Manual entry of colour of alliance if no meta template exists-->
|aspan1=        <!--Number of rows of alliance parties, possibly including a total-->
|cand1=         <!--Candidate. Wikilink to candididate's name, or just write out the name if no article exists)-->
|vp1=           <!--Candidate. 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-->
|ivotes1=       <!--Produces vote  figure in italics that does not count towards total. Used when not all votes are known or as a subtotal row-->
|ipct1=         <!--Produces percentage in italics when total votes are not known and cannot be calculated automatically-->
|vspan1=        <!--Allows vote figures to be spanned across multiple lines if not known for individual parties)
|atotal1=       <!--Total votes received by the alliance-->
|apct1=         <!--Total percentage received by the alliance-->
|atotalnv=      <!--Use (with =y) when there are no vote figures available to invoke a total row for an alliance-->
|sw1=           <!--Swing for first party or candidate-->
|seats1=        <!--Seats won by first party-->
|totseats1=     <!--Total seats won by first party in two-round/part elections-->
|iseats1=       <!--Produces seat figure in italics that does not count towards total. Used when not all seats are known or as a subtotal row-->
|aseats1=       <!--Seat total for an alliance-->
|itotseats1=    <!--Produces seat total in italics that does not count towards total-->
|atotseats1=    <!--Total seats won by first alliance in two-round/part elections-->
|st1t1=         <!--Data for first seat column when using multiple custom seat columns-->
|st1t2=         <!--Data for second seat column when using multiple custom seat columns-->
|st1t3=         <!--Data for third seat column when using multiple custom seat columns-->
|st1t4=         <!--Data for fourth seat column when using multiple custom seat columns-->
|st1t5=         <!--Data for fifth seat column when using multiple custom seat columns-->
|sc1=           <!--Seat change of first party compared to previous election-->

|acolor1=       <!--When used with rows: Background colour for the row-->

|total_sc=      <!--Change in total number of seats available-->
|total_st1t=    <!--Override figure for total of first seat column if needed (e.g. when alliance subtotals are in the rows above or column is for seat change-->
|total_st2t=    <!--Override figure for total of second seat column-->
|total_st3t=    <!--Override figure for total of third seat column-->
|total_st4t=    <!--Override figure for total of fourth seat column-->
|total_st5t=    <!--Override figure for total of fifth seat column-->

|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.  Do not use for single-candidate elections-->
|invalid=       <!--Number of invalid and blank votes-->
|invalidsw=     <!--Change in the percentage of invalid votes compared to the previous election. Do not use for single-candidate elections-->
|blank=y        <!--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. Do not use for single-candidate elections-->

|valid2=        <!--Number of valid ballots cast in the second round – only needed where voters can cast more than one vote in a constituency-->
|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-->

|result=        <!--For displaying results of individual constituency elections-->
|majority=      <!--Majority of the winning candidate-->
|majoritypct=   <!--Majority of the winning candidate-->
|majoritysw=    <!--Swing of the majority of the winning candidate-->
|result2=       <!--For displaying results of a second seat-->
|majority2=     <!--Majority of the second winning candidate-->
|majoritypct2=  <!--Majority of the second winning candidate-->
|majoritysw2=   <!--Swing of the majority of the second winning candidate-->

|resultsw=      <!--Overall swing to the winning candidate-->
|resultsw2=     <!--Overall swing to the second winning candidate-->

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

Examples[rediger kildetekst]

For many more examples, see Template:Election results/testcases.

Presidential elections[rediger kildetekst]

{{Election results
|party1=[[Kuomintang|Kuomintang]]
|cand1=[[Lee Teng-hui]]
|votes1=5813699	

|party2=[[Democratic Progressive Party]]
|cand2=[[Peng Ming-min]]
|votes2=2274586

|party3=[[Independent politician|Independent]]
|cand3=[[Lin Yang-kang]]
|votes3=1603790

|party4=[[Independent politician|Independent]]
|cand4=[[Chen Li-an]]
|votes4=1074044	

|invalid=117160
|electorate=14313288
|source=CEC<ref>{{cite web |url=https://www.cec.gov.tw/english/cms/pe/24830 |title=1996 Presidential and Vice Presidential Election |publisher=Central Election Commission |date=23 August 2017 |access-date=13 June 2021}}</ref>
}}
KandidatPartiStemmer%
Lee Teng-huiKuomintang5.813.69954,00
Peng Ming-minDemocratic Progressive Party2.274.58621,13
Lin Yang-kangIndependent1.603.79014,90
Chen Li-anIndependent1.074.0449,98
I alt10.766.119100,00
Gyldige stemmer10.766.11998,92
Ugyldige/blanke stemmer117.1601,08
Stemmer i alt10.883.279100,00
Registrerede vælgere/valgdeltagelse14.313.28876,04
Kilde: CECSkabelon:Dummy reference

With a vice-presidential candidate[rediger kildetekst]

{{Election results
|party1=[[Kuomintang|Kuomintang]]
|cand1=[[Lee Teng-hui]]
|vp1=[[Lien Chan]]
|votes1=5813699	

|party2=[[Democratic Progressive Party]]
|cand2=[[Peng Ming-min]]
|vp2=[[Frank Hsieh]]
|votes2=2274586

|party3=[[Independent politician|Independent]]
|cand3=[[Lin Yang-kang]]
|vp3=[[Hau Pei-tsun]]
|votes3=1603790

|party4=[[Independent politician|Independent]]
|cand4=[[Chen Li-an]]
|vp4=[[Wang Ching-feng]]
|votes4=1074044	

|invalid=117160
|electorate=14313288
|source=CEC<ref>{{cite web |url=https://www.cec.gov.tw/english/cms/pe/24830 |title=1996 Presidential and Vice Presidential Election |publisher=Central Election Commission |date=23 August 2017 |access-date=13 June 2021}}</ref>
}}
KandidatRunning matePartiStemmer%
Lee Teng-huiLien ChanKuomintang5.813.69954,00
Peng Ming-minFrank HsiehDemocratic Progressive Party2.274.58621,13
Lin Yang-kangHau Pei-tsunIndependent1.603.79014,90
Chen Li-anWang Ching-fengIndependent1.074.0449,98
I alt10.766.119100,00
Gyldige stemmer10.766.11998,92
Ugyldige/blanke stemmer117.1601,08
Stemmer i alt10.883.279100,00
Registrerede vælgere/valgdeltagelse14.313.28876,04
Kilde: CECSkabelon:Dummy reference

With an 'against all' option[rediger kildetekst]

{{Testcase table
|party1=[[Kuomintang|Kuomintang]]
|cand1=[[Lee Teng-hui]]
|votes1=5813699	

|party2=[[Democratic Progressive Party|Democratic Progressive Party]]
|cand2=[[Peng Ming-min]]
|votes2=2274586

|party3=[[Independent politician|Independent]]
|cand3=[[Lin Yang-kang]]
|votes3=1603790

|party4=[[Independent politician|Independent]]
|cand4=[[Chen Li-an]]
|votes4=1074044	

|row5=Against all
|votes5=50000

|invalid=117160
|electorate=14313288
|source=CEC<ref>{{cite web |url=https://www.cec.gov.tw/english/cms/pe/24830 |title=1996 Presidential and Vice Presidential Election |publisher=Central Election Commission |date=23 August 2017 |access-date=13 June 2021}}</ref>
}}
KandidatPartiStemmer%
Lee Teng-huiKuomintang5.813.69953,75
Peng Ming-minDemocratic Progressive Party2.274.58621,03
Lin Yang-kangIndependent1.603.79014,83
Chen Li-anIndependent1.074.0449,93
Against all50.0000,46
I alt10.816.119100,00
Gyldige stemmer10.816.11998,93
Ugyldige/blanke stemmer117.1601,07
Stemmer i alt10.933.279100,00
Registrerede vælgere/valgdeltagelse14.313.28876,39
Kilde: CECSkabelon:Dummy reference

Two-round election[rediger kildetekst]

{{Election results
|party1=[[Independent politician|Independent]]
|cand1=[[Alexander Lukashenko]]
|votes1=4661075
|votes1_2=5000000

|party2=[[Independent politician|Independent]]
|cand2=[[Sviatlana Tsikhanouskaya]]
|votes2=588622
|votes2_2=1000000

|party3=[[Independent politician|Independent]]
|cand3=[[Hanna Kanapatskaya]]
|votes3=97489

|row4=Against all
|votes4=5000
|votes4_2=4000

|invalid=69505
|invalid2=60000
|electorate=6916134
|electorate2=7000000
|source=CEC<ref>{{cite web |url=https://vybary2020.by/ |title=Результаты голосования |trans-title=Voting results |publisher=Central Election Commission |language=Belarusian |archive-url=https://web.archive.org/web/20200912235336/https://vybary2020.by/ |archive-date=12 September 2020}}</ref>
}}
KandidatPartiFørste rundeAnden runde
Stemmer%Stemmer%
Alexander LukashenkoIndependent4.661.07587,095.000.00083,28
Sviatlana TsikhanouskayaIndependent588.62211,001.000.00016,66
Hanna KanapatskayaIndependent97.4891,82
Against all5.0000,094.0000,07
I alt5.352.186100,006.004.000100,00
Gyldige stemmer5.352.18698,726.004.00099,01
Ugyldige/blanke stemmer69.5051,2860.0000,99
Stemmer i alt5.421.691100,006.064.000100,00
Registrerede vælgere/valgdeltagelse6.916.13478,397.000.00086,63
Kilde: CECSkabelon:Dummy reference

Parliamentary election[rediger kildetekst]

{{Election results
|image=[[File:Guernesey États 2020.svg]]

|party1=[[Guernsey Partnership of Independents]]
|votes1=153136
|seats1=10
|sw1=+5.00
|sc1=New
|color1=#0A7836

|party2=[[Guernsey Party]]
|votes2=63873
|sw2=New
|seats2=6
|sc2=New
|color2=#548235

|party3=[[Alliance Party Guernsey]]
|votes3=21461
|sw3=–2.0
|seats3=0
|sc3=0
|color3=#E80F2E

|party4=Independents
|votes4=399300
|sw4=+2.0
|seats4=22
|sc4=–16

|row5=Appointed seats
|seats5=2
|sc5=0

|total_sc=0

|valid=24473
|invalid=154
|electorate=30899
|source=Guernsey Election Office<ref>{{cite web |url=https://election2020.gg/ |title=The Results of the 2020 General Election |publisher=Guernsey Election Office |date=11 October 2020 |access-date=14 June 2021}}</ref>
}}
Guernesey États 2020.svg
PartiStemmer%+/–Mandater+/–
Guernsey Partnership of Independents153.13624,01+5.0010New
Guernsey Party63.87310,02New6New
Alliance Party Guernsey21.4613,37–2.00New
Independents399.30062,61+2.022–16
Appointed seats20
I alt637.770100,00400
Gyldige stemmer24.47399,37
Ugyldige/blanke stemmer1540,63
Stemmer i alt24.627100,00
Registrerede vælgere/valgdeltagelse30.89979,70
Kilde: Guernsey Election OfficeSkabelon:Dummy reference

Partial parliamentary election[rediger kildetekst]

{{Election results
|seattype1 = Not up
|seattype2 = Up
|seattype3 = Won
|seattype4 = Total
|seattype5 = +/–

|party1=[[Guernsey Partnership of Independents]]
|votes1=153136
|sw1=+5.00
|st1t1=10
|st2t1=11
|st3t1=10
|st4t1=20
|st5t1=–1
|color1=#0A7836

|party2=[[Guernsey Party]]
|votes2=63873
|sw2=+10.00
|st1t2=10
|st2t2=9
|st3t2=10
|st4t2=20
|st5t2=+1
|color2=#548235

|total_st1t=20
|total_st2t=20
|total_st3t=20
|total_st4t=40
|total_st5t=0

|valid=24473
|invalid=154
|electorate=30899
|source=Guernsey Election Office<ref>{{cite web |url=https://election2020.gg/ |title=The Results of the 2020 General Election |publisher=Guernsey Election Office |date=11 October 2020 |access-date=14 June 2021}}</ref>
}}
PartiStemmer%+/–Mandater
Not upUpWonTotal+/–
Guernsey Partnership of Independents153.13670,57+5.0010111020–1
Guernsey Party63.87329,43+10.001091020+1
I alt217.009100,00202020400
Gyldige stemmer24.47399,37
Ugyldige/blanke stemmer1540,63
Stemmer i alt24.627100,00
Registrerede vælgere/valgdeltagelse30.89979,70
Kilde: Guernsey Election OfficeSkabelon:Dummy reference


Individual constituency election[rediger kildetekst]

{{Election results
|party1=[[Kuomintang]]
|cand1=[[Lee Teng-hui]]
|votes1=5813699
|sw1=+1.11

|party2=[[Democratic Progressive Party]]
|cand2=[[Peng Ming-min]]
|votes2=2274586
|sw2=–1.11

|party3=[[Independent politician|Independent]]
|cand3=[[Lin Yang-kang]]
|votes3=1603790
|sw3=New

|party4=[[Independent politician|Independent]]
|cand4=[[Chen Li-an]]
|votes4=1074044	
|sw4=–10.0

|invalid=117160
|electorate=14313288

|result = [[Kuomintang]] gain
|majority=16544
|majoritypct=16.44
|majoritysw=+1.44
|resultsw=+1.24
}}
KandidatPartiStemmer%+/–
Lee Teng-huiKuomintang5.813.69954,00+1.11
Peng Ming-minDemocratic Progressive Party2.274.58621,13–1.11
Lin Yang-kangIndependent1.603.79014,90New
Chen Li-anIndependent1.074.0449,98–10.0
I alt10.766.119100,00
Gyldige stemmer10.766.11998,92
Ugyldige/blanke stemmer117.1601,08
Stemmer i alt10.883.279100,00
Registrerede vælgere/valgdeltagelse14.313.28876,04
Majority16.54416,44+1.44
Kuomintang gainSwing+1.24

Individual two-seat constituency election[rediger kildetekst]

{{Election results
|party1=[[Kuomintang]]
|cand1=[[Lee Teng-hui]]
|votes1=5813699
|sw1=+1.11

|party2=[[Democratic Progressive Party]]
|cand2=[[Peng Ming-min]]
|votes2=2274586
|sw2=–1.11

|party3=[[Independent politician|Independent]]
|cand3=[[Lin Yang-kang]]
|votes3=1603790
|sw3=New

|party4=[[Independent politician|Independent]]
|cand4=[[Chen Li-an]]
|votes4=1074044	
|sw4=–10.0

|invalid=117160
|electorate=14313288

|result = [[Kuomintang]] gain
|majority=16544
|majoritypct=16.44
|majoritysw=+1.44
|resultsw=+1.24

|result2=[[Democratic Progressive Party]] hold
|majority2=14000
|majoritypct2=14.44
|majoritysw2=+0.22
|resultsw2=+1.24
}}
KandidatPartiStemmer%+/–
Lee Teng-huiKuomintang5.813.69954,00+1.11
Peng Ming-minDemocratic Progressive Party2.274.58621,13–1.11
Lin Yang-kangIndependent1.603.79014,90New
Chen Li-anIndependent1.074.0449,98–10.0
I alt10.766.119100,00
Gyldige stemmer10.766.11998,92
Ugyldige/blanke stemmer117.1601,08
Stemmer i alt10.883.279100,00
Registrerede vælgere/valgdeltagelse14.313.28876,04
Majority16.54416,44+1.44
Kuomintang gainSwing+1.24
Majority14.00014,44+0.22
Democratic Progressive Party holdSwing+1.24