This is a documentation subpage for User:Who R you?/sandbox8. It may contain usage information, categories and other content that is not part of the original user template page. |
IMPORTANT NOTICE: This template replaces the {{OntElec1Tot}} template; it has been modified to close the table created by {{OntElec1}}. All articles which use the {{OntElec1}} template are being actively updated to remove the {{end}} template (functionality which is now included here) and to ensure that all such articles utilize this template. |
Adds totals to (and closes) the riding election results table created with {{OntElec1}} and populated by {{OntElec1Row … }}; also adds appropriate notice while results are Unofficial or Contested.
Usage
edit{{OntElec1}} {{OntElec1Row … }} {{OntElec1Tots | Description | #Votes | %Vote | mmmyyyy | Contested? | OtherComments }}
where (unnamed parameters indicate, in sequence):
1 | Description | → | description of the total row; (defaults to either "Total valid votes" or "Preliminary total votes" if omitted) | ||||
2 | #Votes | → | total number of votes (formatted – e.g. 12,345) | ||||
3 | %Vote | → | total of percentage of vote column (do not include the % sign in parameter)
Generally this should be 100.0, but may be 99.9, 99.99, 100.1, 100.01, etc due to rounding errors in individual lines – this figure should be the actual total of the various rows in the column (i.e. with the ±.1/±.01 shown, indicating that, although the numbers don't total 100.00, they are as accurate as is feasible; this is preferable to adjusting one (or more) row(s) to provide incorrect information). | ||||
4 | mmmyyyy | → | [optional] identifies the election period (e.g. Oct2011 for the October 2011 Ontario provincial election); this permits global updating of Election Results becoming Official. Once results become official, this template should be updated to indicate that results (for the specified election) are Official. When the next election is called (and the {{OntMPP}} templates start being added to existing pages for the next election, update the {{OntMPP End|mmmyyyy}} template to indicate that those results are Unofficial (until the template is again updated to reflect results becoming Official). See comments in {{OntMPP End}} template for instructions on making these simple changes.
The following comment is added below the results until they become Official:
After the election (until {{OntMPP End}} is updated):
The appropriate message is displayed depending on the current date verses the Scheduled Election Date specified in the {{OntMPP End}} template. The word "preliminary" (uncoloured) is automatically included in the message (after 8pm) on election day (and removed after midnight), and the entire notice is added until {{OntMPP End}} is updated to indicate that the overall election results are Official (usually occurs some time during the week following the election). Once the {{OntMPP End}} template is updated, these comments are automatically excluded from all older election results so there is no need to update individual articles. | ||||
5 | Contested? | → | [optional] any value other than "No", "N", or "0" (zero) (as the second parameter) specifies that this riding's election results are being contested, and these results alone remain Unofficial with the following message added below the Contested results:
Once the riding's results become Official, edit the specific wiki article and clear the Contested? flag from the {{OntMPP End | mmmyyyy | Contested?}} template. | ||||
6 | OtherComments | → | [optional] any text to be included in an {{ombox}}. (Does not support the " | " character, use " | " to insert if needed.)
Example: {{OntElec1Tots|| 12,345 | 100.0 | Oct2011 || Some '''other comment''' to be added!}} yields:
|