Difference between revisions of "Template:Infobox tropical cyclone season/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Thumperward
(tweak)
Line 1: Line 1:
 
{| class="infobox vevent" {{#if:{{{align|}}}|align="{{{align}}}"}} style="width: 22em"
 
{| class="infobox vevent" {{#if:{{{align|}}}|align="{{{align}}}"}} style="width: 22em"
 
|+ class="summary" | {{{name|{{PAGENAME}}}}}
 
|+ class="summary" | {{{name|{{PAGENAME}}}}}
{{#if:{{{Basin<includeonly>|</includeonly>}}}
+
{{#if:{{{Basin<includeonly>|</includeonly>}}}|<!--New code is here-->{{#ifexist:media:{{{Track|}}}|
|<!--New code is here-->{{#ifexist:media:{{{Track|}}}|
+
{{!}} colspan=2 style="text-align: center" {{!}} [[file:{{{Track}}}|frameless|300px|alt={{{Track alt|}}}|Season summary map]]
{{!}} colspan=2 style="text-align: center" {{!}} [[file:{{{Track}}}|300px|alt={{{Track alt|}}}|Season summary map]]
 
 
{{!}}-
 
{{!}}-
 
{{!}} colspan=2 style="text-align: center; background-color: #f0f0f0" {{!}} Season summary map
 
{{!}} colspan=2 style="text-align: center; background-color: #f0f0f0" {{!}} Season summary map
Line 17: Line 16:
 
}}
 
}}
 
! Strongest storm
 
! Strongest storm
{{!}} {{{Strongest storm name}}} – {{#if:{{{Strongest storm pressure|}}}|{{#switch:{{{Basin}}}|Atl|EPac= {{{Strongest storm pressure}}} [[bar (unit)|mbar]] ([[pascal (unit)|hPa]]) ({{#expr:{{{Strongest storm pressure}}}/33.85 round 2}} [[inHg]])| {{{Strongest storm pressure}}} [[pascal (unit)|hPa]] ([[bar (unit)|mbar]])}},}} {{#if:{{{Strongest storm winds|}}}|{{#switch:{{{Basin}}}|Atl|EPac={{#expr:((1.151*{{{Strongest storm winds}}})/5 round 0)*5}} mph ({{#expr:((1.852*{{{Strongest storm winds}}})/5 round 0)*5}} km/h)|{{#expr:((1.852*{{{Strongest storm winds}}})/5 round 0)*5}} km/h ({{#expr:((1.151*{{{Strongest storm winds}}})/5 round 0)*5}} mph)}}}}{{#if:{{{Strongest CPac name|}}}|<br />{{{Strongest CPac name}}} – {{#if:{{{Strongest CPac pressure|}}}|{{{Strongest CPac pressure}}} [[bar (unit)|mbar]] ([[pascal (unit)|hPa]]) ({{#expr:{{{Strongest CPac pressure}}}/33.85 round 2}} [[inHg]]), |}}{{#expr:((1.151*{{{Strongest CPac winds}}})/5 round 0)*5}} mph ({{#expr:((1.852*{{{Strongest CPac winds}}})/5 round 0)*5}} km/h)|}} {{#if:{{{Average wind speed|}}}|(<small>{{{Average wind speed}}}-minute sustained</small>)|}}
+
{{!}} {{{Strongest storm name}}}&nbsp;– {{#if:{{{Strongest storm pressure|}}}|{{#switch:{{{Basin}}}|Atl|EPac= {{{Strongest storm pressure}}} [[bar (unit)|mbar]] ([[pascal (unit)|hPa]]) ({{#expr:{{{Strongest storm pressure}}}/33.85 round 2}} [[inHg]])| {{{Strongest storm pressure}}} [[pascal (unit)|hPa]] ([[bar (unit)|mbar]])}},}} {{#if:{{{Strongest storm winds|}}}|{{#switch:{{{Basin}}}|Atl|EPac={{#expr:((1.151*{{{Strongest storm winds}}})/5 round 0)*5}} mph ({{#expr:((1.852*{{{Strongest storm winds}}})/5 round 0)*5}} km/h)|{{#expr:((1.852*{{{Strongest storm winds}}})/5 round 0)*5}} km/h ({{#expr:((1.151*{{{Strongest storm winds}}})/5 round 0)*5}} mph)}}}}{{#if:{{{Strongest CPac name|}}}|<br />{{{Strongest CPac name}}}&nbsp;– {{#if:{{{Strongest CPac pressure|}}}|{{{Strongest CPac pressure}}} [[bar (unit)|mbar]] ([[pascal (unit)|hPa]]) ({{#expr:{{{Strongest CPac pressure}}}/33.85 round 2}} [[inHg]]), |}}{{#expr:((1.151*{{{Strongest CPac winds}}})/5 round 0)*5}} mph ({{#expr:((1.852*{{{Strongest CPac winds}}})/5 round 0)*5}} km/h)|}} {{#if:{{{Average wind speed|}}}|(<small>{{{Average wind speed}}}-minute sustained</small>)|}}
 
{{!}}-
 
{{!}}-
 
{{#if:{{{Total disturbances|}}}|
 
{{#if:{{{Total disturbances|}}}|
Line 40: Line 39:
 
}}
 
}}
 
{{#if:{{{Total intense|}}}|
 
{{#if:{{{Total intense|}}}|
! {{#switch:{{{Basin}}}|Atl|EPac=Major hurricanes ([[Saffir-Simpson Hurricane Scale|Cat. 3+]])|WPac=Super typhoons|Aus|SHem|SPac=Severe tropical cyclones|NIO=Very severe cyclonic storms|SWI=Intense cyclones}}
+
! {{#switch:{{{Basin}}}|Atl|EPac=Major hurricanes ([[Saffir–Simpson Hurricane Scale|Cat. 3+]])|WPac=Super typhoons|Aus|SHem|SPac=Severe tropical cyclones|NIO=Very severe cyclonic storms|SWI=Intense tropical cyclones}}
 
{{!}} {{{Total intense}}}
 
{{!}} {{{Total intense}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
{{#if:{{{Total super|}}}|
 
{{#if:{{{Total super|}}}|
! {{#switch:{{{Basin}}}|Atl|EPac=Major hurricanes ([[Saffir-Simpson Hurricane Scale|Cat. 3+]])|WPac=Super typhoons|Aus|SHem|SPac=Severe tropical cyclones|NIO=Super cyclonic storms|SWI=Very Intense Cyclone}}
+
! {{#switch:{{{Basin}}}|Atl|EPac=Major hurricanes ([[Saffir–Simpson Hurricane Scale|Cat. 3+]])|WPac=Super typhoons|Aus|SHem|SPac=Severe tropical cyclones|NIO=Super cyclonic storms|SWI=Very intense tropical cyclone}}
 
{{!}} {{{Total super}}}
 
{{!}} {{{Total super}}}
 
{{!}}-
 
{{!}}-
Line 56: Line 55:
 
{{!}}-
 
{{!}}-
 
{{hide in print|1=
 
{{hide in print|1=
<tr align=center style="background-color: #f0f0f0; border-top:1px solid #aaa"><td colspan=2>'''[[List of {{#switch:{{{Basin}}}|Atl=Atlantic hurricane|EPac=Pacific hurricane|WPac=Pacific typhoon|NIO=North Indian cyclone|Aus=Australian region cyclone|SWI=South-West Indian Ocean cyclone|SPac=South Pacific cyclone|SHem=Southern Hemisphere cyclone}} seasons|{{#switch:{{{Basin}}}|Atl=Atlantic hurricane|EPac=Pacific hurricane|WPac=Pacific typhoon|NIO=North Indian Ocean cyclone|Aus=Australian region cyclone|SWI=South-West Indian Ocean cyclone|SPac=South Pacific cyclone|SHem=Southern Hemisphere cyclone}} seasons]]'''<br />{{{five seasons}}}
+
<tr align=center style="background-color: #f0f0f0; border-top:1px solid #aaa"><td colspan=2>'''[[{{#switch:{{{Basin}}}|Atl=Atlantic hurricane|EPac=Pacific hurricane|WPac=Pacific typhoon|NIO=North Indian Ocean tropical cyclone|Aus=Australian region tropical cyclone|SWI=South-West Indian Ocean tropical cyclone|SPac=South Pacific tropical cyclone}} season|{{#switch:{{{Basin}}}|Atl=Atlantic hurricane|EPac=Pacific hurricane|WPac=Pacific typhoon|NIO=North Indian Ocean cyclone|Aus=Australian region cyclone|SWI=South-West Indian Ocean cyclone|SPac=South Pacific cyclone}} seasons]]'''<br>{{{five seasons}}}
 
{{!}}-
 
{{!}}-
 
{{#ifexpr:{{#if:{{{Season stats|}}}|1|0}}+{{#if:{{{Season list|}}}|1|0}}+{{#if:{{{Season timeline|}}}|1|0}}+{{#if:{{{Australian season|}}}|1|0}}+{{#if:{{{South Indian season|}}}|1|0}}+{{#if:{{{South Pacific season|}}}|1|0}}>0|
 
{{#ifexpr:{{#if:{{{Season stats|}}}|1|0}}+{{#if:{{{Season list|}}}|1|0}}+{{#if:{{{Season timeline|}}}|1|0}}+{{#if:{{{Australian season|}}}|1|0}}+{{#if:{{{South Indian season|}}}|1|0}}+{{#if:{{{South Pacific season|}}}|1|0}}>0|
Line 73: Line 72:
 
|<!--Old code is here--><includeonly>{{#ifeq:{{NAMESPACE}}|User||[[Category:Incomplete hurricane infoboxes]]}}</includeonly>
 
|<!--Old code is here--><includeonly>{{#ifeq:{{NAMESPACE}}|User||[[Category:Incomplete hurricane infoboxes]]}}</includeonly>
 
{{#if:{{{nopic}}}|{{#ifexist:media:{{{image|{{{name|{{PAGENAME}}}}} map.png}}}|
 
{{#if:{{{nopic}}}|{{#ifexist:media:{{{image|{{{name|{{PAGENAME}}}}} map.png}}}|
{{!}} colspan=2 style="text-align: center" {{!}} [[file:{{{image|{{{name|{{PAGENAME}}}}} map.png}}}|250px|alt={{{alt|}}}|Season summary map]]
+
{{!}} colspan=2 style="text-align: center" {{!}} [[file:{{{image|{{{name|{{PAGENAME}}}}} map.png}}}|frameless|alt={{{alt|}}}|Season summary map]]
 
{{!}}-
 
{{!}}-
 
{{!}} colspan=2 style="text-align: center; background-color: #f0f0f0" {{!}} Season summary map
 
{{!}} colspan=2 style="text-align: center; background-color: #f0f0f0" {{!}} Season summary map
Line 79: Line 78:
 
}}
 
}}
 
}}
 
}}
{{#if:{{{piconly|}}}|
 
 
! First storm formed
 
! First storm formed
 
{{!}} {{{first storm formed}}}
 
{{!}} {{{first storm formed}}}
{{!}}
+
{{!}}-
}}
+
{{#if:{{{last storm dissipated|}}}|
{{#if:{{{piconly|}}}|{{#if:{{{last storm dissipated|}}}|
 
 
! Last storm dissipated
 
! Last storm dissipated
 
{{!}} {{{last storm dissipated}}}
 
{{!}} {{{last storm dissipated}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
}}
 
{{#if:{{{piconly|}}}|
 
 
! Strongest storm
 
! Strongest storm
 
{{!}} {{{strongest storm}}}
 
{{!}} {{{strongest storm}}}
{{!}}
+
{{!}}-
}}
 
{{#if:{{{piconly|}}}|
 
 
! style="background-color:#f0f0f0" {{!}} Total storms
 
! style="background-color:#f0f0f0" {{!}} Total storms
 
{{!}} {{{total storms}}}
 
{{!}} {{{total storms}}}
{{!}}
+
{{!}}-
}}
+
! Major storms ([[Saffir–Simpson Hurricane Scale|Cat. 3+]])
{{#if:{{{piconly|}}}|
 
! Major storms ([[Saffir-Simpson Hurricane Scale|Cat. 3+]])
 
 
{{!}} {{{major storms}}}
 
{{!}} {{{major storms}}}
{{!}}
+
{{!}}-
}}
 
{{#if:{{{piconly|}}}|
 
 
! Total damage
 
! Total damage
 
{{!}} {{{total damages}}}
 
{{!}} {{{total damages}}}
{{!}}
+
{{!}}-
}}
 
{{#if:{{{piconly|}}}|
 
 
! Total fatalities
 
! Total fatalities
 
{{!}} {{{total fatalities}}}
 
{{!}} {{{total fatalities}}}
{{!}}
+
{{!}}-
}}
 
{{#if:{{{piconly|}}}|
 
{{!}} colspan=2 style="text-align: center; white-space: nowrap" {{!}}
 
{{!}}
 
}}
 
{{#if:{{{piconly|}}}|
 
 
{{!}} colspan=2 style="text-align: center; background-color: #f0f0f0; border-top: 1px solid #aaa" {{!}} '''[[List of {{{basin}}} seasons|{{{basin}}} seasons]]'''<br />{{{five seasons}}}
 
{{!}} colspan=2 style="text-align: center; background-color: #f0f0f0; border-top: 1px solid #aaa" {{!}} '''[[List of {{{basin}}} seasons|{{{basin}}} seasons]]'''<br />{{{five seasons}}}
 
{{!}}-
 
{{!}}-
}}
 
 
}}
 
}}
 
|}<includeonly>{{#if:{{{piconly}}}| |[[Category:Hurricane articles without infoboxes]]}}{{#if:{{{nopic}}}| |[[Category:Hurricane articles needing a picture]]}}</includeonly><noinclude>{{documentation}}</noinclude>
 
|}<includeonly>{{#if:{{{piconly}}}| |[[Category:Hurricane articles without infoboxes]]}}{{#if:{{{nopic}}}| |[[Category:Hurricane articles needing a picture]]}}</includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 21:47, 19 February 2013

Infobox tropical cyclone season/sandbox
First storm formed {{{First storm formed}}}
Strongest storm {{{Strongest storm name}}} –
Total fatalities Unknown
Total damage Unknown
seasons
{{{five seasons}}}
Template documentation[view] [edit] [history] [purge]

Usage

Parameter Type Description Example
{{{Basin}}} Mandatory A abbreviation denoting what basin is represented Atl, EPac, WPac, NIO, SHem, SWI, SPac, SAtl and Aus currently defined
{{{Year}}} Optional The year of the season, if a multiple year span is covered, use the most recent 2005
{{{Track}}} Optional The location of the track map, if present. 2005 Atlantic hurricane season map.png
{{{Track alt}}} Needed if {{{Track}}} is given Alt text for the track map, for visually impaired readers; see Wikipedia:Alternative text for images, particularly its Maps section. Tracks of about 28 tropical storms, including 15 hurricanes, cluster in the Caribbean and Gulf of Mexico, with some scattered in the Atlantic. Seven hurricanes are major, and most of them make landfall on the U.S. Gulf coast.
{{{First storm formed}}} Mandatory Formation date (generally tropical storm-strength) of first storm (full date) Use {{start date}} {{start date|2005|06|08}}
{{{Last storm dissipated}}} Mandatory Dissipation date of last storm (full date). Use {{end date}} {{end date|2006|01|06}}
{{{Strongest storm name}}} Mandatory The name of the strongest storm(s). Wikilink if appropriate. Wilma
{{{Strongest storm pressure}}} Optional The minimum pressure of the strongest storm in mbar/hPa. Must be a number. 882
{{{Strongest storm winds}}} Optional The maximum windspeed of the strongest storm in knots. Must be a number. 160
{{{Average wind speed}}} Optional The length of time used to find the average measurement of the storm's maximum sustained winds. 10
{{{Total disturbances}}} Optional For the NIO this is defined as the number of Depressions in a season. For the rest of the basins it is the number of disturbances. For the Atl and NEPac basins, it is the number of Potential tropical cyclones. 48
{{{Total depressions}}} Optional For the NIO this is defined as the number of Deep Depressions in a season for other basins this is the total number of depressions in a season 31
{{{Total storms}}} Optional The total number of storms of at least TS strength 28
{{{Total hurricanes}}} Optional The total number of hurricane-strength systems 15
{{{Total intense}}} Optional For all basins, the number of major storms that formed. (Major hurricanes, super typhoons, severe and intense cyclones) 7
{{{Fatalities}}} Optional Total number of people killed (directly and indirectly) during the season. Use a range of values if necessary. If not used gives "Unknown". ≥2,280
{{{Damages}}} Optional Total damages from the season. This is expressed in millions of dollars in the year of the season. If not used gives "Unknown". If used must be a number. 120000
{{{fiveseasons}}} Mandatory Links to the next and previous 2 seasons around this one. In most cases this is just the previous 2 years and the following 2 years, with the current year in the center. For multi-season articles it takes a little more thought. 2002, 2003, 2004, 2005, 2006
{{{Strongest CPac name}}} Optional For Pacific hurricane seasons only, the name of the strongest CPac storm. Ioke
{{{Strongest CPac pressure}}} Optional As for the strongest storm, for the CPac only 915
{{{Strongest CPac winds}}} Optional As for the strongest storm, for the CPac only 140

Calculations

  • Pressure: If {{{basin}}} is one of Atl or EPac the template will calculate the pressure in inHg from the pressure in mbar and quote to 2dp.
  • Windspeeds: The template takes parameters here in terms of knots and returns mph and km/h (the order depending on the basin). It returns these to the nearest 5.

Microformat

Template:UF-hcal

Tracking category