Module:Mayor/Elections/doc

Election Database Editing Tips
If you use the tool below to get the data, please pay special attention to the "nil" fields that you might need to replace, and double check on the output UI for safety.

Get Last Election Data Get Current Election Data

"Get Last Election Data" is for getting the results of the last election
 * It should replace the in-progress table for the same year, if exists.
 * The "last" values are grabbed from the in-progress table, if exists - not from the API.

"Get Current Election Data" is for getting the results for an ongoing election
 * The "last" values must be inputted manually, according to what displayed in-game. For candidates without "last elected" shown, this field can be left as "nil".
 * To reduce error, you must check the generated Mayor Election UI with in-game after punching the information!

Election Pages Editing Tips
Every election is recorded on a page named Mayor Election/Year #, indexed with the year that the mayor election started ("Election Year"). Note that a mayor election ends in the following year, when the new mayor is elected.

A good reference is similar pages that was created: Category:Mayor UI Subpages.

Election Starts
During a mayor election, use "Get Current Election Data" to update the database. Then, go to the latest subpage on Mayor Election/Events. Create an election year entry as follows (replace # with the Election Year) (click to copy). Copy the starting page of the Election UI from the game, and paste it under Election. (For higher retaining accuracy, do not use Mayor Election UI for this step unless you cannot provide a direct UI copy.)  Election Year #

Election Result
Ongoing.

Election Ends
After a mayor election, use "Get Last Election Data" to update the database. Then, copy the Mayor UI from the game, and paste it under Election Result. After copying UI, remember to disable the link of the ballot box (use none; none,). (For higher retaining accuracy, do not use Mayor UI for this step unless you cannot provide a direct UI copy.)

Alpha Network
Everything is the same, except the subpages are located on Mayor Election/Alpha instead of /Events.