Difference between revisions of "Template:Election box begin/TemplateData"

From blackwiki
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:
{{Documentation subpage}}
+
{{Format TemplateData|JSON=
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
{
 
+
  "description": "A template to start the box for showing election results; part of the 'Election box' series",
== Usage ==
+
  "params": {
See [[Template:Election box]]
+
    "title": {
 
+
      "label": "Election title",
== See also ==
+
      "description": "The title of the election to display as a heading above the rest of the box.",
{{List of Election Box Templates}}
+
      "required": true,
 
+
      "type": "string"
<includeonly>
+
    },
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
    "candidatetitle": {
[[Category:Election and referendum infobox templates|{{PAGENAME}}]]
+
      "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.",
</includeonly>
+
      "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
ParameterDescriptionTypeStatus
Election titletitle
The title of the election to display as a heading above the rest of the box.
Stringrequired
Candidate titlecandidatetitle
The type of candidate(s) elected depending on the electoral system; it can be e.g. the top candidate on a party list.
Stringoptional
Floatfloat
Alignment for floating the table; use left, right, center, or none (default)
Stringoptional
Test of raw TemplateData output:

A template to start the box for showing election results; part of the 'Election box' series

Template parameters

ParameterDescriptionTypeStatus
Election titletitle

The title of the election to display as a heading above the rest of the box.

Stringrequired
Candidate titlecandidatetitle

The type of candidate(s) elected depending on the electoral system; it can be e.g. the top candidate on a party list.

Stringoptional
Floatfloat

Alignment for floating the table; use left, right, center, or none (default)

Stringoptional