Difference between revisions of "Template:Hurricane season bar"
Jump to navigation
Jump to search
imported>WOSlinker (belowclass = hlist) |
imported>UnitedStatesian (rm books: currently depricated) |
||
(15 intermediate revisions by 10 users not shown) | |||
Line 3: | Line 3: | ||
|title=Tropical cyclones of the [[{{{year|}}} {{{region|}}} {{{type|}}} season]] | |title=Tropical cyclones of the [[{{{year|}}} {{{region|}}} {{{type|}}} season]] | ||
|listclass =hlist | |listclass =hlist | ||
− | |imageleft={{#if:{{{trackmap|}}} | [[File:{{{trackmap|}}}|100px | + | |imageleft={{#if:{{{trackmap|}}} | [[File:{{{trackmap|}}}|100px]] | {{#ifexist: Media:{{{year|}}} {{{region|}}} {{{type|}}} season summary map.png | [[File:{{{year|}}} {{{region|}}} {{{type|}}} season summary map.png|100px]] | {{#ifexist: Media:{{{year|}}} {{{region|}}} {{{type|}}} season summary.jpg | [[File:{{{year|}}} {{{region|}}} {{{type|}}} season summary.jpg|100px]] | }} }} |
|{{{scale|}}}<!--Overrides default setting. Used {{Saffir-Simpson scale}} or similar directly--> | |{{{scale|}}}<!--Overrides default setting. Used {{Saffir-Simpson scale}} or similar directly--> | ||
|{{#switch:{{{region|}}} {{{type|}}} | |{{#switch:{{{region|}}} {{{type|}}} | ||
Line 9: | Line 9: | ||
|Pacific hurricane={{Saffir-Simpson small}} | |Pacific hurricane={{Saffir-Simpson small}} | ||
|Pacific typhoon={{JMA small}} | |Pacific typhoon={{JMA small}} | ||
+ | |Philippine typhoon={{JMA small}} | ||
|North Indian Ocean cyclone={{IMD small}} | |North Indian Ocean cyclone={{IMD small}} | ||
|South-West Indian Ocean cyclone={{MFR Scale small}} | |South-West Indian Ocean cyclone={{MFR Scale small}} | ||
Line 29: | Line 30: | ||
}}{{#if:{{{timeline|<noinclude>1</noinclude>}}}{{{list|}}}{{{statistics|}}} | }}{{#if:{{{timeline|<noinclude>1</noinclude>}}}{{{list|}}}{{{statistics|}}} | ||
}} | }} | ||
− | |||
|list1 = | |list1 = | ||
Line 38: | Line 38: | ||
|belowclass = hlist | |belowclass = hlist | ||
|below= | |below= | ||
− | + | * '''{{Icon|Category}} [[:Category:{{#iferror:{{#ifexpr:{{{year|}}}<1950|{{#expr:({{{year|}}}-5) round trunc-1}}s |{{{year|}}} }}|{{{year|}}} }} {{{region|}}} {{{type|}}} season{{#iferror:{{#ifexpr:{{{year|}}}<1950|s}}|}}|Category]]''' | |
− | * '''{{Icon|Category}} [[:Category:{{#iferror:{{#ifexpr:{{{year|}}}<1950|{{#expr:({{{year|}}}-5) round trunc-1}} | ||
* '''{{Icon|Portal}} [[Portal:Tropical cyclones|Portal]]''' | * '''{{Icon|Portal}} [[Portal:Tropical cyclones|Portal]]''' | ||
− | |||
− | |||
− | }}<noinclude> | + | }}<noinclude>{{documentation}}</noinclude> |
Latest revision as of 17:43, 11 October 2020
This template allows a navigational template to be set up for supplying ae lists of links for tropical storms. It uses Template:Navbox as its backend.
Contents
Parameter List
Please remove the parameters that are left blank.
{{Hurricane season bar | region = | year = | type = |storms= {{Hurricane season bar/button | intensity = | stormname = | linkname = }} {{Hurricane season bar/button | intensity = | stormname = | linkname = }} <!-- ... --> {{Hurricane season bar/button | intensity = | stormname = | linkname = }} }}
Usage
{{ Template:PAGENAMETDOC }}
This template uses the following common parameters. More detailed descriptions are listed below.
region
– the geographical location of the storms intended to be used in this template.year
– the year that pertains this template.type
– the type of tropical storms that pertains this template.storms
– the list of storms for this navbox. Each storm is encapsulated in{{Hurricane season bar/button}}
with the following additional parameters:intensity
– the strength of the storm.stormname
– the name of the storm.linkname
– the link for the storm where more information can be found.
Parameter descriptions
The following are parameters for this template. Entering the region
, year
, and type
setups the title for this navbox template and creates a link to the parent article described by those parameters. It also pulls the relevant thumbnail for the navbox to use.
Setup parameters
- region
- The geographical location of the storms that pertains to this template. The following are currently valid values for this parameter:
Atlantic
Australian region
Pacific
North Indian Ocean
South Indian Ocean
South Pacific
- year
- The year the storms that pertains to this template were formed. Values may either be singular years or multi-year, depending on how each geographical location tracks their storm. See Category:Tropical_cyclone_seasons for reference.
- type
- This is the tropical storm's geographical name that goes hand-in-hand with its region parameter. Atlantic typhoons, for example, don't exist. The following are current valid values for this parameter:
cyclone
hurricane
typhoon
- trackmap
- This is an optional parameter should a custom image for the trackmap be desired instead of the one pulled automatically or if the automatic pull fails.
- storms
- This parameter is responsible for listing the different storms. It uses Template: Hurricane season bar/button for each storm listed. See below for detailed information about the parameters.
Storm parameters
- intensity
- This sets the color and icon for the storm depending on its tropical cyclone intensity. Possible values are transcluded below.
- stormname
- The storm's name and the name displayed on this template.
- linkname
- If desired and/or available, a link can be added that allows the user to click it to read more detailed information about the storm.
Valid Intensities
The above documentation is transcluded from Template:Hurricane season bar/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. |