Difference between revisions of "Template:Infobox storm/sandbox"
imported>Frietjes |
imported>Frietjes |
||
| (One intermediate revision by the same user not shown) | |||
| Line 33: | Line 33: | ||
|label4 = Dissipated | |label4 = Dissipated | ||
|data4 = {{if empty|{{{dissipated|}}}|{{{date dissipated|}}}}} | |data4 = {{if empty|{{{dissipated|}}}|{{{date dissipated|}}}}} | ||
| − | |label5 = Lowest pressure | + | |label5 = {{#if:{{{highest pressure|}}}|Highest pressure|Lowest pressure}} |
| − | |data5 = {{#if:{{{lowest pressure|}}}|{{Convert|{{{lowest pressure|}}}|mb|inHg|abbr=on|lk=on|sigfig=4}}|{{{pressure|}}}}} | + | |data5 = {{if empty|{{{highest pressure|}}}|{{#if:{{{lowest pressure|}}}|{{Convert|{{{lowest pressure|}}}|mb|inHg|abbr=on|lk=on|sigfig=4}}}}|{{{pressure|}}}}} |
| − | |label6 = Lowest temperature | + | |label6 = {{#if:{{{highest temperature|}}}|Highest temperature|Lowest temperature}} |
| − | |data6 = {{{lowest temperature|}}} | + | |data6 = {{if empty|{{{highest temperature|}}}|{{{lowest temperature|}}}}} |
|label7 = Tornadoes confirmed | |label7 = Tornadoes confirmed | ||
|data7 = {{{tornadoes|}}} | |data7 = {{{tornadoes|}}} | ||
| Line 50: | Line 50: | ||
}} | }} | ||
|label11 = Highest gust | |label11 = Highest gust | ||
| − | |data11 = {{#if:{{{gusts|}}}{{{gust|}}}|{{#iferror:{{#expr:1+{{if empty|{{{gusts|}}}|{{{gust}}}}}+1}}|{{if empty|{{{gusts|}}}|{{{gust|}}}}}|{{if empty|{{{gusts prefix|}}}|{{{pregusts|}}}}}{{#expr:((1.852*{{{gusts}}})/5 round 0)*5}} km/h ({{#expr:((1.151*{{{gusts}}})/5 round 0)*5}} mph){{{gusts suffix|}}} }} }} | + | |data11 = {{#if:{{{gusts|}}}{{{gust|}}}|{{#iferror:{{#expr:1+{{if empty|{{{gusts|}}}|{{{gust}}}}}+1}}|{{if empty|{{{gusts|}}}|{{{gust|}}}}}|{{if empty|{{{gusts prefix|}}}|{{{pregusts|}}}}}{{#expr:((1.852*{{if empty|{{{gusts|}}}|{{{gust}}}}})/5 round 0)*5}} km/h ({{#expr:((1.151*{{if empty|{{{gusts|}}}|{{{gust}}}}})/5 round 0)*5}} mph){{{gusts suffix|}}} }} }} |
|label12 = [[Beaufort scale]] | |label12 = [[Beaufort scale]] | ||
|data12 = {{{beaufort scale|}}} | |data12 = {{{beaufort scale|}}} | ||
| Line 72: | Line 72: | ||
|1={{#if:{{{fujitascale|}}}|<sup>1</sup>''Most severe tornado damage; see [[{{#ifeq:{{{enhanced|}}}|yes|Enhanced Fujita scale|Fujita scale}}]]''}} | |1={{#if:{{{fujitascale|}}}|<sup>1</sup>''Most severe tornado damage; see [[{{#ifeq:{{{enhanced|}}}|yes|Enhanced Fujita scale|Fujita scale}}]]''}} | ||
|2={{#if:{{{tornado duration|}}}|<sup>2</sup>''Time from first tornado to last tornado''}} | |2={{#if:{{{tornado duration|}}}|<sup>2</sup>''Time from first tornado to last tornado''}} | ||
| − | |3= | + | |3={{{notes|}}} |
| − | {{{notes|}}} | ||
}} | }} | ||
|belowstyle = border-top:1px solid #aaaaaa; | |belowstyle = border-top:1px solid #aaaaaa; | ||
| − | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox storm with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox storm]] with unknown parameter "_VALUE_"|ignoreblank=y| 1-min prefix | 1-min suffix | 1-min winds | 10-min prefix | 10-min suffix | 10-min winds | active | affected | alt | areas affected | beaufort scale | caption | casualties | countries affected | current advisories | damages | date dissipated | date formed | dissipated | enhanced | event | fatalities | formed | fujitascale | gust | gusts | gusts prefix | gusts suffix | hail | highest winds | image | image alt | image location | image name | location | lowest pressure | lowest temperature | maximum amount | maximum rain | maximum snow | name | notes | partof | power outages | pregusts | pressure | RSI | snow fatalities | stormtype | sustained wind | tornado duration | tornadoes | total damages (USD) | total fatalities | total snow damages (USD) | type | + | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox storm with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox storm]] with unknown parameter "_VALUE_"|ignoreblank=y| 1-min prefix | 1-min suffix | 1-min winds | 10-min prefix | 10-min suffix | 10-min winds | active | affected | alt | areas affected | beaufort scale | caption | casualties | countries affected | current advisories | damages | date dissipated | date formed | dissipated | enhanced | event | fatalities | formed | fujitascale | gust | gusts | gusts prefix | gusts suffix | hail | highest pressure | highest temperature | highest winds | image | image alt | image location | image name | location | lowest pressure | lowest temperature | maximum amount | maximum rain | maximum snow | name | notes | partof | power outages | pregusts | pressure | RSI | snow fatalities | stormtype | sustained wind | tornado duration | tornadoes | total damages (USD) | total fatalities | total snow damages (USD) | type |
| − | }}{{#if:{{{notes|}}}| | + | }}{{main other|{{#if:{{{notes|}}}| |
[[Category:Pages using infobox storm with notes parameter]] | [[Category:Pages using infobox storm with notes parameter]] | ||
| − | }} | + | }} |
| − | |||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 13:03, 5 March 2020
| Script error: No such module "If empty". Script error: No such module "If empty". | |
| Type | Script error: No such module "If empty". |
|---|---|
| Formed | Script error: No such module "If empty". |
| Dissipated | Script error: No such module "If empty". |
| Lowest pressure | Script error: No such module "If empty". |
| Lowest temperature | Script error: No such module "If empty". |
| Maximum snowfall or ice accretion | Script error: No such module "If empty". |
| Damage | Script error: No such module "If empty". |
| Casualties | Script error: No such module "If empty". |
| Areas affected | Script error: No such module "If empty". |
| 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. |