Template:Electowidget Schema Config (generated)

Root node:(map) - An election configuration is a mapping with a series of parameters, as defined below: : REQUIRED (str) - Version of the election configuration format being used. Valid values: " "Format version number for all versions of Electowidget as of this writing (October, 2005)

 : (bool) - 'true' if a link should be displayed to allow logged-in users to edit their vote.  : (str) - Controls the appearance and behavior of the voting user interface. Valid values: " "Bar chart with adjustable bars. Requires JavaScript for optimal use, though essential functionality is accessible without JavaScript by entering a rating in the provided text entry field. Specify minimum and maximum ratings using  and   parameters, and control the size of the sliding scale using  </dd>" "</dt>Series of descrete ratings selectable by simple radio button control. Specify minimum and maximum ratings using  and   parameters, and set the labels for each rating using  .</dd>" "</dt>Allow users to check (set rating to 1) or uncheck (set rating to 0) for each candidate. Ignores  and   parameters. Useful for conducting a pure Approval election.</dd>" "</dt>Allow users to select (set rating to 1) a single candidate, deselecting all other candidates (setting ratings to 0). Ignores  and   parameters. Useful for conducting a traditional plurality election.</dd>" "</dt>Graphical bar chart with stars representing the ratings. Requires JavaScript for optimal use, though essential functionality is accessible without JavaScript by selecting a rating from the provided drop-down selection box. Specify maximum rating using  parameter. Ignores  parameter.</dd></dl></li>

 : (int) - Used when  is set to 'barscale' to specify the number of pixels per rating. For example, if min_rating is set to 0, and max_rating is set to 10, setting barscale_tickpx to 2 will cause adjustable portion of the barscale to be 20 pixels wide.</li>  : (map) - Key/value List of candidates in the election. The key portion is an internal identifier for the candidate used by the program which sometimes shows up in the user interface (though this will hopefully be rare). Set the key to something readable, but short.<ul> : (map) - <ul> : (str) - URL to a page describing the candidate</li>

 : (str) - Name of the candidate as you would like it displayed in the ballots and results.</li>  : (str) - Other fields may be defined by adding field definitions to the  mapping.</li></ul></li></ul></li>  : (bool) - If, count ballots cast by logged in users.</li>

 : (str) - Description of the election, which appears at the top of the initial election entry page.</li> <li> : (bool) - If, display the parameters for this election on the initial election entry page. At the time of this writing, this is woefully incomplete, but will at least return the list of candidates.</li> <li> : (bool) - If, calculate and display the results of the election with ballots currently on hand.</li>

<li> : (seq) - List of election methods to use in tallying the results. Each item of the list is a mapping which has parameters specific to that particular method.<ul><li>(map) - Key/value list of parameters for this particular method.<ul><li> : REQUIRED (str) - The election tallying method. is recommended by the author of this software. Valid values: <dl><dt>" "</dt><dd>Approval voting</dd><dt>" "</dt><dd>Chain multiple methods using this election type. For example, one can define a chain such that the Smith method is used, and Minmax(wv) settles any ties should there be multiple Smith method winners. Use the 'methods' parameter described below to provide an ordered list of methods.</dd><dt>" "</dt><dd>Copeland method</dd><dt>" "</dt><dd>Definite Majority Choice method. This particular implementation implements it as Minmax(Total Approval) as an implementation convenience. </dd><dt>" "</dt><dd>Instant runoff voting</dd><dt>" "</dt><dd>Minmax(wv) - use 'margins' to measure victory strength.</dd><dt>" "</dt><dd>Minmax(wv) - use 'winning votes' to measure victory strength.</dd><dt>" "</dt><dd>Plurality</dd><dt>" "</dt><dd>Range Voting</dd><dt>" "</dt><dd>Schulze method - use 'margins' to measure victory strength.</dd><dt>" "</dt><dd>Schulze method - use 'winning votes' to measure victory strength.</dd><dt>" "</dt><dd>Schulze method - use 'winning votes' to measure victory strength, and use 'margins' to resolve ties.</dd><dt>" "</dt><dd>Choses the member(s) of the Smith set</dd></dl></li>

<li> : (seq) - Used in conjunction with the  method. This defines an ordered sequence of methods to use in calculating the winner.<ul><li>(map) - <ul><li> : (str) - Any valid election method type. See documentation for 'type' parameter under 'election_methods' for more information.</li></ul></li></ul></li></ul></li></ul></li>

<li> : (map) - List of important features/characteristics useful in comparing candidates. 'Political party' is an example of a candidate characteristic important while voting. These features will be listed in a separate column from the candidates' names, and will be sortable.<ul><li> : (map) - Parameters for a particular feature.<ul><li> : (str) - The label for use in the column header.</li> <li> : (str"                       "desc": "A field identifier for an optional URL associated with a particular feature.  The identifier defined here can be used in the (candidate key) mapping defined above.) - </li></ul></li></ul></li>

<li> : (int) - Maximum rating that voters may assign to a candidate. Not respected by all ballot types.</li> <li> : (int) - Maximum rating that voters may assign to a candidate. Not respected by all ballot types.</li> <li> : (map) - Set of labels to use when the  value for   is chosen.<ul><li> : (str) - label associated with this particular numerical rating.</li></ul></li></ul>