Difference between revisions of "Template:Current election/doc"
Jump to navigation
Jump to search
imported>Danski454 (changed template data) |
imported>Danski454 (add template data) |
||
| Line 48: | Line 48: | ||
"type": "string", | "type": "string", | ||
"default": "a current election" | "default": "a current election" | ||
| + | }, | ||
| + | "3": { | ||
| + | "label": "Election type", | ||
| + | "description": "the type of election", | ||
| + | "example": "referendum", | ||
| + | "type": "string", | ||
| + | "default": "election" | ||
}, | }, | ||
"date": { | "date": { | ||
| Line 55: | Line 62: | ||
"type": "date", | "type": "date", | ||
"required": true | "required": true | ||
| − | } | + | }, |
| + | "": {} | ||
}, | }, | ||
| − | "description": "This template generates a tag to indicate that the article documents a current event." | + | "description": "This template generates a tag to indicate that the article documents a current event.", |
| + | "format": "inline" | ||
} | } | ||
</templatedata> | </templatedata> | ||
Revision as of 09:13, 22 October 2018
| This is a documentation subpage for Template:Current election. It contains usage information, categories and other content that is not part of the original template page. |
| This template should not be substituted. |
| This template uses Lua: |
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 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.
- 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
- 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"
- 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=November 2025}}
|
| ||
{{current election| |a current referendum|date=November 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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Type (typically section) | 1 | Something to replace "article" in the template, typically "section"
| String | optional |
| Type | 2 | Allows modification of the current link instead of displaying "a current election"
| String | optional |
| Election type | 3 | the type of election
| String | optional |
| Date | date | The month and year that the article is identified as current.
| Date | required |
| no description | Unknown | optional | |
See also