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

From blackwiki
Jump to navigation Jump to search
imported>Mr. Guye
(→‎Usage: Example)
imported>Sawol
 
(2 intermediate revisions by 2 users not shown)
Line 10: Line 10:
 
</nowiki>|style=overflow: auto}}
 
</nowiki>|style=overflow: auto}}
  
The "weather" parameter is optional.
+
The first parameter is optional.
  
 
===Example===
 
===Example===
*If the weather event is for example, a [[monsoon]], then. . .
+
*If the weather event is for example, a [[flash flood]], then. . .
  
{{#tag:pre|<nowiki>{{Current weather event|monsoon|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki>|style=overflow:auto}}
+
{{#tag:pre|<nowiki>{{Current weather event|flash flood|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki>|style=overflow:auto}}
  
 
:*Will display as:
 
:*Will display as:
  
  
{{Current weather event|monsoon|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}|nocat=true}}
+
{{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 28: 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]]
</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