Difference between revisions of "Template:Election box begin/TemplateData"
Jump to navigation
Jump to search
imported>SPQRobin |
imported>GKFX (Condense for transclusion.) |
||
| (3 intermediate revisions by 2 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", | "description": "A template to start the box for showing election results; part of the 'Election box' series", | ||
| Line 20: | Line 12: | ||
"label": "Candidate title", | "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.", | "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, | "required": false, | ||
"type": "string" | "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 |