更改
→Guidelines: few days, not a day, which does not make much sense
{{Documentation subpage}}
{{Nosubst}}
{{Lua|Module:Unsubst}}
This template displays the tag above and adds articles to [[:Category:Current elections]] or one of its dated subcategories.
===Guidelines===
:* 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 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]]
:''[{{fullurl:Special:Whatlinkshere/Template:{{BASEPAGENAME}}|limit=999&namespace=0}} 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 [[WP:BOT|bot]] if omitted.
====Examples====
{| class="centered wikitable"
! Code !! Result
|-
| {{tlx|current election}}
| {{current election}}
|-
| {{tlx|current election|section|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
| {{current election|section|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
|-
| {{tlx|current election| |a recent election|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
| {{current election||a recent election|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
|-
| {{tlx|current election| | |referendum|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
| {{current election|||referendum|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
|}
===Template data===
{{TemplateDataHeader}}
<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": "a current referendum",
"type": "string",
"default": "a current election"
},
"3": {
"label": "Election type",
"description": "Overrides the word \"election\"",
"example": "referendum",
"type": "string",
"default": "election"
},
"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.",
"format": "inline"
}
</templatedata>
===See also===
*[[Wikipedia:Current event templates]]
*{{tl|Current event}}
<includeonly>{{Sandbox other||
[[Category:Temporal templates]]
[[Category:Election and referendum templates]]
}}</includeonly>
{{Nosubst}}
{{Lua|Module:Unsubst}}
This template displays the tag above and adds articles to [[:Category:Current elections]] or one of its dated subcategories.
===Guidelines===
:* 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 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]]
:''[{{fullurl:Special:Whatlinkshere/Template:{{BASEPAGENAME}}|limit=999&namespace=0}} 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 [[WP:BOT|bot]] if omitted.
====Examples====
{| class="centered wikitable"
! Code !! Result
|-
| {{tlx|current election}}
| {{current election}}
|-
| {{tlx|current election|section|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
| {{current election|section|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
|-
| {{tlx|current election| |a recent election|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
| {{current election||a recent election|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
|-
| {{tlx|current election| | |referendum|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
| {{current election|||referendum|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
|}
===Template data===
{{TemplateDataHeader}}
<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": "a current referendum",
"type": "string",
"default": "a current election"
},
"3": {
"label": "Election type",
"description": "Overrides the word \"election\"",
"example": "referendum",
"type": "string",
"default": "election"
},
"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.",
"format": "inline"
}
</templatedata>
===See also===
*[[Wikipedia:Current event templates]]
*{{tl|Current event}}
<includeonly>{{Sandbox other||
[[Category:Temporal templates]]
[[Category:Election and referendum templates]]
}}</includeonly>