Template:Infobox weather event/Current/doc: Difference between revisions
(TemplateData: block style) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 20:27, 8 April 2024
This is a documentation subpage for Template:Infobox weather event/Current. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
This subbox provides current storm information. It should be used for storms which are currently active and tracked by a Regional Specialized Meteorological Centre. It should be used in conjunction with the current/live versions of scale templates.
Place this below (or as a replacement of, particularly on season pages) the /History box. When using the main template (which has its own history box), keep the history parameters off to disable the "Meteorological history" header or use |no-history=
to suppress the box.
Wikitext | Output | ||||||||
---|---|---|---|---|---|---|---|---|---|
{{Infobox weather event
| name = Typhoon Zeta
}}{{Infobox weather event/Current
| as-of = {{LOCALHOUR}}:00 [[Coordinated Universal Time|UTC]], {{LOCALMONTHNAMEGEN}} {{LOCALDAY}}
| lat = 37.7
| lon = -122.4
| distance-from = {{convert|24855|nmi|round=5}} E of [[San Francisco]]
| movement = [[Points of the compass|WNW]] at {{cvt|9|kn}}
}}{{Infobox weather event/Footer}} |
|
When there are multiple storms in the same season page and this template is being used, the anchor at the header of the subbox will be incorrectly linked. To change this, set |sectnum=
to the section offset of the correct "Current storm information" section. For example, if this storm describes the storm with the third "Current storm information" section on the same page, use |sectnum=3
.
TemplateData
<templatedata> { "params": { "child": { "label": "Child display?", "description": "Whether this is a child box or not. Use `yes`, unless you're using this box standalone.", "example": "yes", "type": "boolean", "default": "yes" }, "bodystyle": { "label": "Body style", "description": "Custom CSS for the box", "type": "string", "default": "border-collapse: collapse" }, "article": { "aliases": [ "mainarticle", "stormarticle" ], "label": "Main storm article", "description": "The main article for this storm, if the storm has a page and this box is used on a season page.", "type": "wiki-page-name" }, "sectnum": { "label": "Current storm information section number", "description": "The n-th section number of the \"Current storm information\" section for this storm. See the documentation for more details.", "example": "2", "type": "number" }, "lat": { "label": "Latitude", "description": "Latitude of the storm's center in decimal form.", "example": "37.7", "type": "number", "suggested": true }, "lon": { "label": "Longitude", "description": "Longitude of the storm's center in decimal form.", "example": "-122.4", "type": "number", "suggested": true }, "coordinates": { "label": "Coordinates", "description": "Coordinates of the storm. Overrides \"lat\" and \"lon\", if provided. Be wary of precision, and include \"dim:1000km\" as an option to avoid zoomed-in boxes.", "example": "37°42′N 122°24′W / 37.7°N 122.4°W", "type": "content", "suggested": true }, "name": { "label": "Name", "description": "Name of this storm. By default, the page name is used.", "type": "wiki-page-name", "required": true }, "within-units": { "label": "Center uncertainty", "description": "The amount of uncertainty for the position of the center for the storm.", "example": "51 nautical miles (94 km; 59 mi)", "type": "content" }, "distance-from": { "label": "Distance from", "description": "The distance of the storm from a certain place. Usually provided in the format \"[distance] [direction] of [place]\".", "example": "24,855 nautical miles (46,030 km; 28,605 mi) E of San Francisco", "suggested": true }, "location": { "label": "Location", "description": "The location of the storm. Overridden by latitude, longitude, or coordinates.", "type": "content" }, "movement": { "label": "Movement", "description": "The storm's current movement. Usually written in knots.", "example": "WNW at 9 knots (17 km/h; 10 mph)", "type": "content", "suggestedvalues": [ "Almost stationary", "Stationary" ], "suggested": true }, "ref": { "aliases": [ "reference" ], "label": "Official data reference", "description": "If there is official and live data for the storm, providing a reference will link the official data at the bottom of the box and disable the box header.", "type": "content" }, "as of": { "aliases": [ "as-of", "time" ], "label": "As of", "description": "The time at which the data of the subbox is valid at.", "example": "14:00 UTC, January 1", "type": "string", "suggested": true } }, "paramOrder": [ "child", "bodystyle", "name", "article", "sectnum", "as of", "location", "lat", "lon", "coordinates", "within-units", "distance-from", "movement", "ref" ], "description": "A subbox for providing the current location and position of a weather event, used in conjunction with scale templates.", "format": "block" } </templatedata>