Difference between revisions of "Template:Infobox storm/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>MarioProtIV
(Undid revision 762795677 by MarioProtIV (talk))
imported>Master of Time
(May try to add option so it doesn't use the word "outbreak" for duration of single tornado.)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
| bodyclass     = vevent
+
|bodyclass   = vevent
| title         = {{{name|{{{event|<includeonly>{{PAGENAME}}</includeonly>}}}}}}
+
|title       = {{{name|{{{event|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}}}}
  
 
<!-- Tornado -->
 
<!-- Tornado -->
Line 17: Line 17:
  
 
<!-- RSI (US winter storms) -->
 
<!-- RSI (US winter storms) -->
|subheader = {{#if:{{{RSI|}}}|Category {{#ifexpr:{{{RSI}}}>=3|{{#ifexpr:{{{RSI}}}>=6|{{#ifexpr:{{{RSI}}}>=10|{{#ifexpr:{{{RSI}}}>=18|5 "Extreme"|4 "Crippling"}}|3 "Major"}}|2 "Significant"}}|1 "Notable"}} snowstorm }}
+
|subheader = {{#if:{{{RSI|}}}|Category {{#ifexpr:{{{RSI}}}>=3|{{#ifexpr:{{{RSI}}}>=6|{{#ifexpr:{{{RSI}}}>=10|{{#ifexpr:{{{RSI}}}>=18|5 "Extreme"|4 "Crippling"}}|3 "Major"}}|2 "Significant"}}|1 "Notable"}} ([[Regional Snowfall Index|RSI]]: {{{RSI}}}) }}
 
  |subheaderstyle = {{#if:{{{RSI|}}}|font-weight:bold;background-color:#{{Storm colour|{{#ifexpr:{{{RSI}}}>=3|{{#ifexpr:{{{RSI}}}>=6|{{#ifexpr:{{{RSI}}}>=10|{{#ifexpr:{{{RSI}}}>=18|cat5|cat4}}|cat3}}|cat2}}|cat1}} }} }}
 
  |subheaderstyle = {{#if:{{{RSI|}}}|font-weight:bold;background-color:#{{Storm colour|{{#ifexpr:{{{RSI}}}>=3|{{#ifexpr:{{{RSI}}}>=6|{{#ifexpr:{{{RSI}}}>=10|{{#ifexpr:{{{RSI}}}>=18|cat5|cat4}}|cat3}}|cat2}}|cat1}} }} }}
  
| image   = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{image location|}}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1.2|alt={{{alt|{{{image alt|}}}}}}|suppressplaceholder=yes}}
+
|image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{image location|}}}}}}|size=frameless|upright=1.22|alt={{{image alt|{{{alt|}}}}}}}}
 +
|caption = {{{caption|{{{image name|}}}}}}
  
| caption = {{{caption|{{{image name|}}}}}}
+
|label1 = Type
| captionstyle = border-bottom:1px solid #aaaaaa;
+
|data1 = {{{type|{{{stormtype|}}}}}}
 
+
|label2 = Formed
| label1 = Type
+
|data2 = {{{formed|{{{date formed|}}}}}}
|  data1 = {{{type|{{{stormtype|}}}}}}
+
|label3 = Duration
| label2 = {{#switch: {{lc:{{{tornadoes|}}}}} |0|1|one|=Date |#default=Date(s) }}
+
|data3 = {{{active|}}}
| data2 = {{{date|}}}
+
|label4 = Dissipated
| label3 = Time
+
|data4 = {{{dissipated|{{{date dissipated|}}}}}}
| data3 = {{{time|}}}
+
|label5 = Lowest pressure
| label4 = Formed
+
|data5 = {{#if:{{{lowest pressure|}}}|{{Convert|{{{lowest pressure|}}}|mb|inHg|abbr=on|lk=on|sigfig=4}}|{{{pressure|}}}}}
| data4 = {{{formed|{{{date formed|}}}}}}
+
|label6 = Lowest temperature
| label5 = Active as of
+
|data6 = {{{lowest temperature|}}}
| data5 = {{{active|}}}
+
|label7 = Tornadoes confirmed
| label6 = Current advisories
+
|data7 = {{{tornadoes|}}}
| data6 = {{{current advisories|}}}
+
|label8 = {{abbr|Max|Maximum}} rating<sup>1</sup>
| label7 = Dissipated
+
|data8 = {{#if:{{{fujitascale|}}}|[[{{#ifeq:{{{enhanced|}}}|yes|Enhanced Fujita scale|Fujita scale}}|{{{fujitascale}}}]] tornado}}
| data7 = {{{dissipated|{{{date dissipated|}}}}}}
+
|label9 = Duration of tornado outbreak<sup>2</sup>
| label8 = Duration
+
|data9 = {{{tornado duration|}}}
|  data8 = {{{duration|}}}
+
|label10 = Highest winds
 
+
|data10 = {{unbulleted list
<!-- Weather effects -->
+
  |1 = {{#if:{{{10-min winds|}}}|''10-minute sustained:''<br />{{{10-min prefix|}}}{{#expr:((1.852*{{{10-min winds}}})/5 round 0)*5}} km/h ({{#expr:((1.151*{{{10-min winds}}})/5 round 0)*5}} mph){{{10-min suffix|}}} }}
| label11 = Lowest pressure
+
|2 = {{#if:{{{1-min winds|}}}|''1-minute sustained:''<br />{{{1-min prefix|}}}{{#expr:((1.852*{{{1-min winds}}})/5 round 0)*5}} km/h ({{#expr:((1.151*{{{1-min winds}}})/5 round 0)*5}} mph){{{1-min suffix|}}} }}
|  data11 = {{#if:{{{lowest pressure|}}}|{{Convert|{{{lowest pressure|}}}|mb|inHg|abbr=on|lk=on|sigfig=4}}|{{{pressure|}}}}}
+
  |3 = {{#if:{{{highest winds|}}}|{{#iferror:{{#expr:1+{{{highest winds}}}+1}}|{{{highest winds}}}|{{Convert|{{{highest winds}}}|km/h|mph kn|abbr=on|lk=on}}}}|{{{sustained wind|}}}}}
| label12 = Lowest temperature
+
}}
| data12 = {{{lowest temperature|}}}
+
|label11 = Highest gust
| label13 = Tornadoes
+
|data11 = {{#if:{{{gusts|{{{gust|}}}}}}|{{#iferror:{{#expr:1+{{{gusts|{{{gust}}}}}}+1}}|{{{gusts|{{{gust|}}}}}}|{{{gusts prefix|{{{pregusts|}}}}}}{{#expr:((1.852*{{{gusts}}})/5 round 0)*5}} km/h ({{#expr:((1.151*{{{gusts}}})/5 round 0)*5}} mph){{{gusts suffix|}}} }} }}
data13 = {{#switch: {{lc:{{{tornadoes|}}}}} |0|1|one|= |#default={{{tornadoes|}}} }}
+
|label12 = [[Beaufort scale]]
| label14 = Highest&nbsp;rated
+
|data12 = {{{beaufort scale|}}}
|  data14 = {{#switch: {{lc:{{{tornadoes|}}}}} |0|1|one|= |#default={{#switch: {{lc:{{{fujitascale}}}}}  
+
|label13 = Largest hail
  |f0|f1|f2|f3|f4|f5= {{uc:{{{fujitascale}}}}} ([[Fujita scale]])
+
|data13 = {{{hail|}}}
|ef0|ef1|ef2|ef3|ef4|ef5= {{uc:{{{fujitascale}}}}} ([[Enhanced Fujita scale]]) }} }}
+
|label14 = Maximum snowfall or ice accretion
| label15 = Peak winds
+
|data14 = {{{maximum snow|{{{maximum amount|}}}}}}
| data15 = {{{winds|{{{wind|}}}}}}
+
|label15 = Maximum rainfall
| label16 = Peak gusts
+
|data15 = {{{maximum rain|}}}
| data16 = {{{gusts|{{{gust|}}}}}}
+
|label16 = Damage
| label17 = Maximum snowfall or ice accretion
+
|data16 = {{{damages|{{{total damages (USD)|{{{total snow damages (USD)|}}}}}}}}}
| data17 = {{{maximum snow|{{{maximum amount|}}}}}}
+
|label17 = Power outages
| label18 = [[Regional Snowfall Index]]
+
|data17 = {{{power outages|}}}
| data18 = {{{RSI|}}}
+
|label18 = Casualties
| label19 = Largest hail
+
|data18 = {{{fatalities|{{{total fatalities|{{{snow fatalities|}}}}}}}}}
| data19 = {{{hail|}}}
+
|label19 = Areas affected
 
+
|data19 = {{{affected|{{{areas affected|{{{countries affected|{{{location|}}}}}}}}}}}}
<!-- Outcome -->
+
|label20 = Current advisories
| label21 = Casualties
+
|data20 = {{{current advisories|}}}
| data21 = {{{casualties|{{{fatalities|{{{total fatalities|}}}}}}}}}  
+
|below = {{#if:{{{fujitascale|}}}|<sup>1</sup>Most severe tornado damage; see [[{{#ifeq:{{{enhanced|}}}|yes|Enhanced Fujita scale|Fujita scale}}]]}}
| label22 = Damages
+
{{#if:{{{tornado duration|}}}|<sup>2</sup>Time from first tornado to last tornado}}<br>
| data22 = {{{damages|{{{total damages (USD)|{{{total snow damages (USD)|}}}}}}}}}
+
{{{notes|}}}
| label23 = Power outages
+
|belowstyle = border-top:1px solid #aaaaaa;
| data23 = {{{power outages|}}}
+
}}
| label24 = Areas affected
 
| data24 = {{{affected|{{{areas affected|{{{area affected|{{{countries affected|{{{location|}}}}}}}}}}}}}}}
 
| below = {{{related|}}}
 
| belowstyle = border-top:1px solid #aaaaaa;
 
}}<noinclude>
 
 
 
{{documentation}}
 
</noinclude>
 

Revision as of 02:51, 17 August 2019