User:RobLa/Electowidget

Revision as of 06:46, 30 March 2023 by RobLa (talk | contribs) (Linking to softwareheritage.org and putting in an example of how to invoke the stubby module at Module:Electowidget)

Electowidget is a PHP4 library (initally a plugin for MediaWiki) designed to make it possible to conduct Internet polls and elections using many different voting systems, including the Schulze method, Instant runoff voting, Approval voting, and even plain old Plurality.

It was in active development in 2005, with additional development as late as 2009, but has not seen updates since then. View the Bitbucket source code repository to get the code. (NOTE: Atlassian removed Mercurial support, but thankfully the SoftwareHeritage.org folks created an archive: softwareheritage.org: robla/electowidget).

If development resumes, information will be available at https://electorama.com/electowidget

Example

Here's an example of a call to the very, very crude Electowidget Lua module

{{#invoke:Electowidget|get_data}}

The beginning of the results should look something like the following:

{
 "version":"0.1",
 "candidates":
 {
   "Kiss":
   {
     "display_name":"Bob Kiss (Progressive)"
   },
   "Montroll":
   {
     "display_name":"Andy Montroll (Democrat)"
   },

...and then continue to spill all of the JSON from 2009 Burlington, Vermont Mayoral Election data. As of 2023-03-29, robla doesn't really know Lua.