Template:Current/doc: Difference between revisions
Added tl |
remove find parameters |
||
(26 intermediate revisions by 15 users not shown) | |||
Line 1: | Line 1: | ||
{{redirect|Template:Flux|the template for formatting fluctuations|Template:Fluctuation formatter}} |
|||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
{{Nosubst}} |
{{Nosubst}} |
||
{{Twinkle standard installation}} |
{{Twinkle standard installation}} |
||
{{Template shortcuts|flux|live}} |
<!-- {{Template shortcuts|flux|live}} not a good idea, these are unprotected --> |
||
{{Lua|Module:Unsubst}} |
{{Lua|Module:Unsubst}} |
||
This template displays the |
This template displays the message above and adds the article to [[:Category:Current events]]. The template is automatically removed by [[Wikipedia:Bots/Requests for approval/Yapperbot 2|Yapperbot]] once an article has not been edited for five hours. |
||
It may be used in tandem with {{t|Current event editnotice}} where applicable. |
|||
==Usage== |
|||
{{tlc|current}}{{br}} |
|||
{{tlc|current|section}}{{br}} |
|||
{{tlc|current|{{zwsp}}|current election}} |
|||
===Guidelines=== |
===Guidelines=== |
||
* Every article on Wikipedia has a [[Wikipedia:General disclaimer|general disclaimer]] that the article contents may not be accurate. |
|||
* As an advisory to editors, the template may optionally be used on those extraordinary occasions that many editors (perhaps a hundred or more) edit an article on the same day (for example, in the case of natural disasters or other breaking news). |
|||
* It is not intended to be used to mark an article that merely has recent news articles about the topic; if it were, hundreds of thousands of articles would have this template, with no informational consequence. |
|||
* This and closely related templates are generally expected to appear on an article for less than a day, sometimes longer. |
|||
* If you would like an article on a significant current event to be noticed, please see [[Wikipedia:How the Current events page works]] and [[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]'' |
||
== |
==Parameters== |
||
The template takes three parameters: |
The template takes two positional (unnamed) and three named parameters; all are optional: |
||
* |
* {{para|1}} – overrides the word ''article'' |
||
* |
* {{para|2}} – overrides the words ''current event'' |
||
* {{para|date}} – use month name and year, e.g., {{para|date|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}. |
|||
* Named parameter "date" categorizes into a monthly sub category for ease of maintenance. This will be added by a [[WP:BOT|bot]] if omitted. |
|||
=== |
=== Details === |
||
{{Current/examples}} |
|||
'''Date:''' |
|||
===Template data=== |
|||
: Use month name and year only; for example: {{para|date|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}. If omitted, this will be added by a [[WP:BOT|bot]]. Categorizes the page into a monthly sub-category of [[:Category:Current events]] for ease of navigation and maintenance. |
|||
{{TemplateDataHeader}} |
|||
==Examples== |
|||
{{cot|bg=lightgreen|align=left|1. {{tlc|current}}}} |
|||
{{current}} |
|||
{{cob}} |
|||
{{cot|bg=lightgreen|align=left|2. {{tlc|current|section|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}}} |
|||
{{current|section|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} |
|||
{{cob}} |
|||
{{cot|bg=lightgreen|align=left|3. {{tlc|current|{{zwsp}}|current election}}}} |
|||
{{current||current election}} |
|||
{{cob}} |
|||
{{cot|bg=lightgreen|align=left|4. {{tlc|current|{{zwsp}}|tropical storm|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}}} |
|||
{{current||tropical storm|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} |
|||
{{cob}} |
|||
== TemplateData == |
|||
{{TemplateData header}} |
|||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
"description": "Use this template to indicate that an article documents a current event, that information may change rapidly as the event progresses and that initial news reports may be unreliable.", |
|||
"format": "inline", |
|||
"params": { |
"params": { |
||
" |
"date": { |
||
"label": " |
"label": "Month and year", |
||
"description": " |
"description": "The month and year that the template was placed (in full). \"{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}\" inserts the current month and year automatically.", |
||
"type": " |
"type": "line", |
||
"autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", |
|||
"default": "article" |
|||
⚫ | |||
"suggested": true |
|||
}, |
}, |
||
"2": { |
"2": { |
||
"label": "Type", |
"label": "Type of event", |
||
"description": " |
"description": "Text to replace \"current event\" in the template", |
||
⚫ | |||
"type": "string", |
"type": "string", |
||
"example": "current aviation incident", |
|||
"suggested": true |
"suggested": true |
||
}, |
}, |
||
" |
"1": { |
||
"label": " |
"label": "Affected area", |
||
"description": " |
"description": "Text to replace the word \"article\", usually \"section\"", |
||
" |
"type": "string", |
||
" |
"autovalue": "section", |
||
" |
"example": "section" |
||
} |
} |
||
}, |
}, |
||
"paramOrder": [ |
|||
"description": "This template generates a tag to indicate that the article documents a current event." |
|||
"date", |
|||
"2", |
|||
"1" |
|||
] |
|||
} |
} |
||
</templatedata> |
</templatedata> |
||
==See also== |
|||
*[[Wikipedia:Current event templates]] |
* [[Wikipedia:Current event templates]] |
||
*{{tl|Currentdate}} |
* {{tl|Currentdate}} |
||
*{{tl|Speculation}} |
* {{tl|Speculation}} |
||
*{{tl|In use}} |
* {{tl|In use}} |
||
*{{tl|Recentism}} |
* {{tl|Recentism}} |
||
* {{tl|Update}} |
|||
*{{tl|Update}} |
|||
<includeonly>{{Sandbox other|| |
<includeonly>{{Sandbox other|| |
Latest revision as of 23:58, 31 August 2024
This is a documentation subpage for Template:Current. It may contain usage information, categories and other content that is not part of the original template page. |
This template should not be substituted. |
Any breaking changes to this template, including moving it or nominating it for deletion, must be communicated in advance to Twinkle's users and maintainers at Wikipedia talk:Twinkle. The standard installation of Twinkle relies on this template. Thank you. |
This template uses Lua: |
This template displays the message above and adds the article to Category:Current events. The template is automatically removed by Yapperbot once an article has not been edited for five hours.
It may be used in tandem with {{Current event editnotice}} where applicable.
Usage
[edit]{{current}}
{{current|section}}
{{current||current election}}
Guidelines
[edit]- Every article on Wikipedia has a general disclaimer that the article contents may not be accurate.
- As an advisory to editors, the template may optionally be used on those extraordinary occasions that many editors (perhaps a hundred or more) edit an article on the same day (for example, in the case of natural disasters or other breaking news).
- It is not intended to be used to mark an article that merely has recent news articles about the topic; if it were, hundreds of thousands of articles would have this template, with no informational consequence.
- This and closely related templates are generally expected to appear on an article for less than a day, sometimes longer.
- If you would like an article on a significant current event to be noticed, please see Wikipedia:How the Current events page works and Wikipedia:In the news/Candidates.
Parameters
[edit]The template takes two positional (unnamed) and three named parameters; all are optional:
|1=
– overrides the word article|2=
– overrides the words current event|date=
– use month name and year, e.g.,|date=January 2025
.
Details
[edit]Date:
- Use month name and year only; for example:
|date=January 2025
. If omitted, this will be added by a bot. Categorizes the page into a monthly sub-category of Category:Current events for ease of navigation and maintenance.
Examples
[edit]1.
{{current}} | ||
---|---|---|
|
2.
{{current|section|date=January 2025}} | ||
---|---|---|
|
3.
{{current||current election}} | ||
---|---|---|
|
4.
{{current||tropical storm|date=January 2025}} | ||
---|---|---|
|
TemplateData
[edit]TemplateData for Current
Use this template to indicate that an article documents a current event, that information may change rapidly as the event progresses and that initial news reports may be unreliable.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Month and year | date | The month and year that the template was placed (in full). "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}" inserts the current month and year automatically.
| Line | suggested |
Type of event | 2 | Text to replace "current event" in the template
| String | suggested |
Affected area | 1 | Text to replace the word "article", usually "section"
| String | optional |
See also
[edit]- Wikipedia:Current event templates
- {{Currentdate}}
- {{Speculation}}
- {{In use}}
- {{Recentism}}
- {{Update}}