Template:Canadian election result/top/doc

TemplateData
{ "description": "The header for a table of the Canadian election results ", "params": { "1": {   "label": "Jurisdiction", "description": "The two-letter code for a province/territory, the three-letter code for a city, or CA for federal.", "type": "string/line", "default": "", "required": true }, "2": {    "label": "Election", "description": "The four-digit year for a general election, or some other text (for example a full date) for a by-election.", "type": "string/line", "default": "", "required": true }, "3": {    "label": "Riding", "description": "The full title of a Wikipedia article about a riding. For example: 'Barrie (electoral district)'", "type": "string/line", "default": "", "required": false }, "4": {    "label": "Riding display", "description": "The displayed text for the riding name, if different from the above. For example: 'Barrie'.", "type": "string/line", "default": "", "required": false }, "by": { "label": "By-election", "description": "Set to 'yes' for by-elections. When using this, give the full date of the by-election rather than just the year.", "type": "string/line", "default": "", "required": false }, "by-link": { "label": "By-election link", "description": "Pagename for by-election.", "type": "string/wiki-page-name", "default": "", "required": false }, "reason": { "label": "Reason", "description": "Text describing reason for by-election, added on line below main title. For example: 'Resignation of Bugs Bunny'", "type": "string/line", "default": "", "required": false }, "percent": { "label": "Add percent column", "description": "Set to 'yes' to add a column with the heading '%'.", "type": "string/line", "default": "", "required": false }, "change": { "label": "Add change column", "description": "Set to 'yes' to add a column with the heading '±%'.", "type": "string/line", "default": "", "required": false }, "expenditures": { "label": "Add expenditures column", "description": "Set to 'yes' to add a column with the heading 'Expenditures'.", "type": "string/line", "default": "", "required": false }, "elected": { "label": "Add elected column", "description": "Set to 'yes' for ridings that elect multiple members off of one ballot to add a column for with the heading 'Elected'.", "type": "string/line", "default": "", "required": false }, "1st": { "label": "Add 1st ballot column", "description": "Set to 'yes' for ridings with multiple-rounds of voting to create a column for the first round of voting.", "type": "string/line", "default": "", "required": false }, "final": { "label": "Add final ballot column", "description": "Set to 'yes' for ridings with multiple-rounds of voting to create a column for the final round of voting.", "type": "string/line", "default": "", "required": false }, "percent2": { "label": "Add second percent column", "description": "Set to 'yes' for ridings with multiple-rounds of voting to add a column for percents for the final round.", "type": "string/line", "default": "", "required": false }, "ballot": { "label": "Mark as multi-ballot riding", "description": "Set to A, B, or C for ridings that run multiple ballots each with a different slate of candidates during each election. It will only change the links in the heading.", "type": "string/line", "default": "", "required": false }, "on": { "label": "Future election date", "description": "The date of an upcoming election “YYYY-MM-DD” (or other machine interpretable date) to add a coloured title line “The YYYY general/municipal election will be held on Month day.” or (if parameter by=yes) “The by-election will be held on Month day, year.”", "type": "string", "default": "", "required": false }, "prelim": { "label": "Note results Preliminary", "description": "Setting any value other than “no” adds the large title line “ ** Preliminary results — Not yet official ** ”", "type": "string/line", "default": "", "required": false }, "collapsed": { "label": "collapsed", "description": "The table is by default collapsible. You can set the initial collapsedness to 'yes', 'auto', or 'no'. These correspond to initial states of 'collapsed', 'autocollapse', or 'none', respectively. For instance, if an article about a riding has a long list of election results from years past, you may want to have the first one display (for the most recent election) but keep the previous election years collapsed.", "type": "string/line", "default": "", "required": false } }}