User:MarioProtIV/Custom infobox hurricane template

{{Infobox | wpac = {{#if:|{{#ifexpr:>=34|{{#ifexpr:>=48|{{#ifexpr:>=64|Typhoon|Severe tropical storm}}|Tropical storm}}|Tropical depression}} (JMA scale) | }} | nio = {{#if: | {{#ifexpr:<120|{{#ifexpr:<90|{{#ifexpr:<64|{{#ifexpr:<48|{{#ifexpr:{{{3-min winds}}}<34|{{#ifexpr:{{{3-min winds}}}<28|Depression|Deep depression}}|Cyclonic storm}}|Severe cyclonic storm}}|Very severe cyclonic storm}}|Extremely severe cyclonic storm}}|Super cyclonic storm}} (IMD scale) | }} | swi = {{#if: | {{#ifexpr:<116|{{#ifexpr:{{{10-min winds}}}<90|{{#ifexpr:{{{10-min winds}}}<64|{{#ifexpr:{{{10-min winds}}}<48|{{#ifexpr:{{{10-min winds}}}<34|{{#ifexpr:{{{10-min winds}}}<28|Tropical disturbance|Tropical depression}}|Moderate tropical storm}}|Severe tropical storm}}|Tropical cyclone}}|Intense tropical cyclone}}|Very intense tropical cyclone}} (SWIO scale) | }} | aus = {{#if:{{{10-min winds|}}}|{{#ifexpr:{{{10-min winds|}}}>=34|Category {{#ifexpr:{{{10-min winds|}}}>=48|{{#ifexpr:{{{10-min winds|}}}>=64|{{#ifexpr:{{{10-min winds|}}}>=86|{{#ifexpr:{{{10-min winds|}}}>107|5|4}}|3}} severe|2}}|1}} tropical cyclone|Tropical low}} (Aus scale) }} | spac = {{#if:{{{10-min winds|}}}|{{#ifexpr:{{{10-min winds|}}}>=34|Category {{#ifexpr:{{{10-min winds|}}}>=48|{{#ifexpr:{{{10-min winds|}}}>=64|{{#ifexpr:{{{10-min winds|}}}>=86|{{#ifexpr:{{{10-min winds|}}}>107|5|4}}|3}} severe|2}}|1}} tropical cyclone|Tropical depression}} (Aus scale) }} | atl = | epac = | satl = | #default = {{#if:{{{type|{{{Type|}}}}}}|{{{type|{{{Type|}}}}}}|{{#ifeq:{{NAMESPACE}}|{{ns:0}}|}}}} }}
 * bodyclass     = vevent
 * bodystyle     = border-collapse:collapse;{{#if:||width:27em}}
 * title         = {{{name|{{{Name| {{PAGENAME}} }}}}}}
 * above = {{#switch: {{lc:{{{basin|{{{Basin}}}}}}}}

| wpac = {{#if:{{{10-min winds|}}} | #{{Storm colour|{{#ifexpr:{{{10-min winds}}}>=34|{{#ifexpr:{{{10-min winds}}}>=48|{{#ifexpr:{{{10-min winds}}}>=64|TY|STS}}|nwpstorm}}|nwpdepression}}}} | }} | nio = {{#if: | #{{Storm colour|{{#ifexpr:{{{3-min winds}}}<120|{{#ifexpr:{{{3-min winds}}}<90|{{#ifexpr:{{{3-min winds}}}<64|{{#ifexpr:{{{3-min winds}}}<48|{{#ifexpr:{{{3-min winds}}}<34|depression|cyclstorm}}|svrcyclstorm}}|vsvrcyclstorm}}|esvrcyclstorm}}|sprcyclstorm}}}} | }} | swi = {{#if:{{{10-min winds|}}} | #{{Storm colour|{{#ifexpr:{{{10-min winds}}}<116|{{#ifexpr:{{{10-min winds}}}<90|{{#ifexpr:{{{10-min winds}}}<64|{{#ifexpr:{{{10-min winds}}}<48|{{#ifexpr:{{{10-min winds}}}<34|{{#ifexpr:{{{10-min winds}}}<28|swiodisturbance|swiodepression}}|mtstorm}}|swiosts}}|swiotc}}|intense}}|vintense}}}} | }} | aus = {{#if:{{{10-min winds|}}} | #{{Storm colour|{{#ifexpr:{{{10-min winds|}}}>=34|{{#ifexpr:{{{10-min winds|}}}>=48|{{#ifexpr:{{{10-min winds|}}}>=64|{{#ifexpr:{{{10-min winds|}}}>=86|{{#ifexpr:{{{10-min winds|}}}>107|Aus5|Aus4}}|Aus3}}|Aus2}}|Aus1}}|TL}} }} }} | spac = {{#if:{{{10-min winds|}}} | #{{Storm colour|{{#ifexpr:{{{10-min winds|}}}>=34|{{#ifexpr:{{{10-min winds|}}}>=48|{{#ifexpr:{{{10-min winds|}}}>=64|{{#ifexpr:{{{10-min winds|}}}>=86|{{#ifexpr:{{{10-min winds|}}}>107|Fiji5|Fiji4}}|Fiji3}}|Fiji2}}|Fiji1}}|spdepression}} }} }} | atl = | epac = | satl = | #default = #{{User:MarioProtIV/Custom storm color template|{{{category|unknown}}}}} }}
 * abovestyle = font-size:100%;background-color: {{#switch: {{lc:{{{basin|{{{Basin}}}}}}}}

|atl|epac={{#ifexpr:>=445|{{#ifexpr:>=34|{{#ifexpr:>=64|Category {{#ifexpr:>=83|{{#ifexpr:>=96|{{#ifexpr:>=113|{{#ifexpr:>=137|{{#ifexpr:>=185|{{#ifexpr:>=325|7}}|6}}|5}}|4|3}} major|2}}|1}} hurricane|{{{type|{{{Type|Hypercane}}}}}} }}|{{type|{{{Type|Tropical storm}}}}}} }}|{{{type|{{{Type|Tropical depression}}}}}} }} (SSHWS/NWS) |satl={{#ifexpr:>=34|{{#ifexpr:>=64|Category {{#ifexpr:>=83|{{#ifexpr:{{{1-min winds}}}>=96|{{#ifexpr:{{{1-min winds}}}>=113|{{#ifexpr:{{{1-min winds}}}>=137|5|4}}|3}} major|2}}|1}} hurricane|{{{type|{{{Type|Tropical storm}}}}}} }}|{{{type|{{{Type|Tropical depression}}}}}} }} (SSHWS) |wpac|nio|swi|aus|spac={{#ifexpr:{{{1-min winds}}}>=34|{{#ifexpr:{{{1-min winds}}}>=64|Category {{#ifexpr:{{{1-min winds}}}>=83|{{#ifexpr:{{{1-min winds}}}>=96|{{#ifexpr:{{{1-min winds}}}>=113|{{#ifexpr:{{{1-min winds}}}>=137|5|4}}|3}}|2}}|1}} (Saffir–Simpson scale)| Tropical storm (Saffir–Simpson scale)}} | Tropical depression (Saffir–Simpson scale) }} }} }}
 * subheader = {{#if:|{{#switch: {{lc:{{{basin|{{{Basin}}}}}}}}


 * subheaderstyle = font-weight:bold;background-color: {{#if:| #{{User:MarioProtIV/Custom storm color template|#ifexpr:{{{1-min winds}}}>=435|{{#ifexpr:{{{1-min winds}}}>=34|{{#ifexpr:{{{1-min winds}}}>=64|{{#ifexpr:{{{1-min winds}}}>=83|{{#ifexpr:{{{1-min winds}}}>=96|{{#ifexpr:{{{1-min winds}}}>=113|{{#ifexpr:{{{1-min winds}}}>=137|{{#ifexpr:{{{1-min winds}}}>=185|{{#ifexpr:{{{1-min winds}}}>=434|cat7}}|cat6}}|cat5|cat4}}|cat3}}|cat2}}|cat1}}|storm|depression}}|hypercane}} }}}}


 * headerstyle   =  font-weight:bold;background:#eee;border:#aaa 1px solid


 * image =


 * caption = {{#switch: {{#expr: {{#if:|1|0}} + + {{#if:|4|0}} }} |2|3|7=  |4|5=  }}
 * captionstyle= border-bottom:#aaa 1px solid


 * labelstyle   = padding:0px 2px;white-space:nowrap
 * datastyle   = padding:0px 2px

As of: }}  }}
 * header1 = {{#if:|{{#if:||Current storm status
 * label2 = Location
 * data2 =
 * label3 = Movement
 * data3 =


 * label10 = Formed
 * data10 =


 * label11 = Dissipated
 * data11 =


 * data12 =


 * data13 =


 * data30 = {{#if: {{{10-min winds|}}}{{{3-min winds|}}} |  }}

{{#if:{{{10-min winds|}}}| 10-minute sustained: {{#switch: |atl|epac={{#expr:((1.151*{{{10-min winds}}})/5 round 0)*5}} mph ({{#expr:((1.852*{{{10-min winds}}})/5 round 0)*5}} km/h)|{{#expr:((1.852*{{{10-min winds}}})/5 round 0)*5}} km/h ({{#expr:((1.151*{{{10-min winds}}})/5 round 0)*5}} mph)}}
 * label31 =
 * data31 =
 * }}{{#if:{{{3-min winds|}}}| 3-minute sustained: {{#switch: |atl|epac={{#expr:((1.151*{{{3-min winds}}})/5 round 0)*5}} mph ({{#expr:((1.852*{{{3-min winds}}})/5 round 0)*5}} km/h)|{{#expr:((1.852*{{{3-min winds}}})/5 round 0)*5}} km/h ({{#expr:((1.151*{{{3-min winds}}})/5 round 0)*5}} mph)}}
 * }}{{#if:| 1-minute sustained: {{#switch: |atl|epac={{#expr:((1.151*{{{1-min winds}}})/5 round 0)*5}} mph ({{#expr:((1.852*{{{1-min winds}}})/5 round 0)*5}} km/h)|{{#expr:((1.852*{{{1-min winds}}})/5 round 0)*5}} km/h ({{#expr:((1.151*{{{1-min winds}}})/5 round 0)*5}} mph)}}
 * }}


 * label35 = {{#if:{{{dissipated|{{{Dissipated|}}}}}}|Lowest pressure|Pressure}}
 * data35 =


 * data70 =


 * label71 = Fatalities
 * data71 =


 * label72 = Damage
 * data72 =


 * label73 = Areas affected
 * data73 =


 * data74 =


 * data90 =
 * data91 =
 * data92 =


 * header95 =

}}
 * belowstyle    =
 * below         =