Difference between revisions of "Template:Current/doc"

From blackwiki
Jump to navigation Jump to search
(sl:Predloga:Aktualno)
imported>Sdkb
 
(55 intermediate revisions by 39 users not shown)
Line 1: Line 1:
{{documentation subpage}}
+
{{redirect|Template:Flux|the template for formatting fluctuations|Template:Fluctuation formatter}}
This template displays the tag above and adds articles to [[:category:Current events]] or one of its dated subcategories.
+
{{Documentation subpage}}
 +
{{Nosubst}}
 +
{{Twinkle standard installation}}
 +
{{Template shortcuts|flux|live}}
 +
{{Lua|Module:Unsubst}}
  
{{template shortcut|flux|live}}
+
This template displays the tag above and adds articles to [[:Category:Current events]] or one of its dated subcategories.
  
 
==Guidelines==
 
==Guidelines==
'''Do not [[WP:SUBST|subst]].'''
 
 
:*Note that every article on Wikipedia has a [[Wikipedia:General disclaimer|General disclaimer]] indicating that the article contents may not be accurate.
 
:*Note that every article on Wikipedia has a [[Wikipedia:General disclaimer|General disclaimer]] indicating that the article contents may not be accurate.
:* As an advisory to editors, the template may optionally be used in 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 in 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.
 
:* 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.
:* Generally it is expected that this template and its closely related templates will appear on an article for perhaps a day or so, occasionally several days.
+
:* 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]]
 
:* 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==
 
==Usage==
The template takes three parameters
+
The template takes three parameters:
 
* Parameter 1 overrides the word "article"
 
* Parameter 1 overrides the word "article"
* Parameter 2 overrides the word "event"
+
* Parameter 2 overrides the words "current event"
 
* Named parameter "date" categorizes into a monthly sub category for ease of maintenance. This will be added by a [[WP:BOT|bot]] if omitted.
 
* 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===
 
===Examples===
 +
{{Current/examples}}
  
{{Template:Current/examples}}
+
==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 \"current event\"",
 +
"example": "current aviation incident",
 +
"type": "string",
 +
"suggested": true
 +
},
 +
"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."
 +
}
 +
</templatedata>
 +
 
 +
==Redirects==
 +
* {{tl|Current section}}
  
 
==See also==
 
==See also==
*[[Wikipedia:Current event templates]]
+
* [[Wikipedia:Current event templates]]
*{{tl|current related}}
+
* {{tl|Currentdate}}
*{{tl|current disaster}}
+
* {{tl|Speculation}}
*{{tl|current person}}
+
* {{tl|In use}}
*{{tl|recent death}}
+
* {{tl|Recentism}}
*{{tl|current spaceflight}}
+
* {{tl|Update}}
*{{tl|current sport}}
 
*{{tl|recentism}}
 
*{{tl|update}}
 
*{{tl|inuse}}
 
*{{tl|crystal}}
 
 
 
<includeonly>
 
[[Category:Temporal templates|{{PAGENAME}}]]
 
  
[[ar:قالب:حدث جاري]]
+
<includeonly>{{Sandbox other||
[[be-x-old:Шаблён:Актуальная падзея]]
+
[[Category:Temporal templates]]
[[bg:Шаблон:Актуално]]
+
}}</includeonly>
[[cs:Šablona:Aktuální]]
 
[[da:Skabelon:Aktuel]]
 
<!--[[en:Template:Current]]-->
 
[[es:Plantilla:Actualidad]]
 
[[eu:Txantiloi:Eguneratu]]
 
[[fa:الگو:رخداد تازه]]
 
[[fr:Modèle:Événement récent]]
 
[[he:תבנית:אקטואלי]]
 
[[hi:साँचा:चालू घटना]]
 
[[ia:Patrono:Currente]]
 
[[id:Templat:Aktualitas]]
 
[[it:Template:Incorso]]
 
[[ja:Template:現在進行]]
 
[[ka:თარგი:მიმდინარე]]
 
[[ko:틀:최신]]
 
[[mk:Шаблон:Актуелност]]
 
[[nl:Sjabloon:Nieuws]]
 
[[no:mal:Pågående]]
 
[[pl:Szablon:Aktualne]]
 
[[pt:Predefinição:Evento atual]]
 
[[ro:Format:În desfăşurare]]
 
[[fi:Malline:Ajankohtaista]]
 
[[sl:Predloga:Aktualno]]
 
[[sv:Mall:Pågående]]
 
[[tr:Şablon:Güncel]]
 
[[uk:Шаблон:Поточна подія]]
 
[[vi:Tiêu bản:Đang diễn ra]]
 
[[yi:מוסטער:אין די נייעס]]
 
[[zh:Template:Current]]
 
</includeonly>
 

Latest revision as of 06:15, 14 October 2020

Template:Template shortcuts

This template displays the tag above and adds articles to Category:Current events 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.
  • As an advisory to editors, the template may optionally be used in 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.
  • 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 "current event"
  • 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}}
{{current|section|date=November 2025}}
{{current||current election|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

This template generates a tag to indicate that the article documents a current event.

Template parameters

ParameterDescriptionTypeStatus
Type (typically section)1

Something to replace "article" in the template, typically "section"

Default
article
Stringoptional
Type2

Allows modification of the current link instead of displaying "current event"

Example
current aviation incident
Stringsuggested
Datedate

The month and year that the article is identified as current.

Example
May 2015
Daterequired

Redirects

See also