Extension:SecurePoll/fr

L'extension SecurePoll est une extension de page spéciale pour les élections, les sondages et les enquêtes. Il est utilisé pour les élections du Conseil de la Fondation Wikimedia et les élections du comité d'arbitrage, et a été utilisé pour le vote de transition de licence Wikimedia entre autres.

Installation
Vous devrez également attribuer le nouveau droit d'utilisateur " " à un groupe d'utilisateurs. Vous devrez également attribuer le nouveau droit d'utilisateur " " à un groupe d'utilisateurs.

Cela permet à tous les administrateurs de créer un sondage, mais cela ne permet pas à tous les administrateurs d'administrer un sondage particulier (y compris la modification d'un sondage, l'affichage des données utilisateur, etc.). Les administrateurs individuels pour un sondage particulier sont définis lors de la création ou de la modification d'un sondage. Seuls les membres du groupe " " peuvent administrer un sondage. To create this group, add the following to your :

Then assign a particular user to the  group via Special:UserRights. Note that election admins can see voter data, so only trusted users should be assigned to this group. If they are removed from the group, they will no longer be able to administer any elections.

Create a new poll
There are two ways to create a new poll: manually create an XML file and import it, or use the poll creation interface at Special:SecurePoll.

Manually
To create a poll manually, it is required to:


 * 1) write an XML file
 * 2) import it using the   command-line interface command

In the test folder you can find four example files:


 * info
 * info
 * info
 * info

To import a poll, run the following from the cli folder:

To import a poll using docker, run the following from the cli folder:

Via the web interface
A user with the  right can create a new poll via the link at the bottom of Special:SecurePoll.

To create a new poll, fill in the mandatory fields in the create form. Special care may be needed with the following fields:


 * When adding poll admins, only members of the  group are allowed. If   is set to , it will be logged whenever an admin is added to or removed from a poll. The logs can be viewed at Special:SecurePollLog.
 * To create an encrypted poll, select the radio for the encryption method. If you choose GnuPG, generate a (public) encryption key and a (private) decryption key. Enter the encryption key into the create form, and keep the private key safe somewhere offline (you will need it for tallying, once the election has finished). A detailed example can be found here.

Now visit Special:SecurePoll and you will see your poll.

Edit an existing poll
To edit a poll, you must be an admin of the particular poll. From Special:SecurePoll, click on the Edit link for the poll you want to edit.

Before an election has begun, anything about the election can be edited. After an election has begun, some fields can no longer be edited.

Edit who can vote in a poll
To edit who can vote in a poll, you must be an admin of the particular poll. From Special:SecurePoll, click on the Voter Eligibility link for the poll.

Translate a poll
To translate a poll, you must be an admin of the particular poll. From Special:SecurePoll, click on the Translate link for the poll you want to translate.

See a list of voters
Anyone can see a list of voters, unless transparency features were disabled when the poll was created.

Admins of a particular poll can see a list of voters, along with private information that may help to identify duplicate voters (e.g. IP addresses, user agent information, shared cookies). If  is set to , it will be logged whenever an admin views private data. The logs can be viewed at Special:SecurePollLog.

Admins may strike any votes that they believe to be duplicates.

Tally a poll
To tally a poll, you must be an admin of the particular poll. From Special:SecurePoll, click on the Tally link for the poll you want to tally.

If the poll has been tallied before, the results will be shown on the page. If not, or if you want to re-tally, there is a form for starting a new tally.


 * If the poll is unencrypted, click on the tally button.
 * If the poll is encrypted, you may need to enter more information. For example, if you used GnuPG, enter the (private) decryption key and click on the tally button. If an encrypted poll has many votes, it may take a long time to tally. You may need to check back later for the results.

Now visit Special:SecurePoll and you will see your poll.

(STV) Tallying
To enable STV tallying please add the below configuration value to LocalSettings.php

More information on single transferable votes (STV) can be found here.

General algorithm implementation (source)


 * 1) Compute the quota.
 * 2) Assign votes to candidates by first preferences.
 * 3) Declare as winners all candidates who received at least the quota.
 * 4) Transfer the excess votes from winners to hopefuls.
 * 5) Repeat 3–4 until no new candidates are elected. (Under some systems, votes could initially be transferred in this step to prior winners or losers. This might affect the outcome.)

If all seats have winners, the process is complete. Otherwise:


 * 1) Eliminate one or more candidates, typically either the lowest candidate or all candidates whose combined votes are less than the vote of the lowest remaining candidate.
 * 2) Transfer the votes of the losers to remaining hopeful candidates.
 * 3) Repeat 3–7 until all seats are full.

The quota we will use (step 1) is the Droop quota (source):

The method for transferring votes from elected or eliminated candidates will be the Meek method:


 * Meek Method

Tallying (JobRunner)
Make sure to create a scheduled job for this task or execute the task manually.
 * Tallies can processed via a scheduled job Manual:Job queue
 * Tallies can also be processed by executing the tallying script manually:

To execute a tally, run the following from the cli folder:

To execute a tally using docker, run the following from the cli folder: