Difference between revisions of "Template:Infobox storm/sandbox"
imported>Master of Time (Add outbreak option) |
imported>Master of Time (Reverted to revision 762797057 by MarioProtIV (talk) (TW)) |
||
| Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
| − | |bodyclass | + | | bodyclass = vevent |
| − | |title | + | | title = {{{name|{{{event|<includeonly>{{PAGENAME}}</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"}} | + | |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 }} |
|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=frameless|upright=1. | + | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{image location|}}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1.2|alt={{{alt|{{{image alt|}}}}}}|suppressplaceholder=yes}} |
| − | |||
| − | |label1 = Type | + | | caption = {{{caption|{{{image name|}}}}}} |
| − | + | | captionstyle = border-bottom:1px solid #aaaaaa; | |
| − | |label2 = | + | |
| − | + | | label1 = Type | |
| − | |label3 = | + | | data1 = {{{type|{{{stormtype|}}}}}} |
| − | + | | label2 = {{#switch: {{lc:{{{tornadoes|}}}}} |0|1|one|=Date |#default=Date(s) }} | |
| − | |label4 = | + | | data2 = {{{date|}}} |
| − | + | | label3 = Time | |
| − | |label5 = | + | | data3 = {{{time|}}} |
| − | + | | label4 = Formed | |
| − | | | + | | data4 = {{{formed|{{{date formed|}}}}}} |
| − | + | | label5 = Active as of | |
| − | + | | data5 = {{{active|}}} | |
| − | + | | label6 = Current advisories | |
| − | | | + | | data6 = {{{current advisories|}}} |
| − | + | | label7 = Dissipated | |
| − | | | + | | data7 = {{{dissipated|{{{date dissipated|}}}}}} |
| − | + | | label8 = Duration | |
| − | | | + | | data8 = {{{duration|}}} |
| − | + | ||
| − | + | <!-- Weather effects --> | |
| − | + | | label11 = Lowest pressure | |
| − | | | + | | data11 = {{#if:{{{lowest pressure|}}}|{{Convert|{{{lowest pressure|}}}|mb|inHg|abbr=on|lk=on|sigfig=4}}|{{{pressure|}}}}} |
| − | + | | label12 = Lowest temperature | |
| − | | | + | | data12 = {{{lowest temperature|}}} |
| − | + | | label13 = Tornadoes | |
| − | | | + | | data13 = {{#switch: {{lc:{{{tornadoes|}}}}} |0|1|one|= |#default={{{tornadoes|}}} }} |
| − | + | | label14 = Highest rated | |
| − | | | + | | data14 = {{#switch: {{lc:{{{tornadoes|}}}}} |0|1|one|= |#default={{#switch: {{lc:{{{fujitascale}}}}} |
| − | + | |f0|f1|f2|f3|f4|f5= {{uc:{{{fujitascale}}}}} ([[Fujita scale]]) | |
| − | | | + | |ef0|ef1|ef2|ef3|ef4|ef5= {{uc:{{{fujitascale}}}}} ([[Enhanced Fujita scale]]) }} }} |
| − | | | + | | label15 = Peak winds |
| − | + | | data15 = {{{winds|{{{wind|}}}}}} | |
| − | + | | label16 = Peak gusts | |
| − | | | + | | data16 = {{{gusts|{{{gust|}}}}}} |
| − | + | | label17 = Maximum snowfall or ice accretion | |
| − | | | + | | data17 = {{{maximum snow|{{{maximum amount|}}}}}} |
| − | + | | label18 = [[Regional Snowfall Index]] | |
| − | | | + | | data18 = {{{RSI|}}} |
| − | + | | label19 = Largest hail | |
| − | + | | data19 = {{{hail|}}} | |
| − | + | ||
| − | + | <!-- Outcome --> | |
| − | + | | label21 = Casualties | |
| − | |below = | + | | data21 = {{{casualties|{{{fatalities|{{{total fatalities|}}}}}}}}} |
| − | + | | label22 = Damages | |
| − | + | | data22 = {{{damages|{{{total damages (USD)|{{{total snow damages (USD)|}}}}}}}}} | |
| − | |belowstyle = border-top:1px solid #aaaaaa; | + | | label23 = Power outages |
| − | }} | + | | 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 03:07, 17 August 2019
| This is the template sandbox page for Template:Infobox storm (diff). See also the companion subpage for test cases. |
| This template uses Lua: |
This template may be used in articles about storms, including cyclones and winter storms.
Contents
Usage
Template:Parameter names example
{{Infobox storm
| name = <!-- name of event, can be omitted if same as article title -->
| image = <!-- just the filename-->
| alt =
| caption =
| type =
| formed = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
| active =
| dissipated = <!-- {{End date|YYYY|MM|DD|df=y}} -->
| lowest pressure = <!-- in mb/hPa, gets automatically converted to inHg -->
| lowest temperature =
| tornadoes =
| fujitascale =
| enhanced = <!-- yes = Enhanced Fujita scale -->
| fujitascale ref =
| tornado duration =
| highest winds = <!-- in km/h, gets automatically converted to mph and knots -->
| gusts =
| beaufort scale =
| hail =
| maximum snow = <!-- maximum snowfall or ice accretion -->
| maximum rain = <!-- maximum rainfall -->
| damages =
| power outages =
| fatalities =
| areas affected =
| current advisories =
| partof =
| notes =
}}
Region- or type-specific parameters
Regional Snowfall Index (used only for U.S. winter storms)
| RSI = <!-- Regional Snowfall Index -->
TemplateData
TemplateData for Infobox storm
Infobox for a storm
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name event | Name of storm
| String | optional |
| Image | image image location | no description | Unknown | optional |
| Image alternative text | image alt alt | Alternative text for image. | String | optional |
| Image caption | caption image name | Caption beneath image. | String | optional |
| Type | type stormtype | Storm type
| String | optional |
| Formed | formed date formed | Date storm started | Date | optional |
| Duration | active duration | Time period storm was active | String | optional |
| Dissipated | dissipated date dissipated | Date storm ended | Date | optional |
| Lowest pressure | lowest pressure | in mb/hPa | String | optional |
| Pressure | pressure | no description | Unknown | optional |
| Lowest temperature | lowest temperature | no description | String | optional |
| Tornadoes confirmed | tornadoes | no description | String | optional |
| Fujita scale / Enhanced Fujita scale | fujitascale | add parameter enhanced=yes for Enhanced Fujita scale
| String | optional |
| Enhanced Fujita scale | enhanced | Set to yes if fujitascale is enhanced
| String | optional |
| Fujitascale ref | fujitascale ref | no description | Unknown | optional |
| Duration of tornado outbreak | tornado duration | no description | String | optional |
| 10-min winds | 10-min winds | no description | Unknown | optional |
| 10-min prefix | 10-min prefix | no description | Unknown | optional |
| 10-min suffix | 10-min suffix | no description | Unknown | optional |
| 1-min winds | 1-min winds | no description | Unknown | optional |
| 1-min prefix | 1-min prefix | no description | Unknown | optional |
| 1-min suffix | 1-min suffix | no description | Unknown | optional |
| Highest winds | highest winds | in km/h | Unknown | optional |
| Sustained wind | sustained wind | no description | Unknown | optional |
| Highest gust | gusts gust | no description | Unknown | optional |
| Gusts prefix | gusts prefix pregusts | no description | Unknown | optional |
| Gusts suffix | gusts suffix | no description | Unknown | optional |
| Beaufort scale | beaufort scale | no description | Unknown | optional |
| Largest hail | hail | no description | Unknown | optional |
| Regional Snowfall Index | RSI | no description | Unknown | optional |
| Maximum snowfall or ice accretion | maximum snow maximum amount | no description | Unknown | optional |
| Maximum rainfall | maximum rain | no description | Unknown | optional |
| Damage | damages total damages (USD) total snow damages (USD) | no description | Unknown | optional |
| Power outages | power outages | no description | Unknown | optional |
| Casualties | casualties total casualties snow casualties fatalities total fatalities | no description | Unknown | optional |
| Areas affected | affected areas affected countries affected location | no description | String | optional |
| Current advisories | current advisories | no description | Unknown | optional |
| Part of | partof | no description | Unknown | optional |
| Notes | notes | no description | Unknown | optional |
Tracking category
- Category:Pages using infobox storm with unknown parameters (0)
- Category:Pages using infobox storm with redundant parameters (0)
- Pages using infobox storm with notes parameter (not a problem that requires any changes)
See also
- {{Infobox earthquake}}
- {{Infobox flood}}
- {{Infobox tropical cyclone}}
| The above documentation is transcluded from Template:Infobox storm/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |