Difference between revisions of "Template:Election box begin/TemplateData"
Jump to navigation
Jump to search
imported>DixonDBot m (Migrating 1 interwiki links, now provided by Wikidata on d:Q6389434) |
imported>GKFX (Condense for transclusion.) |
||
| (6 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{ | + | {{Format TemplateData|JSON= |
| − | + | { | |
| − | + | "description": "A template to start the box for showing election results; part of the 'Election box' series", | |
| − | + | "params": { | |
| − | + | "title": { | |
| − | + | "label": "Election title", | |
| − | + | "description": "The title of the election to display as a heading above the rest of the box.", | |
| − | { | + | "required": true, |
| − | + | "type": "string" | |
| − | + | }, | |
| − | + | "candidatetitle": { | |
| − | + | "label": "Candidate title", | |
| − | + | "description": "The type of candidate(s) elected depending on the electoral system; it can be e.g. the top candidate on a party list.", | |
| − | + | "required": false, | |
| + | "type": "string" | ||
| + | }, | ||
| + | "float": { | ||
| + | "label": "Float", | ||
| + | "description": "Alignment for floating the table; use left, right, center, or none (default)", | ||
| + | "required": false, | ||
| + | "type": "string" | ||
| + | } | ||
| + | } | ||
| + | } }} | ||
Latest revision as of 09:57, 12 March 2018
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Election box begin
A template to start the box for showing election results; part of the 'Election box' series
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Election title | title | The title of the election to display as a heading above the rest of the box. | String | required |
| Candidate title | candidatetitle | The type of candidate(s) elected depending on the electoral system; it can be e.g. the top candidate on a party list. | String | optional |
| Float | float | Alignment for floating the table; use left, right, center, or none (default) | String | optional |
Test of raw TemplateData output:
A template to start the box for showing election results; part of the 'Election box' series
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Election title | title | The title of the election to display as a heading above the rest of the box. | String | required |
| Candidate title | candidatetitle | The type of candidate(s) elected depending on the electoral system; it can be e.g. the top candidate on a party list. | String | optional |
| Float | float | Alignment for floating the table; use left, right, center, or none (default) | String | optional |