Jump to content

Template:Current/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
TemplateData: Adjust param description.
remove find parameters
 
Line 28: Line 28:
* {{para|2}} – overrides the words ''current event''
* {{para|2}} – overrides the words ''current event''
* {{para|date}} – use month name and year, e.g., {{para|date|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}.
* {{para|date}} – use month name and year, e.g., {{para|date|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}.
* {{para|find}}{{snd}}search keywords for {{tl|find sources}} param 1 (double-quoted search); default: page title. See details [[#Details|below]].
* {{para|find2}}{{snd}}search keywords for {{tl|find sources}} param 2 (unquoted search). Alias: <code>unquoted</code>. See [[#Details|below]].


=== Details ===
=== Details ===
Line 35: Line 33:
'''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:'''
: The optional {{para|find}} parameters are available, for adding {{tl|find sources}} links to the message displayed by the template:
: There are two 'find' parameters available to control the presentation and operation of the {{tl|find sources}} links optionally displayed by the template. The find parameters can be used to provide search keywords of your choice to the {{tl|find sources}} links. Use:
:* {{para|find}} to specify keywords for an exact search (double-quoted query); this corresponds to {{tl|find sources}} positional param <code>|1</code>.
:* {{para|find2}} to specify keywords for an unquoted search; this corresponds to {{tl|find sources}} param <code>|2</code>. The alias {{para|unquoted}} may be used instead.

In many, probably most cases, there is no need to use the find parameters, if the most natural search keywords to find news about the current event are the same as the article title. In other cases, especially if the breaking event is about a subtopic of the article title, or if most of the high quality sources are in another language, it may be helpful to include the find parameters.


==Examples==
==Examples==
Line 60: Line 50:
{{cot|bg=lightgreen|align=left|4. {{tlc|current|{{zwsp}}|tropical storm|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}}}
{{cot|bg=lightgreen|align=left|4. {{tlc|current|{{zwsp}}|tropical storm|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}}}
{{current||tropical storm|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
{{current||tropical storm|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
{{cob}}

{{cot|bg=lightgreen|align=left|5. {{tlc|current|{{zwsp}}|find{{=}}Princess Diana|find2{{=}}Paris crash}}}}
{{hatnote|'''Note:''' No example of search results for an actual current event would stay current for very long, so it's impossible to show what results would look like, especially from newspapers, for a search about an actual current event. This example is merely illustrative of the syntax and the general form of the message, but the search results are not typical of what they would be for an actual breaking news event.}}
{{current||find=Princess Diana|find2=Paris crash}}
{{cob}}
{{cob}}


Line 95: Line 80:
"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.",
"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 114: Line 85:
"date",
"date",
"2",
"2",
"1",
"1"
"find",
"find2"
]
]
}
}

Latest revision as of 23:58, 31 August 2024

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.
Check main (article) namespace links

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]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Current in articles based on its 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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Month and yeardate

The month and year that the template was placed (in full). "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}" inserts the current month and year automatically.

Example
January 2013
Auto value
{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}
Linesuggested
Type of event2

Text to replace "current event" in the template

Example
current aviation incident
Stringsuggested
Affected area1

Text to replace the word "article", usually "section"

Example
section
Auto value
section
Stringoptional

See also

[edit]