Misplaced Pages

Template:Infobox tropical cyclone current: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 13:22, 18 July 2014 editPigsonthewing (talk | contribs)Autopatrolled, Event coordinators, Extended confirmed users, Page movers, File movers, IP block exemptions, New page reviewers, Pending changes reviewers, Rollbackers, Template editors266,351 edits Undid revision 617396517 by United States Man (talk) Per consensus at TfD← Previous edit Revision as of 16:06, 18 July 2014 edit undoMaster of Time (talk | contribs)Autopatrolled, Extended confirmed users, Pending changes reviewers, Rollbackers27,641 edits Reverted good faith edits by Pigsonthewing: The merge still has some issues that need to be worked on, and this infobox still has some transclusions, so we need to wait a bit longer. There was a discussion at WT:WPTC. (TW)Next edit →
Line 1: Line 1:
{| class="infobox" <!--
#REDIRECT ]
=================================================================

Infobox - to display current storm/hurricane information
{{R from merge}}
=================================================================
(see "NOTES" at bottom)
--
--> border="0" cellspacing="0" cellpadding="1" style="border-collapse:collapse; margin:0 0 1em 1em;" align="right" width="280"
|-
! colspan=3 style="font-size:12pt; background-color:#EEEEEE; border-bottom:1px solid #AAAAAA; padding:0;" align="center" |
{| cellpadding="5" cellspacing="0" border="0" style="background-color:#EEEEEE; width:100%;" <!--see NOTE W2 below-->
|-
! style="width:30px;" |
! '''{{{name}}}'''
! style="border-left:1px solid #AAAAAA; padding:5; width:24px;background: #{{Storm colour|{{{category}}}}};" | <includeonly>{{hurricane status small|category={{{category}}}|type={{{type}}}}}</includeonly><noinclude>TC</noinclude>
|}
|- colspan=3
<!-- ------------------ ROW OF IMAGES ------------------ -->
| colspan=3 align="center" |<table
width=280 border="0" cellspacing=0 cellpadding=4 style="background-color:#F9F9F9; border-collapse:collapse; font-size:94%; line-height:125%;">
{{ #ifeq: {{{track|<noinclude>u</noinclude>}}}|{{{track|u}}}
|<tr width=280 style="padding-left:0px; padding-right:9px; padding-top:3px; padding-bottom:3px;"><td align=center valign=center><noinclude><br/><br/></noinclude>]<br><small>{{{image_caption|Satellite image}}}</td>
<td align=center valign=center>{{{track_topcaption|<br>}}}]<br><small>{{{track_caption|Forecast map}}}</td></tr>
|<!--else, no track-map --
--><tr colspan=2 style="padding-top:2px; padding-bottom:3px;">
<td>]<br><small>{{{image_caption|Satellite image}}}</td></tr>
}}<!--end ifeq track|u -->
</table><!--end images table-->
<!-- ------------------------------ row for AUScategory etc. -->
|- colspan=2
{{#if:{{{AUScategory|}}}
|<tr><th colspan="2" align=center style="border-top:1px solid #AAAAAA; background: #{{Storm colour|{{{category}}}}};"><includeonly>'''Current storm status'''<br />{{#switch:{{{AUScategory}}}
|cat1=Category 1
|cat2=Category 2
|cat3=Category 3
|cat4=Category 4
|cat5=Category 5
|storm=
|depression=
|unknown=Unknown strength
|#default=
}} {{#switch:{{{JMAtype}}}
|tropical storm=]
|subtropical storm=]
|tropical depression=]
|subtropical depression=]
|typhoon=Typhoon
|STS=Severe tropical storm
|#default=
}} {{#switch:{{{JMAcategory}}}
|typhoon=Typhoon
|storm=Tropical Storm
|depression=Tropical Depression
|unknown=Unknown strength
|STS=Severe Tropical Storm
|#default=
}} {{#switch:cyclone
|tropical storm=]
|subtropical storm=]
|tropical depression=]
|subtropical depression=]
|extratropical depression=Extratropical depression
|extratropical storm=Extratropical storm
|typhoon=typhoon
|hurricane=hurricane
|super typhoon=super typhoon
|cyclone=cyclone
|tropical cyclone=tropical cyclone
|super typhoon=super typhoon
|none=
|#default=]
}}</includeonly> (])</th></tr>
}}{{
#if:{{{JMAcategory|}}}
|<tr><th colspan="2" align=center style="border-top:1px solid #AAAAAA; background: #{{Storm colour|{{{JMAcategory}}}}};"><includeonly>'''Current storm status'''<br /> {{#switch:{{{JMAtype}}}
|tropical storm=]
|subtropical storm=]
|tropical depression=]
|subtropical depression=]
|typhoon=Typhoon
|STS=Severe tropical storm
|#default=
}} {{#switch:{{{JMAcategory}}}
|typhoon=
|storm=
|depression=
|unknown=Unknown strength
|STS=
|#default=
}} {{#switch:none
|tropical storm=]
|subtropical storm=]
|tropical depression=]
|subtropical depression=]
|extratropical depression=Extratropical depression
|extratropical storm=Extratropical storm
|post-tropical cyclone=]
|post-tropical cyclone H=post-tropical cyclone
|typhoon=typhoon
|hurricane=hurricane
|super typhoon=super typhoon
|cyclone=cyclone
|tropical cyclone=tropical cyclone
|super typhoon=super typhoon
|none=
|#default=]
}}</includeonly> (])</th></tr>
}}{{
#if:{{{category|}}}
|<tr><th colspan="2" align=center style="border-top:1px solid #AAAAAA; background: #<includeonly>{{Storm colour|{{{category}}}}}</includeonly>;"><includeonly>'''Current storm status'''<br />{{#switch:{{{category}}}
|cat1=Category 1
|cat2=Category 2
|cat3=Category 3
|cat4=Category 4
|cat5=Category 5
|storm=
|depression=
|unknown=Unknown strength
|#default=
}} {{#switch:{{{type}}}
|tropical storm=]
|subtropical storm=]
|tropical depression=]
|subtropical depression=]
|extratropical depression=Extratropical depression
|extratropical storm=Extratropical storm
|post-tropical cyclone=Post-tropical cyclone
|post-tropical cyclone H=post-tropical cyclone
|typhoon=typhoon
|hurricane=hurricane
|super typhoon=super typhoon
|cyclone=cyclone
|tropical cyclone=tropical cyclone
|super typhoon=super typhoon
|STS=]
|none=
|#default=]
}}</includeonly>&nbsp;(])</th></tr>
}}
<!-- ------------------------------------- Row for As of -->
|- colspan=1 style="background-color:#F0F0F0; border-top:1px solid #AAAAAA; border-bottom:1px solid #AAAAAA;"
! valign=top style="text-align:left; padding:0.1ex 0 0.1ex 5px;" | As of:
| valign=top style="padding:0.1ex 5px;" width="80%" | {{{time}}}
<!-- ------------------------------------- Row for Location -->
<!-- Putting the coordinates directly in location is deprecated; use lat and lon instead -->
|- colspan=1 style="border-bottom:1px solid #AAAAAA;"
! valign=top style="text-align:left; padding:0.1ex 0 0.1ex 5px;" | Location:
| valign=top style="padding:0.1ex 5px;" nowrap width="80%" | {{#if:{{{lat|}}}|{{#if:{{{lon|}}}
| {{coord|{{{lat}}}|{{{1}}}|{{{lon}}}|{{{2}}}|dim:1000km|name={{{name}}}|display=inline}} {{#if:{{{within_units|}}} | ± {{{within_units}}}}}
{{#if:{{{distance_from|}}}
|{{{distance_from}}}
}}
| {{{location}}}
}}
|{{{location}}}
}}
<!-- ------------------------------------- Row for Winds -->
|- colspan=1 style="background-color:#F0F0F0; border-top:1px solid #AAAAAA; border-bottom:1px solid #AAAAAA;"
! valign="top" style="text-align:left; padding:0.1ex 0 0.1ex 5px;" | Winds:
| valign="top" style="padding:0.1ex 5px;" width="80%" | {{
#if:{{{10sustained|}}}
| {{{10sustained}}} sustained (10-min mean)<br>
}}{{#if:{{{10average|}}}
| {{{10average}}} average (10-min mean)<br>
}}{{#if:{{{3sustained|}}}
| {{{3sustained}}} sustained (3-min mean)<br>
}}{{#if:{{{1sustained|}}}
| {{{1sustained}}} sustained (1-min mean)<br>
}}{{#if:{{{gusts|}}}
| gusting to {{{gusts}}}
}}
<!-- ------------------------------------- Row for Pressure -->
|- colspan=1 style="border-bottom:1px solid #AAAAAA;"
! valign="top" style="text-align:left; padding:0.1ex 0 0.1ex 5px;" | Pressure:
| valign="top" style="padding:0.1ex 5px;" nowrap width="80%" | {{{pressure}}}
<!-- ------------------------------------- Row for Movement -->
|- colspan=1 style="background-color:#F0F0F0; border-top:1px solid #AAAAAA; border-bottom:1px solid #AAAAAA;"
! valign="top" style="text-align:left; padding:0.1ex 0 0.1ex 5px;" | Movement:
| valign="top" style="padding:0.1ex 5px;" width="80%" | {{{movement}}}
<!-- ---------------------------------- Bottom bar See-more -->
|-
! colspan=3 align=center style="background: #{{Storm colour|{{{category}}}}};" | See more {{#if:{{{stormarticle|}}}
| ].<br>
|{{#if:{{{sectnum|}}}
| ].<br>
| ].<br>
}}
}}<!--
--
=============================== Check for invalid parameters -->
{{#if:{{{map|}}}|
<br>Invalid infobox parameter "map" - try "track=XXX.gif"}}{{
#if:{{{Category|}}}| <!--see NOTE F4 below-->
<br>Invalid infobox parameter "Category" - try lowercase "category=storm"}}{{
#if:{{{image_size|}}}|
<br>Invalid infobox parameter "image_size" - try "image_width=130px"}}{{
#if:{{{imagesize|}}}|
<br>Invalid infobox parameter "imagesize" - try "image_width=130px"}}{{
#if:{{{track_size|}}}|
<br>Invalid infobox parameter "track_size" - try "track_width=170px"}}{{
#if:{{{tracksize|}}}|
<br>Invalid infobox parameter "tracksize" - try "track_width=170px"}}
|}<!--end table--><!--
-- More coding beyond table-end can put blank lines in article.
--
--------------------------------------------- --><noinclude>
{{being deleted|2013 September 1|merge=Template:Infobox typhoon current}}
{{Documentation}}
<!--
===============================================================
--NOTES
-- The following are implementation notes, shown as footnotes
-- in the template coding above.
--
-- NOTE CS: These comment lines are kept inside wikiservers,
-- omitted as articles are formatted, not transmitted.
-- As of February 2008, the WP parser skips comments.
--
-- NOTE W2: This template is implemented as nested wikitables
-- (using "{|" in column 1).
--
-- NOTE I3: The "class=infobox" sets 2 predefined columns in
-- an infobox. Use "colspan=2" to span both columns.
--
-- NOTE F4: An if-statement can be indented when "{{" is left
-- on the previous line; otherwise, text gets boxed.
--
--HISTORY:
-- 26Jun10 New parameter: stormarticle
-- 13Jul06 Created as storm infobox.
-- 28Aug08 Converted to "class=infobox" from "class=toccolours".
-- 28Aug08 New parameters: image_width, track_width.
-- 28Aug08 New parameters: image_caption, track_caption.
-- 28Aug08 Added checking for invalid parameters at end.
-- 28Aug08 Created internal comment sections: NOTES & HISTORY.
-- 28Aug08 Fixed bug to show value of "1sustained".
-- 30Aug08 New "track_topcaption" as text/spaces over track map
-- 08Sep08 Fixed wide-box bug by data width="80%" (was 100%).
-- 08Sep08 Put internal comment lines separating each row.
--
-- (Note: Comment lines are in server, not transmitted in article.)
-->
</noinclude>

Revision as of 16:06, 18 July 2014

{{{name}}} TC


{{{image}}}
Satellite image

{{{track}}}
Forecast map
As of: {{{time}}}
Location: {{{location}}}
Winds:
Pressure: {{{pressure}}}
Movement: {{{movement}}}
See more detailed information.
This template is currently being merged with Template:Infobox typhoon current.
This template is being merged with another template, after which it will be redirected or deleted. Please check Misplaced Pages:Templates for discussion/Holding cell for any additional instructions. The decision to merge this template was made following this discussion initiated on 1 September 2013 at Templates for discussion.
Note: Please review this template's instructions at Misplaced Pages:Templates for discussion/Holding cell before proceeding with any type of merging.

%5B%5BWP%3ACSD%23G6%7CG6%5D%5D%3A+%5B%5BWikipedia%3ATemplates+for+discussion%2FLog%2F2013+September+1%23Template%3AInfobox+tropical+cyclone+current%5D%5D{{{CRITERION}}}

Template documentation[view] [edit] [history] [purge]
Template:Infobox tropical cyclone current is deprecated. Please use Template:Infobox weather event instead.
This template uses Lua:
This template may have no transclusions, because it is substituted by a tool or script, it is used as part of a short-term or less active Misplaced Pages process, or for some other reason.

Usage

Hurricane Hector 4
Hector 2018-08-06 1950Z.jpg
Satellite image

10E 2018 5day.png
Forecast map
Current storm status
Category 4 hurricane (1-min mean)
As of: 11:00 a.m. HST (21:00 UTC) August 6
Location: Coordinates: Unknown argument format
{{#coordinates:}}: invalid latitude ± 5 nm

About 850 mi (1,365 km) ESE of Hilo, Hawaii
About 1,055 mi (1,700 km) ESE of Honolulu, Hawaii

Winds: 135 kt (155 mph; 250 km/h) sustained (1-min mean)
gusting to 165 kt (190 mph; 305 km/h)
Pressure: 936 mbar (hPa; 27.64 inHg)
Movement: W at 14 kt (16 mph; 26 km/h)
See more detailed information.
{{Infobox tropical cyclone current
|name=Hurricane Hector
|category=cat4
|type=hurricane
|time=11:00 a.m. ] (21:00 ]) August 6
|image=Hector 2018-08-06 1950Z.jpg
|track=10E 2018 5day.png
|lat=15.2
|lon=-143.1
|within_units=5 ]
|distance_from=About 850 mi (1,365 km) ESE of ]<br>About 1,055 mi (1,700 km) ESE of ]
|1sustained=135 kt (155 mph; 250 km/h)
|gusts=165 kt (190 mph; 305 km/h)
|pressure=936 ] (]; 27.64 ])
|movement=] at 14 kt (16 mph; 26 km/h)
}}

Parameters

name Name of the storm, displayed on the top of the infobox
category Controls the background color of the infobox intensity fields. Use in combination with type to control the text displayed inside the intensity fields (see {{Hurricane status small}}). The table below shows some of the values the template can obtain:
Category Type
post-tropical post-tropical cyclone
potential potential tropical cyclone
depression tropical depression
subtropical depression
storm tropical storm
subtropical storm
cat1 hurricane
typhoon (1-4)
super typhoon (4-5)
tropical cyclone
cat2
cat3
cat4
cat5
image Image displayed on the left side of the infobox. Usually a satellite view of the storm. File:Temporary cyclone north.svg is used as a placeholder if this parameter is empty.
image_width Width of the file included via image. 130px by default.
image_caption Caption of the file included via image. "Satellite image" by default.
track Image displayed on the left side of the infobox. Usually a forecast map of the storm. File:Temporary cyclone north.svg is used as a placeholder if this parameter is empty.
track_topcaption Used to include text above the file included via track. Not currently used.
track_width Width of the file included via track. 170px by default.
track_caption Caption of the file included via track. "Forecast map" by default.
AUScategory Used to input the Australian intensity classification into the "current storm information" row.
JMAtype Used to input the RSMC Tokyo intensity classification type into the "current storm information" row.
JMAcategory Used to input the RSMC Tokyo intensity classification into the "current storm information" row.
IMDtype Used to input the RSMC New Delhi intensity classification type into the "current storm information" row.
IMDcategory Used to input the RSMC New Delhi intensity classification into the "current storm information" row.
MFRtype Used to input the RSMC La Réunion intensity classification type into the "current storm information" row.
MFRcategory Used to input the RSMC La Réunion intensity classification into the "current storm information" row.
time Advisory time
location Deprecated: Showed the position of the storm center and uncertainty; replaced with lat, lon, distance_from, and within_units instead.
lat The latitude of the storm as displayed in the location field. This parameter is used to create a coordinate using {{Coord}}.
Example: 20.6 converts to 20.6°N, -20.6 converts to 20.6°S.
lon The longitude of the storm as displayed in the location field. This parameter is used to create a coordinate using {{Coord}}.
Example: -41.7 converts to 41.7°W, 41.7 converts to 41.7°E
within_units The accuracy of the units displayed in the location field.
Example: 20 nm converts to ± 20 nm.
distance_from The distance the storm is from a certain city or island(s).
Example: About 1205 mi (1935 km) WNW of the Cape Verde Islands.
10sustained 10-minute sustained winds
10average 10-minute average winds
3sustained 3-minute sustained winds
1sustained 1-minute sustained winds
gusts Measured gusts
gusts-position The position of the "gusts" line on the infobox. The gusts will appear after the line of a given winds value. Setting this to 10sustained will make the gusts appear after 10-minute sustained winds, 10average will make the gusts appear after 10-minute average winds, and 3sustained will make the gusts appear after 3-minute sustained winds. Not using this parameter will fall back to the default placement of the gusts line: after 1-minute sustained winds.
pressure Central barometric pressure of storm
movement Direction and speed of storm
stormarticle Storm article containing the Current storm information section for the system. Do not include the #Current_storm_information anchor in the link; it is already added by the template. If absent, template assumes that the section is in the current article.
sectnum Used to disambiguate storms when there are multiple active storms being tracked in the same season article. For the second currently active storm, from top to bottom, set sectnum=2; for the third, sectnum=3, and so on. If absent, the template assumes there is only one #Current_storm_information anchor in the article.
ref Used to replace the link to the Current storm information section with an external link to an official warning center (by convention the basin's Regional Specialized Meteorological Center).

Latitude and longitude used to be supplied with the letter indicating the direction of the coordinate (N, W, E, or S). This is no longer recommended. Signed values (positive for North and East, negative for West and South) should now be used instead. Compatibility will eventually be removed. See the talk page for details.

See also

The above documentation is transcluded from Template:Infobox tropical cyclone current/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Categories: