Difference between revisions of "Template:Hurricane season bar start"

From blackwiki
Jump to navigation Jump to search
imported>AySz88
m (setup for key)
imported>Kaldari
(consistant background color)
 
(60 intermediate revisions by 23 users not shown)
Line 1: Line 1:
<div style="margin-left:-1.0em; margin-right: -1.0em"><div style="background-color: #EEEEEE; padding-bottom: 0.25em; padding-top: 0.25em; padding-left: 0.1em; padding-right: 1em; border-bottom: 1px solid #AAAAAA; border-top: 1px solid #AAAAAA"><table cellpadding="5" style="background-color: #EEEEEE; text-align: center; margin: auto;"><tr><td><center><b>Tropical cyclones of the [[{{{year}}} Atlantic hurricane season]]</b></center><table cellpadding="0" cellspacing="0" style="background-color: #EEEEEE; text-align: center; margin: auto; font-size: 90%;"><tr>
+
<includeonly><div class="hurricaneseason" style="margin: 1em 0; clear: both; background-color: #F6F6F6; padding: 0.25em 1em; border: 1px solid #AAAAAA;">
 +
<div style="text-align: left; position: relative;"><div style="position: absolute; top: 0; left: 0;">{{navbar|{{{year|}}} {{{region|}}} {{{type|}}} season buttons|mini=1}}</div></div>
 +
<table cellpadding="0" style="background-color: #F6F6F6; text-align: center; margin: auto;">
 +
<tr>
 +
<td colspan="3" align=center>
 +
'''Tropical cyclones of the [[{{{year}}} {{{region}}} {{{type}}} season]]'''
 +
{{#if:{{{timeline|<noinclude>1</noinclude>}}}{{{list|}}}{{{statistics|}}}
 +
|<small>
 +
}}{{#if:{{{list|<noinclude>1</noinclude>}}}
 +
|[[List of storms in the {{{year|}}} {{{region|}}} {{{type}}} season|List of storms]]{{#if:{{{statistics|<noinclude>1</noinclude>}}}{{{timeline|}}}|{{·}}}}
 +
}}{{#if:{{{statistics|<noinclude>1</noinclude>}}}
 +
|[[{{{year|}}} {{{region|}}} {{{type}}} season statistics|Statistics]]{{#if:{{{timeline|<noinclude>1</noinclude>}}}|{{·}}}}
 +
}}{{#if:{{{timeline|<noinclude>1</noinclude>}}}
 +
|[[Timeline of the {{{year|}}} {{{region|}}} {{{type}}} season|Timeline]]
 +
}}{{#if:{{{timeline|<noinclude>1</noinclude>}}}{{{list|}}}{{{statistics|}}}
 +
|</small>
 +
}}</td></tr>
 +
<tr><td>
 +
<table cellpadding="0" cellspacing="0" style="background-color: #F6F6F6; text-align: center; font-size: 90%;">
 +
<tr></includeonly><noinclude>
 +
{{documentation}}
 +
</noinclude>

Latest revision as of 08:15, 8 September 2012

Template documentation[view] [edit] [history] [purge]

Hurricane season bars templates

Overview

The hurricane season button bars have had a major design overhaul recently. Everything is more user friendly, and every hurricane basin now relies on the same templates.

  • You no longer need to find the basin-specific template for the hurricane season you want, every basin works the exact same way
  • Scale legends are automatically handled by the template, no need to search for the templates, or create a custom table for it
  • Links to portal, categories, books, wikiproject, and Wikimedia commons are now handled automatically
  • Ability to link to list of storms, timelines, statistics, and other common articles

Four templates are used in total

All are documented on this page.

{{Hurricane season bar start}}

Alright, first comes the start of the template. This is simple, just use

{{Hurricane season bar start
 |region=
 |year=
 |type=
}}
parameter |year= |region= |type=
possible
values
YYYY
YYYY–YY

Atlantic
Australian region
North Indian Ocean
Pacific
South-West Indian Ocean
South Pacific

cyclone
hurricane
typhoon

The basic idea is to match the title of the season. So for the 2005–06 Australian region cyclone season

  • |year=2005–06
  • |region=Australian region
  • |type=cyclone

In addition, if a list of storms, timeline, and/or statistics article exist for that season, add

 |list=yes
 |timeline=yes
 |statistics=yes

If they do not exist, just leave them out (i.e. |timeline=no will still produce a link to the timeline)

{{Hurricane season bar button}}

This is a bit more complicated than the first template, but is still straightforward. It goes like this

{{Hurricane season bar button
 |intensity=
 |stormname=
 |strength=
 |linkname=
 |storminitial=
}}
parameter value
|intensity= See {{storm colour}}, use directly, aka
  • |intensity=cat1

and not

|stormname= Name of the storm, without year, etc..., aka
  • Arthur

Not

  • Arthur (1996)
|strength= Tropical Depression, Category 5, etc...
|linkname= Main article for this storm, e.g.
  • Tropical Storm Kyle (1996)

Alternatively, the "season#section" link, e.g.

  • 1996 Atlantic hurricane season#Tropical Storm Gustav
|storminitial= The initial for the storm. This is what is displayed as a button.


{{Hurricane season bar gap}} [optional]

When there are over 14 buttons in a season insert {{Hurricane season bar gap}} between two {{Hurricane season bar button}} to make the button list split over an additional line.

  • Place them so the second line has as many buttons as the first one, or one less.

When there's over 28 buttons, use two {{Hurricane season bar gap}} templates.

  • The first and second lines should have an equal number of buttons.
  • The third line can have one or two less buttons than the first two lines.

When there's over 42 buttons, use three {{Hurricane season bar gap}} templates.

  • The first, second and third lines should have an equal number of buttons.
  • The fourth line can have one, two, or three less buttons than the first three lines.

And so on. This template has no parameters.

{{Hurricane season bar end}}

This works just like {{Hurricane season bar start}}, except there is only three parameters.

{{Hurricane season bar start
 |region=
 |year=
 |type=
}}

These are the same parameters as before, so use the same values.

If you did it right...

If you did it right, you should end up with something that looks a lot like this

If you did it wrong, ask for help at WT:WPTC.