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

From blackwiki
Jump to navigation Jump to search
imported>Beland
(Update - now covers all weather events)
imported>Sawol
 
(5 intermediate revisions by 3 users not shown)
Line 7: Line 7:
 
=== Usage ===
 
=== Usage ===
 
{{#tag:pre|<nowiki>
 
{{#tag:pre|<nowiki>
{{Current weather event|[[event name]]|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}
+
{{Current weather event|weather|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}
 
</nowiki>|style=overflow: auto}}
 
</nowiki>|style=overflow: auto}}
  
You only need the event name if it's being documented on multiple articles, and you want to link to the main one (e.g. from a city article or list of disasters).
+
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