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

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Jason Rees
(Add code to deal with the gusts issue)
 
(92 intermediate revisions by 28 users not shown)
Line 1: Line 1:
{| class="infobox" <!--
+
{{Infobox
=================================================================
+
| bodystyle = border-collapse:collapse; width:280px
  Infobox - to display current storm/hurricane information
+
| abovestyle = font-size:12pt; background-color:#EEE; padding:0; border-bottom:#aaa 1px solid;
=================================================================
+
| above = <table style="width:100%; margin:0; border-collapse:collapse;">
                            (see "NOTES" at bottom)
+
<tr><td style="padding:0.3em; text-align:center;border-right:1px #aaa solid;">{{{name}}}</td><td style="width:24px; text-align:center; border-left:1px #aaa solid; padding:0.3em; background: #{{Storm colour|{{#if:{{{AUScategory|}}}|{{{AUScategory}}}|{{#if:{{{MFRcategory|}}}|{{{MFRcategory}}}|{{#if:{{{IMDcategory|}}}|{{{IMDcategory}}}|{{#if:{{{JMAcategory|}}}|{{{JMAcategory}}}|{{{category}}}}}}}}}}}}};"><includeonly>{{Tropical cyclone status icons|category={{#if:{{{AUScategory|}}}|{{{AUScategory}}}|{{#if:{{{MFRcategory|}}}|{{{MFRcategory}}}|{{#if:{{{IMDcategory|}}}|{{{IMDcategory}}}|{{#if:{{{JMAcategory|}}}|{{{JMAcategory}}}|{{{category}}}}}}}}}}}|type={{#if:{{{AUScategory|}}}|{{{AUScategory}}}|{{#if:{{{MFRtype|}}}|{{{MFRtype}}}|{{#if:{{{IMDcategory|}}}|{{{IMDcategory}}}|{{#if:{{{JMAtype|}}}|{{{JMAtype}}}|{{{type}}}}}}}}}}}}}</includeonly><noinclude>TC</noinclude></td></tr></table>
--
+
| labelstyle = padding-left:0.3em; border-top: #aaa 1px solid;
--> style="border-collapse:collapse; margin:0 0 1em 1em; float:right; width:280px"
+
| datastyle = width:80%; border-top: #aaa 1px solid;
|-
 
! colspan=3 style="font-size:12pt; background-color:#EEEEEE; border-bottom:1px solid #AAAAAA; padding:0; text-align:center;" |
 
{| cellpadding="5" cellspacing="0" border="0" style="background-color:#EEEEEE; width:100%;" <!--see NOTE W2 below-->
 
|-
 
! style="width:24px;" |
 
! style="text-align:center;" | '''{{{name}}}'''
 
! style="border-left:1px solid #AAAAAA; width:24px;background: #{{Storm colour|{{{category}}}}}; text-align:center;" | <includeonly>{{hurricane status small|category={{{category}}}|type={{{type}}}}}</includeonly><noinclude>TC</noinclude>
 
|}
 
|- colspan=3
 
 
<!-- ------------------ ROW OF IMAGES ------------------ -->
 
<!-- ------------------ ROW OF IMAGES ------------------ -->
| colspan=3 style="text-align:center;" |<table
+
| image = {{#if:{{both|{{{image|}}}|{{{track|}}} }}
width=280 border="0" cellspacing=0 cellpadding=4 style="background-color:#F9F9F9; border-collapse:collapse; font-size:94%; line-height:125%;">
+
|<table style="width:100%; border-collapse:collapse; font-size:94%; line-height:125%;">
{{ #ifeq: {{{track|<noinclude>u</noinclude>}}}|{{{track|u}}}
+
<tr style="vertical-align:top">
|<tr width=280 style="padding-left:0px; padding-right:9px; padding-top:3px; padding-bottom:3px;"><td style="text-align:center;"><noinclude><br/><br/></noinclude>[[File:{{#if:{{{image|<noinclude>-</noinclude>}}}|{{{image|Temporary cyclone north.svg}}}|Temporary cyclone north.svg}}|{{{image_width|130px}}}|{{{image}}}]]<br><small>{{{image_caption|Satellite image}}}</small></td>
+
<td style="text-align:center;">{{#invoke:InfoboxImage|InfoboxImage|image={{{image|Temporary cyclone north.svg}}}|size={{{image_width|130px}}} }}<div>{{{image_caption|Satellite image}}}</div></td>
<td style="text-align:center;">{{{track_topcaption|<br>}}}[[File:{{{track|Temporary cyclone north.svg}}}|{{{track_width|170px}}}|{{{track}}}]]<br><small>{{{track_caption|Forecast map}}}</small></td></tr>
+
<td style="text-align:center;">{{#invoke:InfoboxImage|InfoboxImage|image={{{track|Temporary cyclone north.svg}}}|size={{{track_width|170px}}} }}<div>{{{track_caption|Forecast map}}}</div></td>
|<!--else, no track-map --
+
</tr></table>
--><tr colspan=2 style="padding-top:2px; padding-bottom:3px;">
+
|{{#if:{{{image|}}}
<td>[[File:{{{image|Temporary cyclone north.svg}}}|{{{image_width|130px}}}|{{{image}}}]]<br><small>{{{image_caption|Satellite image}}}</small></td></tr>
+
|{{#invoke:InfoboxImage|InfoboxImage|image={{{image|Temporary cyclone north.svg}}}|size={{{image_width|130px}}} }}
}}<!--end ifeq track|u -->
+
}}{{#if:{{{track|}}}
</table><!--end images table-->
+
|{{#invoke:InfoboxImage|InfoboxImage|image={{{track|Temporary cyclone north.svg}}}|size={{{track_width|170px}}} }}
 +
}} }}
 +
| caption = {{#if:{{both|{{{image|}}}|{{{track|}}} }}
 +
  |<!-- captioned above -->
 +
  |{{#if:{{{image|}}}|{{{image_caption|Satellite image}}}}}{{#if:{{{track|}}}|{{{track_caption|Forecast map}}}}}
 +
}}
 +
 
<!-- ------------------------------ row for AUScategory etc. -->
 
<!-- ------------------------------ row for AUScategory etc. -->
|- colspan=2
+
| subheaderstyle = border-top:#aaa 1px solid; border-bottom:#aaa 1px solid;
{{#if:{{{AUScategory|}}}
+
| subheader1 = {{#if:{{{AUScategory|}}}|<div style="width:100%; height:100%;background: #{{Storm colour|{{{AUScategory}}}}};">'''Current storm status'''<br />{{#switch:{{{AUScategory}}}
  |<tr><th colspan="2" style="text-align:center;border-top:1px solid #AAAAAA; border-right:1px solid #aaa; background: #{{Storm colour|{{{category}}}}};"><includeonly>'''Current storm status'''<br />{{#switch:{{{AUScategory}}}
+
  |Aus1='''Category 1 tropical'''
  |cat1=Category 1
+
  |Aus2='''Category 2 tropical'''
  |cat2=Category 2
+
  |Aus3='''Category 3 severe tropical'''
  |cat3=Category 3
+
  |Aus4='''Category 4 severe tropical'''
  |cat4=Category 4
+
  |Aus5='''Category 5 severe tropical'''
  |cat5=Category 5
 
 
  |storm=
 
  |storm=
  |depression=
+
  |low='''Tropical low'''
  |unknown=Unknown strength
+
|spdepression='''Tropical depression'''
 +
  |unknown='''Unknown strength'''
 
  |#default=
 
  |#default=
 
}}{{#switch:{{{MFRtype}}}
 
}}{{#switch:{{{MFRtype}}}
  |DI=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Tropical disturbance]]
+
  |DI='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Tropical disturbance]]'''
  |TD=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Tropical depression]]
+
  |TD='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Tropical depression]]'''
  |MTS=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Moderate tropical storm]]
+
  |MTS='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Moderate tropical storm]]'''
  |STS=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Severe tropical storm]]
+
  |STS='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Severe tropical storm]]'''
  |TC=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Tropical cyclone]]
+
  |TC='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Tropical cyclone]]'''
  |ITC=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Intense tropical cyclone]]
+
  |ITC='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Intense tropical cyclone]]'''
  |VITC=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Very intense tropical cyclone]]
+
  |VITC='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Very intense tropical cyclone]]'''
 
  |#default=
 
  |#default=
 
}} {{#switch:{{{MFRcategory}}}
 
}} {{#switch:{{{MFRcategory}}}
  |DI=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Tropical disturbance]]
+
  |DI='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Tropical disturbance]]'''
  |TD=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Tropical depression]]
+
  |TD='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Tropical depression]]'''
  |MTS=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Moderate tropical storm]]
+
  |MTS='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Moderate tropical storm]]'''
  |STS=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Severe tropical storm]]
+
  |STS='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Severe tropical storm]]'''
  |TC=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Tropical cyclone]]
+
  |TC='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Tropical cyclone]]'''
  |ITC=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Intense tropical cyclone]]
+
  |ITC='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Intense tropical cyclone]]'''
  |VITC=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Very intense tropical cyclone]]
+
  |VITC='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Very intense tropical cyclone]]'''
 
  |#default=
 
  |#default=
 
}} {{#switch:{{{JMAtype}}}
 
}} {{#switch:{{{JMAtype}}}
  |tropical storm=[[Tropical_cyclone#Intensity_classifications|Tropical storm]]
+
  |tropical storm='''[[Tropical_cyclone#Intensity_classifications|Tropical storm]]'''
  |subtropical storm=[[Tropical_cyclone#Intensity_classifications|Subtropical storm]]
+
  |subtropical storm='''[[Tropical_cyclone#Intensity_classifications|Subtropical storm]]'''
  |tropical depression=[[Tropical_cyclone#Intensity_classifications|Tropical depression]]
+
  |tropical depression='''[[Tropical_cyclone#Intensity_classifications|Tropical depression]]'''
  |subtropical depression=[[Tropical_cyclone#Intensity_classifications|Subtropical depression]]
+
  |subtropical depression='''[[Tropical_cyclone#Intensity_classifications|Subtropical depression]]'''
  |typhoon=Typhoon
+
  |typhoon='''Typhoon'''
  |STS=Severe tropical storm
+
  |STS='''Severe tropical storm'''
 
  |#default=
 
  |#default=
 
}} {{#switch:{{{JMAcategory}}}
 
}} {{#switch:{{{JMAcategory}}}
  |typhoon=Typhoon
+
  |typhoon='''Typhoon'''
  |storm=Tropical storm
+
  |storm='''Tropical storm'''
  |depression=Tropical depression
+
  |depression='''Tropical depression'''
  |unknown=Unknown strength
+
  |unknown='''Unknown strength'''
  |STS=Severe tropical storm
+
  |STS='''Severe tropical storm'''
 
  |#default=
 
  |#default=
 
}} {{#switch:{{{IMDtype}}}
 
}} {{#switch:{{{IMDtype}}}
  |D=[[Tropical_cyclone#Intensity_classifications|Depression]]
+
  |D='''[[Tropical_cyclone#Intensity_classifications|Depression]]'''
  |DD=[[Tropical_cyclone#Intensity_classifications|Deep depression]]
+
  |DD='''[[Tropical_cyclone#Intensity_classifications|Deep depression]]'''
  |CS=[[Tropical_cyclone#Intensity_classifications|Cyclonic storm]]
+
  |CS='''[[Tropical_cyclone#Intensity_classifications|Cyclonic storm]]'''
  |SCS=[[Tropical_cyclone#Intensity_classifications|Severe cyclonic storm]]
+
  |SCS='''[[Tropical_cyclone#Intensity_classifications|Severe cyclonic storm]]'''
  |VSCS=Very severe cyclonic storm
+
  |VSCS='''Very severe cyclonic storm'''
  |SUCS=Super cyclonic storm
+
|ESCS='''Extremely severe cyclonic storm'''
 +
  |SUCS='''Super cyclonic storm'''
 
  |#default=
 
  |#default=
 
}} {{#switch:{{{IMDcategory}}}
 
}} {{#switch:{{{IMDcategory}}}
  |D=Depression
+
  |D='''Depression'''
  |DD=Deep depression
+
  |DD='''Deep depression'''
  |CS=Cyclonic storm
+
  |CS='''Cyclonic storm'''
  |SCS=Severe cyclonic storm
+
  |SCS='''Severe cyclonic storm'''
  |VSCS=Very severe cyclonic storm
+
  |VSCS='''Very severe cyclonic storm'''
  |SUCS=Super cyclonic storm
+
|ESCS='''Extremely severe cyclonic storm'''
 +
  |SUCS='''Super cyclonic storm'''
 
  |#default=
 
  |#default=
 
}} {{#switch:cyclone
 
}} {{#switch:cyclone
  |tropical storm=[[Tropical_cyclone#Intensity_classifications|Tropical storm]]
+
  |tropical storm='''[[Tropical_cyclone#Intensity_classifications|Tropical storm]]'''
  |subtropical storm=[[Tropical_cyclone#Intensity_classifications|Subtropical storm]]
+
  |subtropical storm='''[[Tropical_cyclone#Intensity_classifications|Subtropical storm]]'''
  |tropical depression=[[Tropical_cyclone#Intensity_classifications|Tropical depression]]
+
  |tropical depression='''[[Tropical_cyclone#Intensity_classifications|Tropical depression]]'''
  |subtropical depression=[[Tropical_cyclone#Intensity_classifications|Subtropical depression]]
+
  |subtropical depression='''[[Tropical_cyclone#Intensity_classifications|Subtropical depression]]'''
  |extratropical depression=Extratropical depression
+
  |extratropical depression='''Extratropical depression'''
  |extratropical storm=Extratropical storm
+
  |extratropical storm='''Extratropical storm'''
  |typhoon=typhoon
+
  |typhoon='''typhoon'''
  |hurricane=hurricane
+
  |hurricane='''hurricane'''
  |super typhoon=super typhoon
+
  |super typhoon='''super typhoon'''
  |cyclone=cyclone
+
  |cyclone='''cyclone'''
  |tropical cyclone=tropical cyclone
+
  |tropical cyclone='''tropical cyclone'''
  |super typhoon=super typhoon
+
  |super typhoon='''super typhoon'''
 
  |none=
 
  |none=
 
  |#default=[[Category:Tropical cyclone articles with incomplete infoboxes]]
 
  |#default=[[Category:Tropical cyclone articles with incomplete infoboxes]]
}}</includeonly> ([[Tropical_cyclone_scales|Australian&nbsp;scale]])</th></tr>
+
}}&nbsp;([[Tropical_cyclone_scales#Australia_and_Fiji|Australian&nbsp;scale]])</div>
}}{{
+
}}
  #if:{{{MFRcategory|}}}
+
 
   |<tr><th colspan="2" style="text-align:center;border-top:1px solid #AAAAAA; border-right:1px solid #aaa; background: #{{Storm colour|{{{MFRcategory}}}}};"><includeonly>'''Current storm status'''<br /> {{#switch:{{{MFRtype}}}
+
| subheader2 = {{#if:{{{MFRcategory|}}}
  |DI=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Tropical disturbance]]
+
   |<div style="width:100%; height:100%;background: #{{Storm colour|{{{MFRcategory}}}}};">'''Current storm status'''<br /> {{#switch:{{{MFRtype}}}
  |TD=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Tropical depression]]
+
  |DI='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Tropical disturbance]]'''
  |MTS=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Moderate tropical storm]]
+
  |TD='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Tropical depression]]'''
  |STS=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Severe tropical storm]]
+
  |MTS='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Moderate tropical storm]]'''
  |TC=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Tropical cyclone]]
+
  |STS='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Severe tropical storm]]'''
  |ITC=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Intense tropical cyclone]]
+
  |TC='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Tropical cyclone]]'''
  |VITC=[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Very intense tropical cyclone]]
+
  |ITC='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Intense tropical cyclone]]'''
 +
  |VITC='''[[Tropical_cyclone_scales#South-Western_Indian_Ocean|Very intense tropical cyclone]]'''
 +
|SD='''Subtropical depression'''
 +
|OD='''Overland depression'''
 
  |#default=
 
  |#default=
}}</includeonly> ([[Météo-France|MFR]])</th></tr>
+
}}&nbsp;([[Météo-France|MFR]])</div>
}}{{
+
}}
  #if:{{{IMDcategory|}}}
+
 
   |<tr><th colspan="2" style="text-align:center;border-top:1px solid #AAAAAA; border-right:1px solid #aaa; background: #{{Storm colour|{{{IMDcategory}}}}};"><includeonly>'''Current storm status'''<br /> {{#switch:{{{IMDtype}}}
+
| subheader3 = {{#if:{{{IMDcategory|}}}
  |D=[[Tropical_cyclone#Intensity_classifications|Depression]]
+
   |<div style="width:100%; height:100%;background: #{{Storm colour|{{{IMDcategory}}}}};">'''Current storm status'''<br /> {{#switch:{{{IMDtype}}}
  |DD=[[Tropical_cyclone#Intensity_classifications|Deep depression]]
+
  |D='''[[Tropical_cyclone#Intensity_classifications|Depression]]'''
  |CS=[[Tropical_cyclone#Intensity_classifications|Cyclonic storm]]
+
  |DD='''[[Tropical_cyclone#Intensity_classifications|Deep depression]]'''
  |SCS=[[Tropical_cyclone#Intensity_classifications|Severe cyclonic storm]]
+
  |CS='''[[Tropical_cyclone#Intensity_classifications|Cyclonic storm]]'''
  |VSCS=Very severe cyclonic storm
+
  |SCS='''[[Tropical_cyclone#Intensity_classifications|Severe cyclonic storm]]'''
  |SUCS=Super cyclonic storm
+
  |VSCS='''Very severe cyclonic storm'''
 +
|ESCS='''Extremely severe cyclonic storm'''
 +
  |SUCS='''Super cyclonic storm'''
 
  |#default=
 
  |#default=
}}</includeonly> ([[India Meteorological Department|IMD]])</th></tr>
+
}}&nbsp;([[India Meteorological Department|IMD]])</div>
}}{{
+
}}
  #if:{{{JMAcategory|}}}
+
 
   |<tr><th colspan="2" style="text-align:center;border-top:1px solid #AAAAAA; border-right:1px solid #aaa; background: #{{Storm colour|{{{JMAcategory}}}}};"><includeonly>'''Current storm status'''<br /> {{#switch:{{{JMAtype}}}
+
| subheader4style = background: #{{Storm colour|{{{JMAcategory}}}}};
  |tropical storm=[[Tropical_cyclone#Intensity_classifications|Tropical storm]]
+
| subheader4 = {{#if:{{{JMAcategory|}}}
  |subtropical storm=[[Tropical_cyclone#Intensity_classifications|Subtropical storm]]
+
   |<div style="width:100%; height:100%;background: #{{Storm colour|{{{JMAcategory}}}}};">'''Current storm status'''<br /> {{#switch:{{{JMAtype}}}
  |tropical depression=[[Tropical_cyclone#Intensity_classifications|Tropical depression]]
+
  |tropical storm='''[[Tropical_cyclone#Intensity_classifications|Tropical storm]]'''
  |subtropical depression=[[Tropical_cyclone#Intensity_classifications|Subtropical depression]]
+
  |subtropical storm='''[[Tropical_cyclone#Intensity_classifications|Subtropical storm]]'''
  |typhoon=Typhoon
+
  |tropical depression='''[[Tropical_cyclone#Intensity_classifications|Tropical depression]]'''
  |STS=Severe tropical storm
+
  |subtropical depression='''[[Tropical_cyclone#Intensity_classifications|Subtropical depression]]'''
 +
  |typhoon='''Typhoon'''
 +
  |STS='''Severe tropical storm'''
 
  |#default=
 
  |#default=
 
}} {{#switch:{{{JMAcategory}}}
 
}} {{#switch:{{{JMAcategory}}}
Line 141: Line 147:
 
  |storm=
 
  |storm=
 
  |depression=
 
  |depression=
  |unknown=Unknown strength
+
  |unknown='''Unknown strength'''
 
  |STS=
 
  |STS=
 
  |#default=
 
  |#default=
 
}} {{#switch:none
 
}} {{#switch:none
  |tropical storm=[[Tropical_cyclone#Intensity_classifications|Tropical storm]]
+
  |tropical storm='''[[Tropical_cyclone#Intensity_classifications|Tropical storm]]'''
  |subtropical storm=[[Tropical_cyclone#Intensity_classifications|Subtropical storm]]
+
  |subtropical storm='''[[Tropical_cyclone#Intensity_classifications|Subtropical storm]]'''
  |tropical depression=[[Tropical_cyclone#Intensity_classifications|Tropical depression]]
+
  |tropical depression='''[[Tropical_cyclone#Intensity_classifications|Tropical depression]]'''
  |subtropical depression=[[Tropical_cyclone#Intensity_classifications|Subtropical depression]]
+
  |subtropical depression='''[[Tropical_cyclone#Intensity_classifications|Subtropical depression]]'''
  |extratropical depression=Extratropical depression
+
  |extratropical depression='''Extratropical depression'''
  |extratropical storm=Extratropical storm
+
  |extratropical storm='''Extratropical storm'''
  |post-tropical cyclone=[[Post-tropical cyclone]]
+
  |post-tropical cyclone='''[[Post-tropical cyclone]]'''
  |post-tropical cyclone H=post-tropical cyclone
+
  |post-tropical cyclone H='''post-tropical cyclone'''
  |typhoon=typhoon
+
  |typhoon='''typhoon'''
  |hurricane=hurricane
+
  |hurricane='''hurricane'''
  |super typhoon=super typhoon
+
  |super typhoon='''super typhoon'''
  |cyclone=cyclone
+
  |cyclone='''cyclone'''
  |tropical cyclone=tropical cyclone
+
  |tropical cyclone='''tropical cyclone'''
  |super typhoon=super typhoon
+
  |super typhoon='''super typhoon'''
 
  |none=
 
  |none=
 
  |#default=[[Category:Tropical cyclone articles with incomplete infoboxes]]
 
  |#default=[[Category:Tropical cyclone articles with incomplete infoboxes]]
}}</includeonly> ([[Japan Meteorological Agency|JMA]])</th></tr>
+
}}&nbsp;([[Japan Meteorological Agency|JMA]])</div>
}}{{
+
}}
  #if:{{{category|}}}
+
 
   |<tr><th colspan="2" style="text-align:center;border-top:1px solid #AAAAAA; border-right:1px solid #aaa; background: #<includeonly>{{Storm colour|{{{category}}}}}</includeonly>;"><includeonly>'''Current storm status'''<br />{{#switch:{{{category}}}
+
| subheader5 = {{#if:{{{category|}}}
  |cat1=Category 1
+
   |<div style="width:100%; height:100%;background: #{{Storm colour|{{{category}}}}};">'''Current storm status'''<br />{{#switch:{{{category}}}
  |cat2=Category 2
+
  |cat1='''Category 1'''
  |cat3=Category 3
+
  |cat2='''Category 2'''
  |cat4=Category 4
+
  |cat3='''Category 3'''
  |cat5=Category 5
+
  |cat4='''Category 4'''
 +
  |cat5='''Category 5'''
 
  |storm=
 
  |storm=
 
  |depression=
 
  |depression=
  |unknown=Unknown strength
+
|potential=
 +
|post=
 +
  |unknown='''Unknown strength'''
 
  |#default=
 
  |#default=
 
}} {{#switch:{{{type}}}
 
}} {{#switch:{{{type}}}
  |tropical storm=[[Tropical_cyclone#Intensity_classifications|Tropical storm]]
+
  |tropical storm='''[[Tropical_cyclone#Intensity_classifications|Tropical storm]]'''
  |subtropical storm=[[Tropical_cyclone#Intensity_classifications|Subtropical storm]]
+
  |subtropical storm='''[[Tropical_cyclone#Intensity_classifications|Subtropical storm]]'''
  |tropical depression=[[Tropical_cyclone#Intensity_classifications|Tropical depression]]
+
  |tropical depression='''[[Tropical_cyclone#Intensity_classifications|Tropical depression]]'''
  |subtropical depression=[[Tropical_cyclone#Intensity_classifications|Subtropical depression]]
+
  |subtropical depression='''[[Tropical_cyclone#Intensity_classifications|Subtropical depression]]'''
  |extratropical depression=Extratropical depression
+
  |extratropical depression='''Extratropical depression'''
  |extratropical storm=Extratropical storm
+
|monsoon depression='''Monsoon depression'''
  |post-tropical cyclone=Post-tropical cyclone
+
  |extratropical storm='''Extratropical storm'''
  |post-tropical cyclone H=post-tropical cyclone
+
  |post-tropical='''Post-tropical cyclone'''
  |typhoon=typhoon
+
  |remnant='''Remnant low'''
  |hurricane=hurricane
+
  |typhoon='''typhoon'''
  |super typhoon=super typhoon
+
  |hurricane='''hurricane'''
  |cyclone=cyclone
+
  |super typhoon='''super typhoon'''
  |tropical cyclone=tropical cyclone
+
  |cyclone='''cyclone'''
  |super typhoon=super typhoon
+
|tropical cyclone='''tropical cyclone'''
  |STS=[[Tropical_cyclone#Intensity_classifications|Tropical storm]]
+
  |potential tropical cyclone='''Potential tropical cyclone'''
 +
  |super typhoon='''super typhoon'''
 +
  |STS='''[[Tropical_cyclone#Intensity_classifications|Tropical storm]]'''
 
  |none=
 
  |none=
 
  |#default=[[Category:Tropical cyclone articles with incomplete infoboxes]]
 
  |#default=[[Category:Tropical cyclone articles with incomplete infoboxes]]
}}</includeonly>&nbsp;([[Saffir–Simpson hurricane wind scale|1-min mean]])</th></tr>
+
}}&nbsp;([[Saffir–Simpson scale|1-min mean]])</div>
 
}}
 
}}
 
<!-- ------------------------------------- Row for As of -->
 
<!-- ------------------------------------- Row for As of -->
|- colspan=1 style="background-color:#F0F0F0; border-top:1px solid #AAAAAA; border-bottom:1px solid #AAAAAA;"
+
| label1 = As of:
! style="vertical-align:top;text-align:left; padding:0.1ex 0 0.1ex 5px;" | As of:
+
| data1 = {{{time|}}}
| style="vertical-align:top;padding:0.1ex 5px; border-right:1px solid #aaa;" width="80%" | {{{time}}}
 
 
<!-- ------------------------------------- Row for Location -->
 
<!-- ------------------------------------- Row for Location -->
 
<!-- Putting the coordinates directly in location is deprecated; use lat and lon instead -->
 
<!-- Putting the coordinates directly in location is deprecated; use lat and lon instead -->
|- colspan=1 style="border-bottom:1px solid #AAAAAA;"
+
| label2 = Location:
! style="vertical-align:top;text-align:left; padding:0.1ex 0 0.1ex 5px;" | Location:
+
| data2 = {{#if:{{both| {{{lat|}}} | {{{lon|}}} }}  
| style="vertical-align:top;padding:0.1ex 5px; border-right:1px solid #aaa;" nowrap width="80%" | {{#if:{{{lat|}}}|{{#if:{{{lon|}}}
+
  | {{br separated entries|1={{coord|{{{lat}}}|{{{1}}}|{{{lon}}}|{{{2}}}|dim:1000km|name={{{name}}}|display=inline}} {{#if:{{{within_units|}}} | ± {{{within_units}}}
| {{coord|{{{lat}}}|{{{1}}}|{{{lon}}}|{{{2}}}|dim:1000km|name={{{name}}}|display=inline}} {{#if:{{{within_units|}}} | ± {{{within_units}}}}}
+
}}|2={{{distance_from|}}} }}
{{#if:{{{distance_from|}}}
+
  | {{{location|}}}
|{{{distance_from}}}
+
  }}
}}
 
| {{{location}}}
 
}}
 
|{{{location}}}
 
}}
 
 
<!-- ------------------------------------- Row for Winds -->
 
<!-- ------------------------------------- Row for Winds -->
|- colspan=1 style="background-color:#F0F0F0; border-top:1px solid #AAAAAA; border-bottom:1px solid #AAAAAA;"
+
| label3 = Sustained winds:
! style="vertical-align:top;text-align:left; padding:0.1ex 0 0.1ex 5px;" | Winds:
+
| data3 = {{
| style="vertical-align:top;padding:0.1ex 5px; border-right:1px solid #aaa;" width="80%" | {{
 
 
   #if:{{{10sustained|}}}
 
   #if:{{{10sustained|}}}
   | {{{10sustained}}} sustained (10-min mean)<br>
+
   | {{{10sustained}}} (10-min mean)<br>
 +
}}{{#if:{{{gusts-10sustained}}}
 +
  | {{#if:{{{gusts|}}}
 +
    | gusting to {{{gusts}}}<br>
 +
  }}
 
}}{{#if:{{{10average|}}}
 
}}{{#if:{{{10average|}}}
 
   | {{{10average}}} average (10-min mean)<br>
 
   | {{{10average}}} average (10-min mean)<br>
 
}}{{#if:{{{3sustained|}}}
 
}}{{#if:{{{3sustained|}}}
   | {{{3sustained}}} sustained (3-min mean)<br>
+
   | {{{3sustained}}} (3-min mean)<br>
 
}}{{#if:{{{1sustained|}}}
 
}}{{#if:{{{1sustained|}}}
   | {{{1sustained}}} sustained (1-min mean)<br>
+
   | {{{1sustained}}} (1-min mean)<br>
}}{{#if:{{{gusts|}}}
+
}}{{#if:{{{gusts-10sustained}}}
  | gusting to {{{gusts}}}</span>
+
  || {{#if:{{{gusts|}}}
 +
    | gusting to {{{gusts}}}
 +
  }}
 
}}
 
}}
 
<!-- ------------------------------------- Row for Pressure -->
 
<!-- ------------------------------------- Row for Pressure -->
|- colspan=1 style="border-bottom:1px solid #AAAAAA;"
+
| label4 = Pressure:
! style="vertical-align:top;text-align:left; padding:0.1ex 0 0.1ex 5px;" | Pressure:
+
| data4 = {{{pressure|}}}
| style="vertical-align:top;padding:0.1ex 5px; border-right:1px solid #aaa;" nowrap width="80%" | {{{pressure}}}
 
 
<!-- ------------------------------------- Row for Movement -->
 
<!-- ------------------------------------- Row for Movement -->
|- colspan=1 style="background-color:#F0F0F0; border-top:1px solid #AAAAAA; border-bottom:1px solid #AAAAAA;"
+
| label5 = Movement:
! style="vertical-align:top;text-align:left; padding:0.1ex 0 0.1ex 5px;" | Movement:
+
| data5 = {{{movement|}}}
| style="vertical-align:top;padding:0.1ex 5px; border-right:1px solid #aaa;" width="80%" | {{{movement}}}
+
 
 
<!-- ---------------------------------- Bottom bar See-more -->
 
<!-- ---------------------------------- Bottom bar See-more -->
|-
+
| belowstyle = border-top:#aaa 1px solid; background: #{{Storm colour|{{#if:{{{AUScategory|}}}|{{{AUScategory}}}|{{#if:{{{MFRcategory|}}}|{{{MFRcategory}}}|{{#if:{{{IMDcategory|}}}|{{{IMDcategory}}}|{{#if:{{{JMAcategory|}}}|{{{JMAcategory}}}|{{{category}}}}}}}}}}}}};
! colspan=3 style="text-align:center;background: #{{Storm colour|{{{category}}}}};| See more {{#if:{{{stormarticle|}}}
+
| below = '''See {{#if:{{{ref|}}}|[{{{ref}}} latest official information].|more {{#if:{{{stormarticle|}}}
   | [[{{{stormarticle}}}#Current storm information|detailed information]].<br>
+
   | [[{{{stormarticle}}}#Current storm information|detailed information]].<br />
 
   |{{#if:{{{sectnum|}}}
 
   |{{#if:{{{sectnum|}}}
     | [[#Current storm information {{{sectnum}}}|detailed information]].<br>
+
     | [[#Current storm information {{{sectnum}}}|detailed information]].
     | [[#Current storm information|detailed information]].<br>
+
     | [[#Current storm information|detailed information]].
 
   }}
 
   }}
}}<!--
+
}} }}''' }}<noinclude>
--
 
=============================== Check for invalid parameters -->
 
{{#if:{{{map|}}}|
 
    <br>Invalid infobox parameter "map" - try "track=XXX.gif"}}{{
 
  #if:{{{Category|}}}|  <!--see NOTE F4 below-->
 
    <br>Invalid infobox parameter "Category" - try lowercase "category=storm"}}{{
 
  #if:{{{image_size|}}}|
 
    <br>Invalid infobox parameter "image_size" - try "image_width=130px"}}{{
 
  #if:{{{imagesize|}}}|
 
    <br>Invalid infobox parameter "imagesize" - try "image_width=130px"}}{{
 
  #if:{{{track_size|}}}|
 
    <br>Invalid infobox parameter "track_size" - try "track_width=170px"}}{{
 
  #if:{{{tracksize|}}}|
 
    <br>Invalid infobox parameter "tracksize" - try "track_width=170px"}}
 
|}<!--end table--><!--
 
-- More coding beyond table-end can put blank lines in article.
 
--
 
--------------------------------------------- --><noinclude>
 
{{being deleted|2013 September 1|merge=Template:Infobox typhoon current}}
 
 
{{Documentation}}
 
{{Documentation}}
<!--
 
===============================================================
 
--NOTES
 
--  The following are implementation notes, shown as footnotes
 
--  in the template coding above.
 
--
 
--  NOTE CS: These comment lines are kept inside wikiservers,
 
--          omitted as articles are formatted, not transmitted.
 
--          As of February 2008, the WP parser skips comments.
 
--
 
--  NOTE W2: This template is implemented as nested wikitables
 
--          (using "{|" in column 1).
 
--
 
--  NOTE I3: The "class=infobox" sets 2 predefined columns in
 
--          an infobox. Use "colspan=2" to span both columns.
 
--
 
--  NOTE F4: An if-statement can be indented when "{{" is left
 
--          on the previous line; otherwise, text gets boxed.
 
--
 
--HISTORY:
 
-- 26Jun10 New parameter: stormarticle
 
-- 13Jul06 Created as storm infobox.
 
-- 28Aug08 Converted to "class=infobox" from "class=toccolours".
 
-- 28Aug08 New parameters: image_width, track_width.
 
-- 28Aug08 New parameters: image_caption, track_caption.
 
-- 28Aug08 Added checking for invalid parameters at end.
 
-- 28Aug08 Created internal comment sections: NOTES & HISTORY.
 
-- 28Aug08 Fixed bug to show value of "1sustained".
 
-- 30Aug08 New "track_topcaption" as text/spaces over track map
 
-- 08Sep08 Fixed wide-box bug by data width="80%" (was 100%).
 
-- 08Sep08 Put internal comment lines separating each row.
 
--
 
-- (Note: Comment lines are in server, not transmitted in article.)
 
-->
 
 
</noinclude>
 
</noinclude>

Latest revision as of 02:22, 19 February 2021

{{{name}}}TC
See more detailed information.

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Usage

Hurricane HectorTemplate:Tropical cyclone status icons
Current storm status
Category 4 hurricane (1-min mean)
Hector 2018-08-06 1950Z.jpg
Satellite image
10E 2018 5day.png
Forecast map
As of:11:00 a.m. HST (21:00 UTC) August 6
Location:Lua error: callParserFunction: function "#coordinates" was not found. ± 5 nm
About 850 mi (1,365 km) ESE of Hilo, Hawaii
About 1,055 mi (1,700 km) ESE of Honolulu, Hawaii
Sustained winds:gusting to 165 kt (190 mph; 305 km/h)
135 kt (155 mph; 250 km/h) (1-min mean)
Pressure:936 mbar (hPa; 27.64 inHg)
Movement:W at 14 kt (16 mph; 26 km/h)
See more detailed information.
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox tropical cyclone current
|name=Hurricane Hector
|category=cat4
|type=hurricane
|time=11:00 a.m. [[Hawaii–Aleutian Time Zone|HST]] (21:00 [[Coordinated Universal Time|UTC]]) August 6
|image=Hector 2018-08-06 1950Z.jpg
|track=10E 2018 5day.png
|lat=15.2|N|lon=143.1|W
|within_units=5 [[nautical mile|nm]]
|distance_from=About 850 mi (1,365 km) ESE of [[Hilo, Hawaii]]<br>About 1,055 mi (1,700 km) ESE of [[Honolulu, Hawaii]]
|1sustained=135 kt (155 mph; 250 km/h)
|gusts=165 kt (190 mph; 305 km/h)
|pressure=936 [[Bar (unit)|mbar]] ([[Pascal (unit)|hPa]]; 27.64 [[Inches of Mercury|inHg]])
|movement=[[Points of the compass|W]] at 14 kt (16 mph; 26 km/h)
}}

Parameters

name Name of the storm, displayed on the top of the infobox
category Controls the background color of the infobox intensity fields. Use in combination with type to control the text displayed inside the intensity fields (see {{Hurricane status small}}). The table below shows some of the values the template can obtain:
Category Type
style="background: #Template:Storm colour;"|post-tropical post-tropical cyclone
style="background: #Template:Storm colour;"|potential potential tropical cyclone
style="background: #Template:Storm colour;"|depression tropical depression
subtropical depression
style="background: #Template:Storm colour;"|storm tropical storm
subtropical storm
style="background: #Template:Storm colour;"|cat1 hurricane
typhoon (1-4)
super typhoon (4-5)
tropical cyclone
style="background: #Template:Storm colour;"|cat2
style="background: #Template:Storm colour;"|cat3
style="background: #Template:Storm colour;"|cat4
style="background: #Template:Storm colour;"|cat5
image Image displayed on the left side of the infobox. Usually a satellite view of the storm. File:Temporary cyclone north.svg is used as a placeholder if this parameter is empty.
image_width Width of the file included via image. 130px by default.
image_caption Caption of the file included via image. "Satellite image" by default.
track Image displayed on the left side of the infobox. Usually a forecast map of the storm. File:Temporary cyclone north.svg is used as a placeholder if this parameter is empty.
track_topcaption Used to include text above the file included via track. Not currently used.
track_width Width of the file included via track. 170px by default.
track_caption Caption of the file included via track. "Forecast map" by default.
AUScategory Used to input the Australian intensity classification into the "current storm information" row.
JMAtype Used to input the RSMC Tokyo intensity classification type into the "current storm information" row.
JMAcategory Used to input the RSMC Tokyo intensity classification into the "current storm information" row.
IMDtype Used to input the RSMC New Delhi intensity classification type into the "current storm information" row.
IMDcategory Used to input the RSMC New Delhi intensity classification into the "current storm information" row.
MFRtype Used to input the RSMC La Réunion intensity classification type into the "current storm information" row.
MFRcategory Used to input the RSMC La Réunion intensity classification into the "current storm information" row.
time Advisory time
location Deprecated: Showed the position of the storm center and uncertainty; replaced with lat, lon, distance_from, and within_units instead.
lat The latitude of the storm as displayed in the location field. This parameter is used to create a coordinate using {{Coord}}.
Example: 20.6|N converts to 20.6°N.
Remember: Always include the unnamed direction (N/S) parameter after the latitude. For example: 20.6|N
lon The longitude of the storm as displayed in the location field. This parameter is used to create a coordinate using {{Coord}}.
Example: 41.7|W converts to 41.7°W.
Remember: Always include the unnamed direction (E/W) parameter after the longitude. For example: 41.7|W
within_units The accuracy of the units displayed in the location field.
Example: 20 nm converts to ± 20 nm.
distance_from The distance the storm is from a certain city or island(s).
Example: About 1205 mi (1935 km) WNW of the Cape Verde Islands.
10sustained 10-minute sustained winds
10average 10-minute average winds
3sustained 3-minute sustained winds
1sustained 1-minute sustained winds
gusts Measured gusts
pressure Central barometric pressure of storm
movement Direction and speed of storm
stormarticle Storm article containing the Current storm information section for the system. Do not include the #Current_storm_information anchor in the link; it is already added by the template. If absent, template assumes that the section is in the current article.
sectnum Used to disambiguate storms when there are multiple active storms being tracked in the same season article. For the second currently active storm, from top to bottom, set sectnum=2; for the third, sectnum=3, and so on. If absent, the template assumes there is only one #Current_storm_information anchor in the article.
ref Used to replace the link to the Current storm information section with an external link to an official warning center (by convention the basin's Regional Specialized Meteorological Center).

Important: Do not add a line break between any of the lat and lon parameters, named or unnamed, as this may cause unexpected results. If you must, do something like this:

lat=20.6|N<!--
-->lon=41.7|W

See also

pt:Predefinição:Info/Furacão atual