Jump to content

User:RobLa/sandbox/wikidata

From Wikipedia, the free encyclopedia

Using #invoke:wd on Wikipedia

[edit]

It is possible to use Wikidata as a compliance database for electoral methods.

For example, wikidata:Q5168347 is the Wikidata item for "Copeland's method". Below is a set of queries for Q5168347

  • Title for Q5168347: Copeland's method
    • First value for wikidata:Property:P5009 ("complies with"): monotonicity criterion
    • Multiple properties for wikidata:Property:P5009 ("complies with"): monotonicity criterion, Condorcet criterion, Majority criterion
    • Multiple properties for wikidata:Property:P5009 ("complies with") w/edit option: monotonicity criterion, Condorcet criterion, Majority criterion Edit this on Wikidata

See "edit source" to see the markup.

More instructions for #invoke:wd (the "Wd" Lua module) on Wikipedia can be found at Module:Wd

Fuller list of electoral methods

[edit]

Here's a few electoral methods from the first few rows of Comparison of electoral systems#Compliance_of_selected_single-winner_methods, along with #invoke:wd calls for "complies with"

  • Approval: monotonicity criterion Edit this on Wikidata
  • Borda: monotonicity criterion Edit this on Wikidata
  • Bucklin: monotonicity criterion Edit this on Wikidata
  • Copeland: monotonicity criterion, Condorcet criterion, Majority criterion Edit this on Wikidata

NOTE - append ?action=purge to the URL of this page to update the list above from Wikidata.