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

From blackwiki
Jump to navigation Jump to search
imported>GermanJoe
(→‎TemplateData: + maint. cat)
imported>GKFX
(Condense for transclusion.)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
{{Format TemplateData|JSON=
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
 
 
== Usage ==
 
See [[Template:Election box]]
 
 
 
== TemplateData ==
 
{{TemplateDataHeader}}
 
<templatedata>
 
 
{
 
{
 
   "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 15: Line 7:
 
       "description": "The title of the election to display as a heading above the rest of the box.",
 
       "description": "The title of the election to display as a heading above the rest of the box.",
 
       "required": true,
 
       "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"
 
       "type": "string"
 
     }
 
     }
 
   }
 
   }
}
+
} }}
</templatedata>
 
 
 
== See also ==
 
{{List of Election Box Templates}}
 
 
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Election and referendum infobox templates|{{PAGENAME}}]]
 
 
 
</includeonly>
 

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