Content deleted Content added
High-use template |
No edit summary |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 9:
|noprotcat=yes
}}
This template is used to control a multitude of tropical cyclone-related templates: {{t|storm colour}}, {{t|storm name
Data is located in the following submodules:
Line 29:
|-
||<code><nowiki><span style="padding:4px;border:1px solid black;background-color:#{{#invoke:Storm categories|color|depression}}">depression</span></nowiki></code>
|<span style="padding:4px;border:1px solid black;background-color:#{{#invoke:Storm categories{{sandbox other|/sandbox}}|color|depression}}">depression</span>
|}
Line 46:
|severe
|{{gray|''(default)''}}
|{{#invoke:Storm categories{{sandbox other|/sandbox}}|name|severe}}
|-
||<code><nowiki>{{#invoke:Storm categories|name|spr - cYcL -s TorM}}</nowiki></code>
|sprcyclstorm
|{{gray|''(default)''}}
|{{#invoke:Storm categories{{sandbox other|/sandbox}}|name|spr - cYcL -s TorM}}
|-
||<code><nowiki>{{#invoke:Storm categories|name|cat5}}</nowiki></code>
|cat5
|{{gray|''(default)''}}
|{{#invoke:Storm categories{{sandbox other|/sandbox}}|name|cat5}}
|-
||<code><nowiki>{{#invoke:Storm categories|name|cat5|ATl}}</nowiki></code>
|cat5
|ATl
|{{#invoke:Storm categories{{sandbox other|/sandbox}}|name|cat5|ATl}}
|-
||<code><nowiki>{{#invoke:Storm categories|name|cat5|WPac}}</nowiki></code>
|cat5
|WPac
|{{#invoke:Storm categories{{sandbox other|/sandbox}}|name|cat5|WPac}}
|}
Line 67 ⟶ 72:
The sortkey is a number that aids in sorting categories. Using the sortkey, it is possible to automatically sort a table of tropical cyclones given their category code. Due to the ambiguous nature of sortkeys, tables may be sorted incorrectly if values from other basins were used. For categories that span multiple basins, however, (e.g. <code>depression</code> and <code>storm</code>) they are given the lowest possible sortkeys in order to achieve maximum compatibility.
{{#ifeq:{{BASEPAGENAME}}|Storm categories|
<p>This sortkey is used in
}}
The sortkey format is as follows. Note that not all values between the given ranges were used. The arrangement of these were determined by their positions in the {{T|Storm colour}} template.
Line 104 ⟶ 109:
! data-sort-type="number" | Sortkey
! Code
|- style="background-color:#{{#invoke:Storm categories{{sandbox other|/sandbox}}|color|cat3}}" |
| cat3
| {{nts|{{#invoke:Storm categories{{sandbox other|/sandbox}}|sortkey|cat3}}}}
|| <code><nowiki>{{#invoke:Storm categories|sortkey|cat3}}</nowiki></code>
|- style="background-color:#{{#invoke:Storm categories{{sandbox other|/sandbox}}|color|cat1}}"
| cat1
| {{nts|{{#invoke:Storm categories{{sandbox other|/sandbox}}|sortkey|cat1}}}}
|| <code><nowiki>{{#invoke:Storm categories|sortkey|cat1}}</nowiki></code>
|- style="background-color:#{{#invoke:Storm categories{{sandbox other|/sandbox}}|color|cat5}}"
| cat5
| {{nts|{{#invoke:Storm categories{{sandbox other|/sandbox}}|sortkey|cat5}}}}
|| <code><nowiki>{{#invoke:Storm categories|sortkey|cat5}}</nowiki></code>
|- style="background-color:#{{#invoke:Storm categories{{sandbox other|/sandbox}}|color|cat4}}"
| cat4
| {{nts|{{#invoke:Storm categories{{sandbox other|/sandbox}}|sortkey|cat4}}}}
|| <code><nowiki>{{#invoke:Storm categories|sortkey|cat4}}</nowiki></code>
|- style="background-color:#{{#invoke:Storm categories{{sandbox other|/sandbox}}|color|depression}}"
| depression
| {{nts|{{#invoke:Storm categories{{sandbox other|/sandbox}}|sortkey|depression}}}}
|| <code><nowiki>{{#invoke:Storm categories|sortkey|depression}}</nowiki></code>
|- style="background-color:#{{#invoke:Storm categories{{sandbox other|/sandbox}}|color|cat2}}"
| cat2
| {{nts|{{#invoke:Storm categories{{sandbox other|/sandbox}}|sortkey|cat2}}}}
|| <code><nowiki>{{#invoke:Storm categories|sortkey|cat2}}</nowiki></code>
|}
Line 135 ⟶ 140:
! Sortkey
! Code
|- style="background-color:#{{#invoke:Storm categories{{sandbox other|/sandbox}}|color|typhoon}}" |
| typhoon
| {{nts|{{#invoke:Storm categories{{sandbox other|/sandbox}}|sortkey|typhoon}}}}
|| <code><nowiki>{{#invoke:Storm categories|sortkey|typhoon}}</nowiki></code>
|- style="background-color:#{{#invoke:Storm categories{{sandbox other|/sandbox}}|color|potential}}"
| potential
| {{nts|{{#invoke:Storm categories{{sandbox other|/sandbox}}|sortkey|potential}}}}
|| <code><nowiki>{{#invoke:Storm categories|sortkey|potential}}</nowiki></code>
|- style="background-color:#{{#invoke:Storm categories{{sandbox other|/sandbox}}|color|cat5}}"
| cat5
| {{nts|{{#invoke:Storm categories{{sandbox other|/sandbox}}|sortkey|cat5}}}}
|| <code><nowiki>{{#invoke:Storm categories|sortkey|cat5}}</nowiki></code>
|- style="background-color:#{{#invoke:Storm categories{{sandbox other|/sandbox}}|color|svrcyclstorm}}"
| svrcyclstorm
| {{nts|{{#invoke:Storm categories{{sandbox other|/sandbox}}|sortkey|svrcyclstorm}}}}
|| <code><nowiki>{{#invoke:Storm categories|sortkey|svrcyclstorm}}</nowiki></code>
|- style="background-color:#{{#invoke:Storm categories{{sandbox other|/sandbox}}|color|unknown}}"
| unknown
| {{nts|{{#invoke:Storm categories{{sandbox other|/sandbox}}|sortkey|unknown}}}}
|| <code><nowiki>{{#invoke:Storm categories|sortkey|unknown}}</nowiki></code>
|- style="background-color:#{{#invoke:Storm categories{{sandbox other|/sandbox}}|color|supertyphoon}}"
| supertyphoon
| {{nts|{{#invoke:Storm categories{{sandbox other|/sandbox}}|sortkey|supertyphoon}}}}
|| <code><nowiki>{{#invoke:Storm categories|sortkey|supertyphoon}}</nowiki></code>
|- style="background-color:#{{#invoke:Storm categories{{sandbox other|/sandbox}}|color|niodepression}}"
| niodepression
| {{nts|{{#invoke:Storm categories{{sandbox other|/sandbox}}|sortkey|niodepression}}}}
|| <code><nowiki>{{#invoke:Storm categories|sortkey|niodepression}}</nowiki></code>
|}
Line 173 ⟶ 178:
It will show any color errors, including colors which aren't compliant with the minimal [[Web Content Accessibility Guidelines#WCAG 2.0|Web Content Accessibility Guidelines 2.0]] AA color standards (see [[MOS:COLOR]] for more information).
{{#invoke:Storm categories{{sandbox other|/sandbox}}|demo}}
<includeonly>{{Sandbox other||
|