Electowidget Configuration Reference

The Electowidget configuration is a MediaWiki page in the "Election:" namespace with JSON-formatted configuration information as the content of the page. The configuration is read in as a single associative array or "map" at the root note, with a hierarchy of data contained within.

Formatting rules
Here are the basics of the formatting rules. In each item in the section below, you'll see a data type in parenthesis (e.g. str, bool, map, seq). These are the formatting rules for each type:

 map This is a mapping of key/value pairs (also known as an "associative array" or a "hash"). Example

The key portion is always a str. The "value_x" portion may be any data type (including another map or a seq).  seq An ordered sequence of unnamed values. The "value_x" portion may be any data type (including another seq or a 'map'').  str A quoted string, e.g.  int A positive or negative integer (e.g.  or  )</dd> bool</dt>  or  </dd>

</dl> Please visit the JSON website for exhaustive documentation of JSON syntax.

Configuration parameters
Below is documentation for each of the parameters, which are usually identified by the map keys (e.g. ballot_type). Map keys in parenthesis are not literal map keys, but rather are descriptive of user-defined keys that may be used in that context. In the case of a sequence (seq), the child elements are unnamed parameters.

Note: the configuration parameters list above is semi-automatically generated from the JSON file at Election Config Schema, so any changes need to be also made there in order for changes to be permanent.