Difference between revisions of "Template:Malaysian election result/total/doc"

From blackwiki
Jump to navigation Jump to search
imported>Bearcat
(do not use a Canadian election template as an example here; it causes a cascading inclusion of this and related pages in a Canadian election templates category they don't belong in. use a Malaysian template or forget it.)
imported>Vanisaac
m (→‎Calculating Totals: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 87: Line 87:
 
| This note should be included until official results are published/updated in table.<br />Use the parameter "<code>{{big|prelim{{=}}yes}}</code>" in the /source or /note templates or in the /top template to add this preformatted message.
 
| This note should be included until official results are published/updated in table.<br />Use the parameter "<code>{{big|prelim{{=}}yes}}</code>" in the /source or /note templates or in the /top template to add this preformatted message.
 
|}
 
|}
−
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->
 
[[Category:Malaysia election result templates|{{PAGENAME}}]]
 
[[Category:Malaysia election result templates|{{PAGENAME}}]]
−
</includeonly>
+
}}</includeonly>

Latest revision as of 00:32, 26 April 2020

Calculating Totals

 Item  Source / Formula
 ❶  Candidates List candidates in order used in official list  (e.g. http://wemakevotingeasy.ca/en/electoral-districts/059-oak-ridges-markham.aspx)
List election results in descending order of number of votes  (i.e. Winner first)
❷ Votes From Summary of valid ballots by candidate report
elections.ca,  elections.ab.ca,  www.elections.gov.nl.ca,  elections.on.ca
❸ % ❷ ÷ ❼ × 100 rounded to 2 decimal places
❹ ∆% current ❸ − previous ❸ Note: A ⃝
For ① & ②, if Party (or same Independent candidate) didn't run last time, use "&nbsp;"; if ❸ unchanged from previous, use "–  " (&ndash; &nbsp;)
A ⃝ — Occasionally column ❹ does not balance due to rounding errors.  Check if:   ( ∑❹ + numbers in ❸ where ❹ is blank (i.e. new candidates) − previous ❸ that didn't run this time ) ≠ 0
If there are rounding issues (i.e. above totals ±0.01/±0.02) then recalculate each ❹ without rounding errors using the formula:   ( ( previous ❷ ÷ previous ❼ ) − ( current ❷ ÷ current ❼ ) ) × 100 then rounded to 2 decimals
❺ Expenditures From Candidate Campaign Returns - CR-1, individual candidate Financial Statements, financial summary reports (by party/candidate) (or other similar late stage reports) – might be published a year after the election — Until expenditure figures are published, avoid including the blank column in tables.
❻ Totals caption Add suffix "/Expense limit" if "|expenditures=yes" in CANelec/top (causing "Expenditures" column to be displayed)
❼ Total Votes ∑❷ = Balance in Statistical Summary
❽ Total % ∑❸ = 100.0  –  Note it's "{{nowrap|100.0 &nbsp;}}" not "100.00" because .0 vs .00 solves occasional rounding issues & " &nbsp;" aligns decimals
❾ Total ∆% ( current ❼ − previous ❼ ) ÷ previous ❼ × 100  —  +Increase /−Decrease in number of (valid) votes cast
❿ Expense limit Identified in Campaign Returns / Financial Statements and/or separate reports/statements of expense & contribution limits
⓫ Rejected Votes ∑number of rejected, unmarked, & cancelled ballots from Statistical Summary
⓬ Rejected % ⓫ ÷ ⓮ × 100
⓭ Rejected ∆% current ⓬ − previous ⓬
⓮ Votes Turnout = ❼ + ⓫  —  matches Statistical Summary
⓯ % Turnout ⓮ ÷ ⓱ × 100 matches Statistical Summary but calculate to 2 decimals
⓰ ∆% Turnout current ⓯ − previous ⓯
⓱ Eligible Votes from Statistical Summary — Total number of names Registered + Revision
⓲ Eligible % Blank ("&nbsp;")
⓳ Eligible ∆% ( current ⓱ − previous ⓱ ) ÷ previous ⓱ × 100  —  +Increase /−Decrease in number of eligible voters
⓴ Prelim This note should be included until official results are published/updated in table.
Use the parameter "prelim=yes" in the /source or /note templates or in the /top template to add this preformatted message.