Difference between revisions of "Template:Infobox storm/doc"
(add ifeq) |
imported>LightandDark2000 (Fix.) |
||
| (22 intermediate revisions by 12 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | ||
| + | {{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}} | ||
| + | |||
This template may be used in articles about storms, including cyclones and winter storms. | This template may be used in articles about storms, including cyclones and winter storms. | ||
| + | |||
== Usage == | == Usage == | ||
| − | {{Parameter names example|name| | + | {{Parameter names example|name|partof|RSI=1|image|alt|caption|type|formed|active|dissipated|pressure|lowest temperature|tornadoes|fujitascale|fujitascale ref|enhanced|tornado duration|beaufort scale|10-min winds=0|10-min prefix|10-min suffix|1-min winds=0|highest winds=0|gusts=0|1-min prefix|1-min suffix|hail|maximum snow|maximum rain|damages|power outages|fatalities|areas affected|current advisories|notes}} |
| + | |||
<pre style="overflow: auto;"> | <pre style="overflow: auto;"> | ||
{{Infobox storm | {{Infobox storm | ||
| Line 18: | Line 22: | ||
| tornadoes = | | tornadoes = | ||
| fujitascale = | | fujitascale = | ||
| + | | enhanced = <!-- yes = Enhanced Fujita scale --> | ||
| + | | fujitascale ref = | ||
| tornado duration = | | tornado duration = | ||
| highest winds = <!-- in km/h, gets automatically converted to mph and knots --> | | highest winds = <!-- in km/h, gets automatically converted to mph and knots --> | ||
| gusts = | | gusts = | ||
| + | | beaufort scale = | ||
| hail = | | hail = | ||
| maximum snow = <!-- maximum snowfall or ice accretion --> | | maximum snow = <!-- maximum snowfall or ice accretion --> | ||
| + | | maximum rain = <!-- maximum rainfall --> | ||
| + | | damages = | ||
| power outages = | | power outages = | ||
| − | | | + | | fatalities = |
| − | | | + | | areas affected = |
| − | |||
| current advisories = | | current advisories = | ||
| − | | | + | | partof = |
| notes = | | notes = | ||
}} | }} | ||
| Line 39: | Line 47: | ||
| RSI = <!-- Regional Snowfall Index --> | | RSI = <!-- Regional Snowfall Index --> | ||
</pre> | </pre> | ||
| + | {{clear}} | ||
| + | |||
| + | ==TemplateData== | ||
| + | {{TemplateData header}} | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "name": { | ||
| + | "aliases": [ | ||
| + | "event" | ||
| + | ], | ||
| + | "label": "Name", | ||
| + | "description": "Name of storm", | ||
| + | "example": "Hurricane Katrina", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "image": { | ||
| + | "aliases": [ | ||
| + | "image location" | ||
| + | ], | ||
| + | "label": "Image" | ||
| + | }, | ||
| + | "image alt": { | ||
| + | "aliases": [ | ||
| + | "alt" | ||
| + | ], | ||
| + | "label": "Image alternative text", | ||
| + | "description": "Alternative text for image.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "caption": { | ||
| + | "aliases": [ | ||
| + | "image name" | ||
| + | ], | ||
| + | "label": "Image caption", | ||
| + | "description": "Caption beneath image.", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "type": { | ||
| + | "aliases": [ | ||
| + | "stormtype" | ||
| + | ], | ||
| + | "label": "Type", | ||
| + | "description": "Storm type", | ||
| + | "example": "Blizzard", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "formed": { | ||
| + | "aliases": [ | ||
| + | "date formed" | ||
| + | ], | ||
| + | "label": "Formed", | ||
| + | "description": "Date storm started", | ||
| + | "type": "date" | ||
| + | }, | ||
| + | "active": { | ||
| + | "label": "Duration", | ||
| + | "description": "Time period storm was active", | ||
| + | "type": "string", | ||
| + | "aliases": [ | ||
| + | "duration" | ||
| + | ] | ||
| + | }, | ||
| + | "dissipated": { | ||
| + | "aliases": [ | ||
| + | "date dissipated" | ||
| + | ], | ||
| + | "label": "Dissipated", | ||
| + | "description": "Date storm ended", | ||
| + | "type": "date" | ||
| + | }, | ||
| + | "lowest pressure": { | ||
| + | "label": "Lowest pressure", | ||
| + | "description": "in mb/hPa", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "pressure": {}, | ||
| + | "lowest temperature": { | ||
| + | "label": "Lowest temperature", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "tornadoes": { | ||
| + | "label": "Tornadoes confirmed", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "fujitascale": { | ||
| + | "label": "Fujita scale / Enhanced Fujita scale", | ||
| + | "description": "add parameter enhanced=yes for Enhanced Fujita scale", | ||
| + | "example": "EF4", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "enhanced": { | ||
| + | "label": "Enhanced Fujita scale", | ||
| + | "description": "Set to yes if fujitascale is enhanced", | ||
| + | "example": "yes", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "tornado duration": { | ||
| + | "label": "Duration of tornado outbreak", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "10-min winds": {}, | ||
| + | "10-min prefix": {}, | ||
| + | "10-min suffix": {}, | ||
| + | "1-min winds": {}, | ||
| + | "1-min prefix": {}, | ||
| + | "1-min suffix": {}, | ||
| + | "highest winds": { | ||
| + | "description": "in km/h" | ||
| + | }, | ||
| + | "sustained wind": {}, | ||
| + | "gusts": { | ||
| + | "aliases": [ | ||
| + | "gust" | ||
| + | ], | ||
| + | "label": "Highest gust" | ||
| + | }, | ||
| + | "gusts prefix": { | ||
| + | "aliases": [ | ||
| + | "pregusts" | ||
| + | ] | ||
| + | }, | ||
| + | "gusts suffix": {}, | ||
| + | "beaufort scale": {}, | ||
| + | "hail": { | ||
| + | "label": "Largest hail" | ||
| + | }, | ||
| + | "RSI": { | ||
| + | "label": "Regional Snowfall Index" | ||
| + | }, | ||
| + | "maximum snow": { | ||
| + | "aliases": [ | ||
| + | "maximum amount" | ||
| + | ], | ||
| + | "label": "Maximum snowfall or ice accretion" | ||
| + | }, | ||
| + | "maximum rain": { | ||
| + | "label": "Maximum rainfall" | ||
| + | }, | ||
| + | "damages": { | ||
| + | "aliases": [ | ||
| + | "total damages (USD)", | ||
| + | "total snow damages (USD)" | ||
| + | ], | ||
| + | "label": "Damage" | ||
| + | }, | ||
| + | "power outages": {}, | ||
| + | "casualties": { | ||
| + | "aliases": [ | ||
| + | "total casualties", | ||
| + | "snow casualties", | ||
| + | "fatalities", | ||
| + | "total fatalities" | ||
| + | ], | ||
| + | "label": "Casualties" | ||
| + | }, | ||
| + | "affected": { | ||
| + | "aliases": [ | ||
| + | "areas affected", | ||
| + | "countries affected", | ||
| + | "location" | ||
| + | ], | ||
| + | "label": "Areas affected", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "current advisories": {}, | ||
| + | "notes": {}, | ||
| + | "fujitascale ref": {}, | ||
| + | "partof": { | ||
| + | "label": "Part of" | ||
| + | } | ||
| + | }, | ||
| + | "description": "Infobox for a storm", | ||
| + | "format": "block", | ||
| + | "paramOrder": [ | ||
| + | "name", | ||
| + | "image", | ||
| + | "image alt", | ||
| + | "caption", | ||
| + | "type", | ||
| + | "formed", | ||
| + | "active", | ||
| + | "dissipated", | ||
| + | "lowest pressure", | ||
| + | "pressure", | ||
| + | "lowest temperature", | ||
| + | "tornadoes", | ||
| + | "fujitascale", | ||
| + | "enhanced", | ||
| + | "fujitascale ref", | ||
| + | "tornado duration", | ||
| + | "10-min winds", | ||
| + | "10-min prefix", | ||
| + | "10-min suffix", | ||
| + | "1-min winds", | ||
| + | "1-min prefix", | ||
| + | "1-min suffix", | ||
| + | "highest winds", | ||
| + | "sustained wind", | ||
| + | "gusts", | ||
| + | "gusts prefix", | ||
| + | "gusts suffix", | ||
| + | "beaufort scale", | ||
| + | "hail", | ||
| + | "RSI", | ||
| + | "maximum snow", | ||
| + | "maximum rain", | ||
| + | "damages", | ||
| + | "power outages", | ||
| + | "casualties", | ||
| + | "affected", | ||
| + | "current advisories", | ||
| + | "partof", | ||
| + | "notes" | ||
| + | ] | ||
| + | } | ||
| + | </templatedata> | ||
| + | |||
| + | == Tracking category == | ||
| + | * {{clc|Pages using infobox storm with unknown parameters}} | ||
| + | * {{clc|Pages using infobox storm with redundant parameters}} | ||
| + | * {{c|Pages using infobox storm with notes parameter}} (not a problem that requires any changes) | ||
== See also == | == See also == | ||
*{{tl|Infobox earthquake}} | *{{tl|Infobox earthquake}} | ||
*{{tl|Infobox flood}} | *{{tl|Infobox flood}} | ||
| − | *{{tl|Infobox | + | *{{tl|Infobox tropical cyclone}} |
| − | <includeonly>{{ | + | <includeonly>{{Sandbox other|| |
<!-- Categories go here, and interwikis go in Wikidata --> | <!-- Categories go here, and interwikis go in Wikidata --> | ||
[[Category:Weather infobox templates|Storm]] | [[Category:Weather infobox templates|Storm]] | ||
| + | [[Category:Templates that add a tracking category]] | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 22:04, 13 September 2020
| This is a documentation subpage for Template:Infobox storm. It contains usage information, categories and other content that is not part of the original template page. |
| 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}}