User:RobLa/Electowidget: Difference between revisions

Noting that I'm focusing most of his my on ABIF, and mostly on the Python tooling. However, there is a start on a Lua-based implementation over on the "Module:ABIF" page
(Removing categories for now, linking back to electorama for more)
(Noting that I'm focusing most of his my on ABIF, and mostly on the Python tooling. However, there is a start on a Lua-based implementation over on the "Module:ABIF" page)
 
(2 intermediate revisions by the same user not shown)
Line 1:
'''Electowidget''' is a PHP4 library (initally a plugin for MediaWiki) designed to make it possible to conduct Internet polls and elections using many different [[wikipedia:Voting systems|voting systems]], including the [[Wikipedia:Schulze method|Schulze method]], [[Wikipedia:Instant runoff voting|Instant runoff voting]], [[Wikipedia:Approval voting|Approval voting]], and even plain old [[Wikipedia:Plurality|Plurality]].
 
It was in active development in 2005, with additional development as late as 2009, but has not seen updates since then. See<s>View the [https:Bitbucket source code repository<//wiki.electorama.com/wiki/history/Electowidgets> pageto historyget forthe Electowidget]code. (NOTE: Atlassian forremoved olderMercurial informationsupport, orbut viewthankfully the SoftwareHeritage.org folks created an archive: [https://bitbucket-archive.softwareheritage.org/projects/ro/robla/electowidget/.html Bitbucketsoftwareheritage.org: source code repositoryrobla/electowidget] to get the code).
 
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
 
<code>
<nowiki>
{{#invoke:Electowidget|get_data}}
</nowiki>
</code>
 
The beginning of the results should look something like the following:
<code>
{
"version":"0.1",
"candidates":
{
"Kiss":
{
"display_name":"Bob Kiss (Progressive)"
},
"Montroll":
{
"display_name":"Andy Montroll (Democrat)"
},
</code>
...and then continue to spill all of the JSON from [[2009 Burlington, Vermont Mayoral Election data]].
 
As of 2023-09-12, [[User:RobLa]] is focusing most of his work on [[ABIF]], and mostly on the Python tooling. However, there is a start on a Lua-based implementation of ABIF over on the "[[Module:ABIF]]" page.
 
[[Category:Electowidget]]