Template:Current election

From Encyclopedia Britannia
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

This template displays the tag above and adds articles to Category:Current elections or one of its dated subcategories.


Check main (article) namespace links


The template takes three parameters:

  • Parameter 1 overrides the word "article"
  • Parameter 2 overrides the words "a current election"
  • Named parameter "date" categorizes into a monthly sub category for ease of maintenance. This will be added by a bot if omitted.


Code Result
{{current election}}
{{current election|section|date=September 2022}}
{{current election| |a current referendum|date=September 2022}}

Template data

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Current election

<templatedata> { "params": { "1": { "label": "Type (typically section)", "description": "Something to replace \"article\" in the template, typically \"section\"", "type": "string", "default": "article" }, "2": { "label": "Type", "description": "Allows modification of the current link instead of displaying \"a current election\"", "example": "Current Aviation Incident", "type": "string", "suggested": true }, "date": { "label": "Date", "description": "The month and year that the article is identified as current.", "example": "May 2015", "type": "date", "required": true } }, "description": "This template generates a tag to indicate that the article documents a current event." } </templatedata>

See also