Difference between revisions of "Template:Current election/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Ammarpad
(→‎Guidelines: few days, not a day, which does not make much sense)
 
Line 7: Line 7:
 
===Guidelines===
 
===Guidelines===
 
:* Note that every article on Wikipedia has a [[Wikipedia:General disclaimer|General disclaimer]] indicating that the article contents may not be accurate.
 
:* Note that every article on Wikipedia has a [[Wikipedia:General disclaimer|General disclaimer]] indicating that the article contents may not be accurate.
:* Generally it is expected that this template and its closely related templates will appear on an article for less than a day; occasionally longer.
+
:* Generally it is expected that this template and its closely related templates will appear on an article for a few days; occasionally longer.
 
:* If you desire that an article be noticed as a topic about or related to a significant current event, see [[Wikipedia:How the Current events page works]], and also [[Wikipedia:In the news/Candidates]]
 
:* If you desire that an article be noticed as a topic about or related to a significant current event, see [[Wikipedia:How the Current events page works]], and also [[Wikipedia:In the news/Candidates]]
 
:''[{{fullurl:Special:Whatlinkshere/Template:{{BASEPAGENAME}}|limit=999&namespace=0}} Check main (article) namespace links]''
 
:''[{{fullurl:Special:Whatlinkshere/Template:{{BASEPAGENAME}}|limit=999&namespace=0}} Check main (article) namespace links]''

Latest revision as of 06:13, 29 June 2020

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.

Examples

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

Template data

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 Current election

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