Templat:HitungVoting: Perbedaan antara revisi
RaFaDa20631 (bicara | kontrib) Dokumentasi templat pindah |
RaFaDa20631 (bicara | kontrib) Tidak ada ringkasan suntingan |
||
Baris 1: | Baris 1: | ||
<includeonly> |
|||
<noinclude>Templat ini dipakai untuk melakukan perhitungan atas hasil pemilihan suara.</noinclude> |
|||
{| class = "wikitable" style="text-align: center;" |
{| class = "wikitable" style="text-align: center;" |
||
|- |
|- |
||
Baris 7: | Baris 7: | ||
|- |
|- |
||
|'''Persentase'''||{{#expr:{{{1}}}/({{{1}}}+{{{2}}}+{{{3}}}) *100 round 3}}%||{{#expr:{{{2}}}/({{{1}}}+{{{2}}}+{{{3}}}) *100 round 3}}%||{{#expr:{{{3}}}/({{{1}}}+{{{2}}}+{{{3}}}) *100 round 3}}%||{{#expr:((({{{1}}}/({{{1}}}+{{{2}}}+{{{3}}})) *100 round 3) + (({{{2}}}/({{{1}}}+{{{2}}}+{{{3}}})) *100 round 3) + (({{{3}}}/({{{1}}}+{{{2}}}+{{{3}}})) *100 round 3)) round 1}}% |
|'''Persentase'''||{{#expr:{{{1}}}/({{{1}}}+{{{2}}}+{{{3}}}) *100 round 3}}%||{{#expr:{{{2}}}/({{{1}}}+{{{2}}}+{{{3}}}) *100 round 3}}%||{{#expr:{{{3}}}/({{{1}}}+{{{2}}}+{{{3}}}) *100 round 3}}%||{{#expr:((({{{1}}}/({{{1}}}+{{{2}}}+{{{3}}})) *100 round 3) + (({{{2}}}/({{{1}}}+{{{2}}}+{{{3}}})) *100 round 3) + (({{{3}}}/({{{1}}}+{{{2}}}+{{{3}}})) *100 round 3)) round 1}}% |
||
|}<noinclude> |
|}</includeonly><noinclude> |
||
{{documentation}} |
{{documentation}} |
||
</noinclude> |
</noinclude> |
Revisi per 27 September 2020 09.03
Templat ini dipakai untuk melakukan perhitungan atas hasil pemilihan suara.
Catatan: Jangan gunakan templat {{HitungVoting}} ini lagi, karena penghitungannya salah. Abstain tidak dihitung bersama-sama dengan suara Tidak setuju! Sejak 15 Juni 2012 telah digantikan dengan {{HitungVoting2}} berdasarkan diskusi di Pembicaraan_Wikipedia:Kebijakan_mengenai_kepengurusan#Suara_setuju,_tidak_setuju,_dan_abstain. Pemungutan suara sebelum 2012 yang dihitung dengan bantuan templat ini dibiarkan. Sementara sejak 2012, semua pemungutan suara yang baru harus menggunakan {{HitungVoting2}}.
Penggunaan
Ketikkan: {{HitungVoting|a|b|c}}
dengan:
- a = jumlah suara setuju
- b = jumlah suara tidak setuju
- c = jumlah suara abstain
Catatan: Jika suara salah satu pilihan adalah nol, tetap ketikkan 0.
Contoh
Misalkan, berdasarkan hasil pemungutan suara, didapatkan: 15 suara setuju, 24 suara tidak setuju, dan 14 suara abstain, maka diketikkan:
{{HitungVoting|15|24|14}}
Maka, akan menghasilkan:
Setuju | Tidak setuju | Abstain | Jumlah | |
---|---|---|---|---|
Jumlah suara | 15 | 24 | 14 | 53 |
Persentase | 28.302% | 45.283% | 26.415% | 100% |