Template:Tornado chart small: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
{| class="wikitable" style="width:18em;{{#switch:{{{align|right}}}|right=float:right; clear:right; margin:0.5em 0 0.5em 1em;|center=float: none; clear: both; margin-left: auto; margin-right: auto;|left=float:left; clear:left; margin:0.5em 1em 0.5em 0;}}" | {| class="wikitable" style="width:18em;{{#switch:{{{align|right}}}|right=float:right; clear:right; margin:0.5em 0 0.5em 1em;|center=float: none; clear: both; margin-left: auto; margin-right: auto;|left=float:left; clear:left; margin:0.5em 1em 0.5em 0;}}" | ||
{{ #if: {{{name|{{{Name|}}}}}} | {{!}}+ {{{name|{{{Name|}}}}}}| }} | {{ #if: {{{name|{{{Name|}}}}}} | {{!}}+ {{{name|{{{Name|}}}}}}| }} | ||
|- | |- | ||
! scope="col" style="background:#{{storm colour|unk}}" | ! scope="col" style="background:#{{storm colour|unk}}" | {{#if:{{{EFU|}}}|EFU|{{#ifeq:{{{Enhanced|}}}|yes|E}}FU}} | ||
! scope="col" style="background:#{{storm colour|storm}}" | {{#if:{{{EF0|}}}|EF0|{{#ifeq:{{{Enhanced|}}}|yes|E}}F0}} | ! scope="col" style="background:#{{storm colour|storm}}" | {{#if:{{{EF0|}}}|EF0|{{#ifeq:{{{Enhanced|}}}|yes|E}}F0}} | ||
! scope="col" style="background:#{{storm colour|1}}" | ! scope="col" style="background:#{{storm colour|1}}" | {{#if:{{{EF1|}}}|EF1|{{#ifeq:{{{Enhanced|}}}|yes|E}}F1}} | ||
! scope="col" style="background:#{{storm colour|2}}" | ! scope="col" style="background:#{{storm colour|2}}" | {{#if:{{{EF2|}}}|EF2|{{#ifeq:{{{Enhanced|}}}|yes|E}}F2}} | ||
! scope="col" style="background:#{{storm colour|3}}" | ! scope="col" style="background:#{{storm colour|3}}" | {{#if:{{{EF3|}}}|EF3|{{#ifeq:{{{Enhanced|}}}|yes|E}}F3}} | ||
! scope="col" style="background:#{{storm colour|4}}" | ! scope="col" style="background:#{{storm colour|4}}" | {{#if:{{{EF4|}}}|EF4|{{#ifeq:{{{Enhanced|}}}|yes|E}}F4}} | ||
! scope="col" style="background:#{{storm colour|5}}" | ! scope="col" style="background:#{{storm colour|5}}" | {{#if:{{{EF5|}}}|EF5|{{#ifeq:{{{Enhanced|}}}|yes|E}}F5}} | ||
{{#if:{{{total|{{{Total|}}}}}}| ! scope="col" colspan=2 {{!}} Total|}} | |||
}} | |||
{{#if:{{{total|{{{Total|}}}}}}| | |||
! scope="col" colspan= | |||
}} | |||
|- style="text-align:center;font-weight:bold" | |- style="text-align:center;font-weight:bold" | ||
| style="background:#{{storm colour|unk}}" | | style="background:#{{storm colour|unk}}" | {{{EFU|{{{FU|0}}}}}} | ||
| style="background:#{{storm colour|storm}}" | {{{EF0|{{{F0|0}}}}}} | | style="background:#{{storm colour|storm}}" | {{{EF0|{{{F0|0}}}}}} | ||
| style="background:#{{storm colour|1}}" | | style="background:#{{storm colour|1}}" | {{{EF1|{{{F1|0}}}}}} | ||
| style="background:#{{storm colour|2}}" | | style="background:#{{storm colour|2}}" | {{{EF2|{{{F2|0}}}}}} | ||
| style="background:#{{storm colour|3}}" | | style="background:#{{storm colour|3}}" | {{{EF3|{{{F3|0}}}}}} | ||
| style="background:#{{storm colour|4}}" | | style="background:#{{storm colour|4}}" | {{{EF4|{{{F4|0}}}}}} | ||
| style="background:#{{storm colour|5}}" | | style="background:#{{storm colour|5}}" | {{{EF5|{{{F5|0}}}}}} | ||
{{# | {{#if: {{{Enhanced|}}} | | ||
{{!}} style="font-weight:bold; background:#{{#invoke:StormCategoryColor|renderBackgroundColor|EF6}};" {{!}} {{{EF6|0}}} | {{!}} style="font-weight:bold; background:#{{#invoke:StormCategoryColor|renderBackgroundColor|EF6}};" {{!}} {{{EF6|0}}} | ||
}} | }} | ||
{{#if:{{{total|{{{Total|}}}}}}| | {{#if:{{{total|{{{Total|}}}}}}| {{!}} {{{total|{{{Total|}}}}}}|}} | ||
}} | |||
|- style="text-align:center;font-weight:bold" | |- style="text-align:center;font-weight:bold" | ||
{{#switch: {{#expr: {{#if: {{{deaths|}}}| 1 | 0 }} + {{#if: {{{injuries|}}}| 2 | 0 }} + {{#if: {{{total|{{{Total|}}}}}}| 4 | 0 }} }} | {{#switch: {{#expr: {{#if: {{{deaths|}}}| 1 | 0 }} + {{#if: {{{injuries|}}}| 2 | 0 }} + {{#if: {{{total|{{{Total|}}}}}}| 4 | 0 }} }} | ||
| 7= | | 7= | ||
! colspan = | ! colspan = 4 {{!}} Deaths: {{{deaths}}} | ||
! colspan = | ! colspan = 4 {{!}} Injuries: {{{injuries}}} | ||
| 6= | | 6= | ||
! colspan = | ! colspan = 8 {{!}} Injuries: {{{injuries}}} | ||
| 5= | | 5= | ||
! colspan = | ! colspan = 8 {{!}} Deaths: {{{deaths}}} | ||
| 3= | | 3= | ||
! colspan = | ! colspan = 3 {{!}} Deaths: {{{deaths}}} | ||
! colspan = | ! colspan = 3 {{!}} Injuries: {{{injuries}}} | ||
| 2= | | 2= | ||
! colspan = | ! colspan = 6 {{!}} Injuries: {{{injuries}}} | ||
| 1= | | 1= | ||
! colspan = | ! colspan = 6 {{!}} Deaths: {{{deaths}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{notes|}}}| | {{#if:{{{notes|}}}|{{!}} colspan={{#if:{{{total|}}}|8|6}} {{!}} {{{notes|}}} |}} | ||
{{!}} colspan={{#if:{{{total | |}<noinclude>{{documentation|content = | ||
}} {{!}} {{{notes|}}} | |||
|}} | |||
|} | |||
<noinclude>{{documentation|content = | |||
<div style="clear:both;"></div> | <div style="clear:both;"></div> | ||
==Usage== | ==Usage== | ||
| Line 74: | Line 60: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
If | If EF0-EF5 are used, then the template will use [[Enhanced Fujita scale]] (applicable after 2007-02-01). | ||
<syntaxhighlight lang="wikitext"> | <syntaxhighlight lang="wikitext"> | ||
{{Tornado chart small | {{Tornado chart small | ||
| Line 85: | Line 71: | ||
| EF4 = 0 | | EF4 = 0 | ||
| EF5 = 0 | | EF5 = 0 | ||
| total = <!-- optional --> | | total = <!-- optional --> | ||
| notes = <!-- optional --> | | notes = <!-- optional --> | ||
| Line 102: | Line 87: | ||
| EF4 = 10 | | EF4 = 10 | ||
| EF5 = 11 | | EF5 = 11 | ||
| total = 56 | | total = 56 | ||
| notes = * This is a note | | notes = * This is a note | ||
| Line 116: | Line 100: | ||
| EF4 = 10 | | EF4 = 10 | ||
| EF5 = 11 | | EF5 = 11 | ||
| total = 56 | | total = 56 | ||
| notes = * This is a note | | notes = * This is a note | ||
Revision as of 00:28, 14 ⧼november⧽ 2025
| FU | F0 | F1 | F2 | F3 | F4 | F5 |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 | 0
|
Usage
If you include total = followed by the total number of tornadoes, it will appear. If name = Outbreak name, then "Outbreak name" will appear above the chart.
{{Tornado chart small
| name = <!-- optional -->
| FU = 0
| F0 = 0
| F1 = 0
| F2 = 0
| F3 = 0
| F4 = 0
| F5 = 0
| total = <!-- optional -->
| notes = <!-- optional -->
}}
If EF0-EF5 are used, then the template will use Enhanced Fujita scale (applicable after 2007-02-01).
{{Tornado chart small
| name = <!-- optional -->
| EFU = 0
| EF0 = 0
| EF1 = 0
| EF2 = 0
| EF3 = 0
| EF4 = 0
| EF5 = 0
| total = <!-- optional -->
| notes = <!-- optional -->
}}
Example
{{Tornado chart small
| name = This is a name
| EFU = 5
| EF0 = 6*
| EF1 = 7
| EF2 = 8
| EF3 = 9
| EF4 = 10
| EF5 = 11
| total = 56
| notes = * This is a note
}}
| EFU | EF0 | EF1 | EF2 | EF3 | EF4 | EF5 | Total | |
|---|---|---|---|---|---|---|---|---|
| 5 | 6* | 7 | 8 | 9 | 10 | 11 | 56 | |
| * This is a note | ||||||||
For more examples, see the talk page.