Template:Hurricane season bar: Difference between revisions
Appearance
Content deleted Content added
auto-fill track map |
Wikiproject inclusion in navboxes fails WP:SELFREF |
||
(47 intermediate revisions by 20 users not shown) | |||
Line 1: | Line 1: | ||
{{#invoke:navbox|navbox |
|||
{{Navbox |
|||
|templatestyles=Hurricane season bar/styles.css |
|||
|name={{{year|}}} {{{region|}}} {{{type|}}} season buttons |
|name=<includeonly>{{{year|}}} {{{region|}}} {{{type|}}} season buttons</includeonly> |
||
|title=Tropical cyclones of the [[{{{year|}}} {{{region|}}} {{{type|}}} season]] |
|title=Tropical cyclones of the [[{{{year|}}} {{{region|}}} {{{type|}}} season]] |
||
| |
|bodyclass=hlist |
||
|imageleft=[[{{{trackmap| |
|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--> |
||
|{{#switch:{{{region|}}} {{{type|}}} |
|||
|Atlantic hurricane={{Saffir-Simpson small}} |
|||
|Pacific hurricane={{Saffir-Simpson small}} |
|||
|Pacific typhoon={{JMA small}} |
|||
|Philippine typhoon={{JMA small}} |
|||
|North Indian Ocean cyclone={{IMD small}} |
|||
|South-West Indian Ocean cyclone={{MFR Scale small}} |
|||
|Australian region cyclone={{BOM Scale small}} |
|||
|South Pacific cyclone={{FMS Scale small}} |
|||
|{{Saffir-Simpson small}} |
|||
⚫ | |||
}} |
|||
<!-- disabled the above auto-hide until I figure out how this works |
<!-- disabled the above auto-hide until I figure out how this works |
||
{{#if:{{{timeline|<noinclude>1</noinclude>}}}{{{list|}}}{{{statistics|}}} |
{{#if:{{{timeline|<noinclude>1</noinclude>}}}{{{list|}}}{{{statistics|}}} |
||
Line 12: | Line 24: | ||
|above= |
|above= |
||
{{#if:{{{list|<noinclude>1</noinclude>}}} |
{{#if:{{{list|<noinclude>1</noinclude>}}} |
||
|[[List of storms in the {{{year|}}} {{{region|}}} {{{type}}} season|List of storms]]{{#if:{{{statistics|<noinclude>1</noinclude>}}}{{{timeline|}}}| |
|* [[List of storms in the {{{year|}}} {{{region|}}} {{{type}}} season|List of storms]]{{#if:{{{statistics|<noinclude>1</noinclude>}}}{{{timeline|}}}|}} |
||
}}{{#if:{{{statistics|<noinclude>1</noinclude>}}} |
}}{{#if:{{{statistics|<noinclude>1</noinclude>}}} |
||
|[[{{{year|}}} {{{region|}}} {{{type}}} season statistics|Statistics]]{{#if:{{{timeline|<noinclude>1</noinclude>}}}| |
|* [[{{{year|}}} {{{region|}}} {{{type}}} season statistics|Statistics]]{{#if:{{{timeline|<noinclude>1</noinclude>}}}|}} |
||
}}{{#if:{{{timeline|<noinclude>1</noinclude>}}} |
}}{{#if:{{{timeline|<noinclude>1</noinclude>}}} |
||
|[[Timeline of the {{{year|}}} {{{region|}}} {{{type}}} season|Timeline]] |
|* [[Timeline of the {{{year|}}} {{{region|}}} {{{type}}} season|Timeline]] |
||
}}{{#if:{{{timeline|<noinclude>1</noinclude>}}}{{{list|}}}{{{statistics|}}} |
}}{{#if:{{{timeline|<noinclude>1</noinclude>}}}{{{list|}}}{{{statistics|}}} |
||
}} |
}} |
||
|list1 = |
|list1 = |
||
{{Wikipedia:WikiProject Tropical cyclones/Idea/HSBS}} |
|||
{{{storms}}} |
{{{storms}}} |
||
{{Wikipedia:WikiProject Tropical cyclones/Idea/HSBE}} |
|||
|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]] |
|||
}}<noinclude>{{documentation}}</noinclude> |
|||
⚫ |
Latest revision as of 15:09, 8 July 2024
This template is used on approximately 2,500 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses TemplateStyles: |
This template allows a navigational template to be set up for supplying lists of links for tropical storms. It uses Template:Navbox as its backend.
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
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.
- stormhistorylink
- The link to the independent page of the meteorological history of a tropical cyclone.