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

From blackwiki
Jump to navigation Jump to search
imported>MarioProtIV
(broke the template)
Line 8: Line 8:
 
| caption = {{{Track caption|Season summary map}}}
 
| caption = {{{Track caption|Season summary map}}}
  
| header1 = Seasonal boundaries
+
| header1 = Season Statistics
 
| label2 = First system formed
 
| label2 = First system formed
 
| data2 = {{{First system formed|{{{First storm formed}}}}}}  
 
| data2 = {{{First system formed|{{{First storm formed}}}}}}  
 
| label3 = Last system dissipated
 
| label3 = Last system dissipated
 
| data3 = {{{Last system dissipated|{{{Last storm dissipated}}}}}}
 
| data3 = {{{Last system dissipated|{{{Last storm dissipated}}}}}}
| header2 = {{#if:{{{Strongest storm name|}}}|Strongest storm}}
+
| label4 = {{#switch:{{{Basin}}}|NIO=Depressions|Atl|EPac|WPac|SHem|SWI|Aus|SPac=Total disturbances}}
| data2 = {{#if:{{{Strongest storm name|}}}|{{Infobox|child=yes
+
| data4 = {{{Total disturbances|}}}
 +
| label5 = {{#switch:{{{Basin}}}|Atl|EPac=Total depressions|WPac|SHem|SWI=Total depressions|Aus=Tropical lows|NIO=Deep depressions|SPac=Total depressions}}
 +
| data5 = {{{Total depressions|}}}
 +
| label6 = {{#switch:{{{Basin}}}|Atl|EPac|WPac|SHem|SWI=Total storms|NIO=Cyclonic storms|Aus|SPac=Tropical cyclones}}
 +
| data6 = {{{Total storms|}}}
 +
| label7 = {{#switch:{{{Basin}}}|Atl|EPac=Hurricanes|WPac=Typhoons|NIO=Severe cyclonic storms|Tropical cyclones}}
 +
| data7 = {{{Total hurricanes|}}}
 +
 
 +
| label8 = {{#switch:{{{Basin}}}|Atl|EPac=Major hurricanes<br>([[Saffir–Simpson hurricane wind scale|Cat. 3+]])|WPac=Super typhoons|Aus|SHem|SPac=Severe tropical cyclones|NIO=Very severe cyclonic storms|SWI=Intense tropical cyclones}}
 +
| data8 = {{{Total intense|}}}
 +
| label9 = {{#switch:{{{Basin}}}|Atl|EPac=Major hurricanes<br>([[Saffir–Simpson hurricane wind scale|Cat. 3+]])|WPac=Super typhoons|Aus|SHem|SPac=Severe tropical cyclones|NIO=Super cyclonic storms|SWI=Very intense tropical cyclones}}
 +
| data9 = {{{Total super|}}}
 +
 
 +
| label10 = Total fatalities
 +
| data10 = {{#if:{{{Fatalities|}}}|{{{Fatalities}}}|Unknown}}
 +
| label11 = Total damage
 +
| data11 =  {{#ifeq:{{{Damages}}}|None|None|{{#if:{{{Damages|}}}|{{#if:{{{Damagespre|}}}|{{{Damagespre}}}|}} ${{#ifexpr:{{{Damages}}}<1|{{#expr:{{{Damages}}}*1000}},000|{{#ifexpr:{{{Damages}}}<1000|{{{Damages}}} million|{{#expr:{{{Damages}}}/1000}} billion}}}}  ({{{Year}}} [[United States dollar|USD]])|Unknown}}{{#if:{{{Damagespost|}}}|<br /><small>({{{Damagespost}}})</small>|}}}}
 +
 
 +
| header12 = {{#if:{{{Strongest storm name|}}}|Strongest storm}}
 +
| data13 = {{#if:{{{Strongest storm name|}}}|{{Infobox|child=yes
 
   | label1 = Name
 
   | label1 = Name
 
   | data1 = {{{Strongest storm name|}}}
 
   | data1 = {{{Strongest storm name|}}}
   | label2 = &nbsp;•&nbsp;Lowest pressure
+
   | label2 = &nbsp;•&nbsp;Pressure
 
   | data2 = {{#if:{{{Strongest storm pressure|}}}|{{#switch:{{{Basin}}}|Atl|EPac= {{{Strongest storm pressure}}} [[bar (unit)|mbar]] ([[pascal (unit)|hPa]]) ({{#expr:{{{Strongest storm pressure}}}/33.8635 round 2}} [[inch of mercury|inHg]])| {{{Strongest storm pressure}}} [[pascal (unit)|hPa]] ([[bar (unit)|mbar]])}}}}
 
   | data2 = {{#if:{{{Strongest storm pressure|}}}|{{#switch:{{{Basin}}}|Atl|EPac= {{{Strongest storm pressure}}} [[bar (unit)|mbar]] ([[pascal (unit)|hPa]]) ({{#expr:{{{Strongest storm pressure}}}/33.8635 round 2}} [[inch of mercury|inHg]])| {{{Strongest storm pressure}}} [[pascal (unit)|hPa]] ([[bar (unit)|mbar]])}}}}
   | label3 = &nbsp;•&nbsp;Maximum winds
+
   | label3 = &nbsp;•&nbsp;Winds
 
   | data3 = {{#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:{{{Average wind speed|}}}|<br>(<small>{{{Average wind speed}}}-minute sustained</small>)}}}}
 
   | data3 = {{#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:{{{Average wind speed|}}}|<br>(<small>{{{Average wind speed}}}-minute sustained</small>)}}}}
 
}}}}
 
}}}}
  
| header3 = {{#if:{{{Strongest CPac name|}}}|Strongest storm}}
+
| header14 = {{#if:{{{Strongest CPac name|}}}|Strongest storm}}
 
| data15 = {{#if:{{{Strongest CPac name|}}}|{{Infobox|child=yes
 
| data15 = {{#if:{{{Strongest CPac name|}}}|{{Infobox|child=yes
 
   | label1 = Name
 
   | label1 = Name
Line 32: Line 51:
 
   | data3 = {{#if:{{{Strongest CPac winds|}}}|{{#if:{{{Strongest CPac name|}}}|{{#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|}}}|<br>(<small>{{{Average wind speed}}}-minute sustained</small>)}}}}
 
   | data3 = {{#if:{{{Strongest CPac winds|}}}|{{#if:{{{Strongest CPac name|}}}|{{#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|}}}|<br>(<small>{{{Average wind speed}}}-minute sustained</small>)}}}}
 
}}}}
 
}}}}
| header4 = Seasonal statistics
 
| label2 = {{#switch:{{{Basin}}}|NIO=Depressions|Atl|EPac|WPac|SHem|SWI|Aus|SPac=Total disturbances}}
 
| data2 = {{{Total disturbances|}}}
 
| label2 = {{#switch:{{{Basin}}}|Atl|EPac=Total depressions|WPac|SHem|SWI=Total depressions|Aus=Tropical lows|NIO=Deep depressions|SPac=Total depressions}}
 
| data2 = {{{Total depressions|}}}
 
| label3 = {{#switch:{{{Basin}}}|Atl|EPac|WPac|SHem|SWI=Total storms|NIO=Cyclonic storms|Aus|SPac=Tropical cyclones}}
 
| data3 = {{{Total storms|}}}
 
| label4 = {{#switch:{{{Basin}}}|Atl|EPac=Hurricanes|WPac=Typhoons|NIO=Severe cyclonic storms|Tropical cyclones}}
 
| data4 = {{{Total hurricanes|}}}
 
 
| label5 = {{#switch:{{{Basin}}}|Atl|EPac=Major hurricanes<br>([[Saffir–Simpson hurricane wind scale|Cat. 3+]])|WPac=Super typhoons|Aus|SHem|SPac=Severe tropical cyclones|NIO=Very severe cyclonic storms|SWI=Intense tropical cyclones}}
 
| data5 = {{{Total intense|}}}
 
| label10 = {{#switch:{{{Basin}}}|Atl|EPac=Major hurricanes<br>([[Saffir–Simpson hurricane wind scale|Cat. 3+]])|WPac=Super typhoons|Aus|SHem|SPac=Severe tropical cyclones|NIO=Super cyclonic storms|SWI=Very intense tropical cyclones}}
 
| data10 = {{{Total super|}}}
 
 
| label11 = Total fatalities
 
| data11 = {{#if:{{{Fatalities|}}}|{{{Fatalities}}}|Unknown}}
 
| label12 = Total damage
 
| data12 =  {{#ifeq:{{{Damages}}}|None|None|{{#if:{{{Damages|}}}|{{#if:{{{Damagespre|}}}|{{{Damagespre}}}|}} ${{#ifexpr:{{{Damages}}}<1|{{#expr:{{{Damages}}}*1000}},000|{{#ifexpr:{{{Damages}}}<1000|{{{Damages}}} million|{{#expr:{{{Damages}}}/1000}} billion}}}}  ({{{Year}}} [[United States dollar|USD]])|Unknown}}{{#if:{{{Damagespost|}}}|<br /><small>({{{Damagespost}}})</small>|}}}}
 
  
| header13 = {{#ifexpr:{{#if:{{{Season stats|}}}|1|0}}+{{#if:{{{Season list|}}}|1|0}}+{{#if:{{{Season timeline|}}}|1|0}}+{{#if:{{{Atlantic season|}}}|1|0}}+{{#if:{{{East Pacific season|}}}|1|0}}+{{#if:{{{West Pacific season|}}}|1|0}}+{{#if:{{{North Indian season|}}}|1|0}}+{{#if:{{{Australian season|}}}|1|0}}+{{#if:{{{South Indian season|}}}|1|0}}+{{#if:{{{South Pacific season|}}}|1|0}}>0| Related article{{#ifexpr:{{#if:{{{Season stats|}}}|1|0}}+{{#if:{{{Season list|}}}|1|0}}+{{#if:{{{Season timeline|}}}|1|0}}+{{#if:{{{Atlantic season|}}}|1|0}}+{{#if:{{{East Pacific season|}}}|1|0}}+{{#if:{{{West Pacific season|}}}|1|0}}+{{#if:{{{North Indian season|}}}|1|0}}+{{#if:{{{Australian season|}}}|1|0}}+{{#if:{{{South Indian season|}}}|1|0}}+{{#if:{{{South Pacific season|}}}|1|0}}=1||s}}}}
+
| header16 = {{#ifexpr:{{#if:{{{Season stats|}}}|1|0}}+{{#if:{{{Season list|}}}|1|0}}+{{#if:{{{Season timeline|}}}|1|0}}+{{#if:{{{Atlantic season|}}}|1|0}}+{{#if:{{{East Pacific season|}}}|1|0}}+{{#if:{{{West Pacific season|}}}|1|0}}+{{#if:{{{North Indian season|}}}|1|0}}+{{#if:{{{Australian season|}}}|1|0}}+{{#if:{{{South Indian season|}}}|1|0}}+{{#if:{{{South Pacific season|}}}|1|0}}>0| Related article{{#ifexpr:{{#if:{{{Season stats|}}}|1|0}}+{{#if:{{{Season list|}}}|1|0}}+{{#if:{{{Season timeline|}}}|1|0}}+{{#if:{{{Atlantic season|}}}|1|0}}+{{#if:{{{East Pacific season|}}}|1|0}}+{{#if:{{{West Pacific season|}}}|1|0}}+{{#if:{{{North Indian season|}}}|1|0}}+{{#if:{{{Australian season|}}}|1|0}}+{{#if:{{{South Indian season|}}}|1|0}}+{{#if:{{{South Pacific season|}}}|1|0}}=1||s}}}}
  
| data14 =<div style="text-align: left;"> {{#if:{{{Season stats|}}}|
+
| data17 =<div style="text-align: left;"> {{#if:{{{Season stats|}}}|
 
* [[{{{Season stats|}}}]]}}{{#if:{{{Season list|}}}|
 
* [[{{{Season stats|}}}]]}}{{#if:{{{Season list|}}}|
 
* [[{{{Season list|}}}]]}}{{#if:{{{Season timeline|}}}|
 
* [[{{{Season list|}}}]]}}{{#if:{{{Season timeline|}}}|

Revision as of 01:03, 19 January 2017

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