Template:Current/doc: Difference between revisions
Add find params, revamp →Parameters: and →Usage: sections. |
Move →Guidelines: down as subtemplate of →Usage: , and update TemplateData. |
||
Line 6: | Line 6: | ||
{{Lua|Module:Unsubst}} |
{{Lua|Module:Unsubst}} |
||
This template displays the message above and adds the article to |
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. |
It may be used in tandem with {{t|Current event editnotice}} where applicable. |
||
== |
==Usage== |
||
⚫ | |||
⚫ | |||
⚫ | |||
===Guidelines=== |
|||
* Every article on Wikipedia has a [[Wikipedia:General disclaimer|general disclaimer]] that the article contents may not be accurate. |
* 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). |
* 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). |
||
Line 17: | Line 22: | ||
* 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]]. |
* 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]'' |
||
==Usage== |
|||
⚫ | |||
⚫ | |||
⚫ | |||
==Parameters== |
==Parameters== |
||
Line 34: | Line 34: | ||
'''Date:''' |
'''Date:''' |
||
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. |
: 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. |
||
'''Find parameters:''' |
'''Find parameters:''' |
||
Line 73: | Line 73: | ||
"autovalue": "section", |
"autovalue": "section", |
||
"example": "section" |
"example": "section" |
||
}, |
|||
"find": { |
|||
"label": "Find sources keywords", |
|||
"description": "Search string for 'find sources' template. May be one or more words. Set to value 'none' to suppress 'find sources' output.", |
|||
"type": "string", |
|||
"required": false, |
|||
"autovalue": "empty string", |
|||
"example": "Your keyword list" |
|||
}, |
|||
"find2": { |
|||
"label": "Find2", |
|||
"description": "Search keywords for 'find sources' unquoted search.", |
|||
"type": "string", |
|||
"required": false |
|||
} |
} |
||
}, |
}, |
||
Line 78: | Line 92: | ||
"date", |
"date", |
||
"2", |
"2", |
||
"1" |
"1", |
||
"find", |
|||
"find2" |
|||
] |
] |
||
} |
} |
Revision as of 03:13, 25 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
{{current}}
{{current|section}}
{{current||current election}}
Guidelines
- 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
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
.|find=
– search keywords for {{find sources}} param 1 (double-quoted search); default: page title. See details below.|find2=
– search keywords for {{find sources}} param 2 (unquoted search). Alias:unquoted
. See below.
Details
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.
Find parameters:
- The optional
|find=
parameters are available, for adding {{find sources}} links to the message displayed by the template: - There are two 'find' parameters available to control the presentation and operation of the {{find sources}} links optionally displayed by the template. The find parameters can be used to provide search keywords of your choice to the {{find sources}} links. Use:
|find=
to specify keywords for an exact search (double-quoted query); this corresponds to {{find sources}} positional param|1
.|find2=
to specify keywords for an unquoted search; this corresponds to {{find sources}} param|2
. The alias|unquoted=
may be used instead.
Examples
Code | Result | ||
---|---|---|---|
{{current}}
|
| ||
{{current|section|date=January 2025}}
|
| ||
{{current||current election|date=January 2025}}
|
|
TemplateData
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 |
Find sources keywords | find | Search string for 'find sources' template. May be one or more words. Set to value 'none' to suppress 'find sources' output.
| String | optional |
Find2 | find2 | Search keywords for 'find sources' unquoted search. | String | optional |
See also
- Wikipedia:Current event templates
- {{Currentdate}}
- {{Speculation}}
- {{In use}}
- {{Recentism}}
- {{Update}}