Extension:Petition

The Petition extension allows the collection of signatures (consisting of name, email, country and an optional personal message) for a petition. It adds Special:Petition which provides a form for signature collection, this is includable (and will normally be used that way). The extension also adds Special:PetitionData where authorized users can download the signatures as a csv file. The extension is initially intended to be deployed on https://wikimediafoundation.org.

User rights

 * allows a user to view the log of signatures, and to download signatures for all petitions. Note that this can include real names and email addresses, so should be granted only to trusted users.

Features

 * Multiple named petitions can be created e.g.  The petition name will be recorded with each signature.
 * A second parameter can be provided which will be recorded with signatures as the 'source'. So for example it is possible to include  on one page and   on another. Then in the results all signatures will be under the "freepuppies" petition, but it will also be possible to see which page the signatures were made on. This makes A/B testing possible.
 * Petition signatures (time and username/IP address) are logged in a private log, only visible to users with the  right. There is also integration with Extension:CheckUser if it is installed on the wiki.

Dependency

 * The CLDR extension is required (to localise country names).

= See also =
 * Extension:CommunityHiring on which this is loosely based.