Extension:SecurePoll

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
SecurePoll

Release status: stable

SecurePoll.png
Implementation Special page
Description Extension for elections and surveys
Author(s) Tim Starlingtalk
MediaWiki 1.20
Database changes yes
License GPL v2 or later
Download

Translate the SecurePoll extension if possible

Check usage and version matrix; code metrics
Bugs: list open list all report

The SecurePoll extension is a special page extension for elections, polls and surveys. Currently incomplete, mainly due to the lack of an election setup interface. However it has been used for Wikimedia Foundation Board elections, arbitration committee elections and the Wikimedia license transition vote.

Screenshots[edit | edit source]





Installation[edit | edit source]

Once the SecurePoll extension has been added to the extensions folder, add this line to the LocalSettings.php file:

require_once( "$IP/extensions/SecurePoll/SecurePoll.php" );

Next, run:

mediawiki/maintenance$ php update.php


Creating a Poll[edit | edit source]

Currently, to create a new poll, it's required to:

  1. write an XML file
  2. import it using the import.php CLI command

in the tests folder you can find four example files:

  • 3way-test.xml
  • approval-test.xml
  • radio-range.xml
  • schulze-test.xml

to import a poll run from the cli folder:

extensions/SecurePoll/cli$ php import.php ../test/3way-test.xml

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