Template:Current election/doc

Revision as of 20:24, 29 August 2023 by imported>Disciplemattias (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

[[Category:Template documentation pages{{#translation:}}]]

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

Guidelines

Check main (article) namespace links

Usage

The template takes three parameters:

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

election

Code Result
{{current election}}
{{current election|section|date=July 2026}}
{{current election| |a recent election|date=July 2026}}
{{current election| | |referendum|date=July 2026}}

===Presidential candidate[f]===

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Current election

[[Category:TemplateData documentation{{#translation:}}]]

This template generates a tag to indicate that the article documents a current event.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Type (typically section)1

Something to replace "article" in the template, typically "section"

Default
article
Stringoptional
Type2

Allows modification of the current link instead of displaying "a current election"

Default
a current election
Example
a current referendum
Stringoptional
Election type3

Overrides the word "election"

Default
election
Example
referendum
Stringoptional
Datedate

The month and year that the article is identified as current.

Example
May 2015
Daterequired

See also