Difference between revisions of "Template:Current weather event/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zzyzx11
(For convenience, adding a "What links here" link, filtered to just the main article namespace, to the doc pages of temporal templates)
imported>Sawol
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
Use on storm articles or seasonal articles when a tropical cyclone threatens land. Reminds people Wikipedia information may not be up-to-date.  
+
Use for cyclones, tornadoes, floods, etc. Reminds people information on Wikipedia information may not be up-to-date.
  
 
:''[{{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]''
Line 7: Line 7:
 
=== Usage ===
 
=== Usage ===
 
{{#tag:pre|<nowiki>
 
{{#tag:pre|<nowiki>
{{Current tropical cyclone|storm name (and link where appropriate)|Type of tropical cyclone (optional)|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}
+
{{Current weather event|weather|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}
 
</nowiki>|style=overflow: auto}}
 
</nowiki>|style=overflow: auto}}
  
When using this template on a hurricane's page, just include the hurricane's name, as in {{HurricaneWarning|Hurricane Bob}}. When using it on other pages, include a link, as in {{HurricaneWarning|[[Hurricane Bob]]}}.
+
The first parameter is optional.
 +
 
 +
===Example===
 +
*If the weather event is for example, a [[flash flood]], then. . .
 +
 
 +
{{#tag:pre|<nowiki>{{Current weather event|flash flood|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki>|style=overflow:auto}}
 +
 
 +
:*Will display as:
 +
 
 +
 
 +
{{Current weather event|flash flood|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}|nocat=true}}
 +
 
 +
 
 +
===Optional weather advisory link===
 +
The second and third parameters can be used to display an external link to an official weather advisory that is constantly updated with the latest information. It behaves the same as the parameters of {{tl|URL}}:
 +
 +
{{#tag:pre|<nowiki>{{Current weather event|hurricane|http://www.nhc.noaa.gov/|U.S. National Hurricane Center|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki>|style=overflow:auto}}
 +
 
 +
{{Current weather event|hurricane|http://www.nhc.noaa.gov/|U.S. National Hurricane Center|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}nocat=true}}
  
 
=== See also ===
 
=== See also ===
Line 18: Line 36:
 
*{{Tl|Current disaster}}
 
*{{Tl|Current disaster}}
  
<includeonly>
+
<includeonly>{{sandbox other||
 
[[Category:Tropical cyclone templates| Current ambox]]
 
[[Category:Tropical cyclone templates| Current ambox]]
[[Category:Temporal templates|{{PAGENAME}}]]
+
[[Category:Temporal templates]]
[[simple:Template:Current tropical cyclone]]
+
}}</includeonly>
</includeonly>
 

Latest revision as of 06:08, 27 December 2017

Use for cyclones, tornadoes, floods, etc. Reminds people information on Wikipedia information may not be up-to-date.

Check main (article) namespace links

Usage

{{Current weather event|weather|date=January 2026}}

The first parameter is optional.

Example

  • If the weather event is for example, a flash flood, then. . .
{{Current weather event|flash flood|date=January 2026}}
  • Will display as:



Optional weather advisory link

The second and third parameters can be used to display an external link to an official weather advisory that is constantly updated with the latest information. It behaves the same as the parameters of {{URL}}:

{{Current weather event|hurricane|http://www.nhc.noaa.gov/|U.S. National Hurricane Center|date=January 2026}}


See also