This is a documentation subpage for Template:Election box. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Preview message: Transclusion count updated automatically (see documentation). |
This template uses Lua: |
These election box templates are for displaying a list of candidates and results for any election. They produce tables like this (figures are just examples; they are not meant to work mathematically):
Party | Candidate | Votes | % | ±% | |
---|---|---|---|---|---|
Conservative | John Smith | 101,549 | 63.8 | +6.2 | |
Labour | Jane Johnson | 52,201 | 31.6 | −8.2 | |
Majority | 153,700 | 72.4 | +5.4 | ||
Turnout | 9,999 | 50.0 | +10.0 | ||
Registered electors | 319,998 | +3.6 |
TemplateData for Election box
fatal JSON error: mw.text.jsonDecode: Syntax error
{ "params":{}, "description": "The template {{Election box}} is not itself a real template. Instead, there are a family of other templates which together create a results table. See this template's page for how to use <span class="nowrap">{{</span>Election box begin<span class="nowrap">}}</span>, <span class="nowrap">{{</span>Election box candidate<span class="nowrap">}}</span>, and others to create an election results table." }