Template:Referendum with map help

This template is used for inline help to explain parameters for the referendum pending with map, referendum approved with map and referendum rejected with map templates.

Help text appearing in the templates that call this one:

Use this and the other templates to create a standard format infobox for referendums that also display a map. Before the election use

Note that you can include the same parameters as below but with "0" values, so that the entry is already present and can be changed when results are available.

After the election, depending on the outcome, change the template name to either:

or

Using these templates with the correct parameters makes it easy to produce a usable library of infoboxes which don't require much work to change the box values, but use a consistent format.

Parameters
The parameters for all three of these associated templates are:


 * name = whatever the referendum is known as
 * title = whatever the referendum official title or description is known as
 * yes = number of yes votes
 * yepct = percentage of yes votes (don't include the % on the percentage number)
 * no = number of no votes
 * nopct = percentage of no votes, (don't include the % on the percentage number)
 * invalid = number of blank and invalidated votes
 * invalidpct = percentage of invalid votes (don't include the % on the percentage number)
 * total = total number of votes cast
 * turnoutpct = 'percentage of total voter turnout (don't include the % on the percentage number)''
 * mapdivision = this text is appended to the "Election results by " reflect the area covered by the map (i.e. county, district, parish, state, etc.)
 * map = file or image name (will be sized to maintain box layout)'
 * notes = footnotes listing source of data, etc.

Before the election
If you are adding an infobox on a referendum to an article prior to election is held, it is a best practice to begin by using the   template. We will be using the results of Oregon Ballot Measure 57 held during the 2008 general election in these examples.

Prior to the election being held, using the following syntax:

...produces the infobox on the right. You can of course change any of the variables as needed to reflect current status prior to the election. This might include having the name be the legislative bill number before the referendum is assigned a measure number and placed on the ballot, or adding of modifying the "notes" section as needed.

Depending on where the election is held, there may not be the map image files for all the examples shown here. They can be produced downloading the Oregon maps here as a template by using the .svg files shown in these examples and (See the setup instructions for more information)

before results come in
Once the polls close on election day/evening, you can switch things such as the "map" variable graphic to one such as   to show the results are not yet know.

Change the following variable:

| map = File:Oregon election results-ELECTION PENDING.svg

Which changes the map to this image:


 * Oregon election results-PENDING.svg

As results come in
As the results come in, the numbers can be added, and updated as new results are known.

Still using the   template name you can change the following varriables:

| yes = 1,000,164 | yespct = 61 | no = 628,673 | nopct = 39 | invalid = 0 | invalidpct = 0 | total = 1,628,837 | map = File:Oregon election results-ELECTION PENDING.svg | notes = Source: KGW News  

Once outcome is known
When the outcome is known, usually once the race has been called by the media, simply change the name of the template depending on the outcome.

Change:



to


 * — if approved by voters

or


 * — if rejected by voters

This will reorder the reuslts putting the winning side on top and adding either the "yes" check mark or "no" x-mark. In our example, we changed the template name being used from "pending" to "approved" in the example shown on the right.

Once results are final
Once the results are final and now using the   template (in this example, you may be using the "rejected" template name depending on the outcome of the election) you can change the following variable:

| yes = 1,058,955 | yespct = 61.39 | no = 665,942 | nopct = 38.61 | invalid = 0 | invalidpct = 85.7 | total = 1,724,897 | turnoutpct = 85.7 | map = File:Oregon 2008 Measure 56.svg | notes = Source: Oregon Secretary of State 

This will change the results to their final numbers, add the appropriate source footnote, and change the map to this image:


 * Oregon 2008 Measure 56.svg

Missing historical results
If the article the infobox is and already existing one, where the results are of a referendum or ballot measure form an election long concluded, but the source information to generate a results map have not yet been located, you can still use these templates, and if available, use (or create) an appropriate image file for the map variable that reflects that the information exists but has not yet been located by WikiQueer editors. The Oregon Ballot Measure 9 (1992) has example of an infobox using such a map file image which uses the image below.


 * Oregon election results-DATA MISSING.svg