Difference between revisions of "Template:Infobox tornado year"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
[[Category:Infobox templates|Template:Remove first word]]
imported>Ouch |
imported>TornadoLGS |
||
| (24 intermediate revisions by 12 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {| | + | <includeonly>{{Infobox |
| − | | | + | | bodyclass = vevent |
| − | | | + | |
| − | {{# | + | | title = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}} |
| − | {{ | + | |
| − | }} | + | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{image location|}}}}}}|size={{{image_size|}}}|upright=1.2|alt={{{alt|{{{image alt|}}}}}}|suppressplaceholder=yes}} |
| − | | | + | | caption = {{{caption|}}} |
| − | | | + | |
| − | | {{{ | + | | label1 = Timespan |
| − | | | + | | data1 = {{{timespan|}}} |
| − | | | + | | label2 = Maximum rated tornado |
| − | | | + | | data2 = {{#switch:{{{max_F|{{{max_EF|}}}}}} |
| − | | | + | | unrated|FU|F0|F1|F2|F3|F4|F5 = [[Fujita scale|{{{max_F|}}}]] tornado |
| − | | | + | | EFU|EF0|EF1|EF2|EF3|EF4|EF5 = [[Enhanced Fujita scale|{{{max_EF|}}}]] tornado |
| − | | {{{ | + | }}<!-- |
| − | + | -->{{Unbulleted list|item_style = text-indent: -1em; padding-left: 1em; | |
| − | | | + | | {{{max_location|}}}{{#if:{{{max_date|}}}|<br>on {{{max_date|}}}}} |
| − | | {{{ | + | | {{{max_location2|}}}{{#if:{{{max_date2|}}}|<br>on {{{max_date2|}}}}} |
| − | | | + | | {{{max_location3|}}}{{#if:{{{max_date3|}}}|<br>on {{{max_date3|}}}}} |
| − | | | + | | {{{max_location4|}}}{{#if:{{{max_date4|}}}|<br>on {{{max_date4|}}}}} |
| − | | {{{ | + | | {{{max_location5|}}}{{#if:{{{max_date5|}}}|<br>on {{{max_date5|}}}}} |
| − | | | + | | {{{max_location6|}}}{{#if:{{{max_date6|}}}|<br>on {{{max_date6|}}}}} |
| − | | | + | | {{{max_location7|}}}{{#if:{{{max_date7|}}}|<br>on {{{max_date7|}}}}} |
| − | | | + | | {{{max_location8|}}}{{#if:{{{max_date8|}}}|<br>on {{{max_date8|}}}}} |
| − | | | + | }} |
| − | | | + | | label3 = Tornadoes in U.S. |
| − | + | | data3 = {{{tornadoes_usa|}}} | |
| − | | | + | | label4 = Damage (U.S.) |
| − | + | | data4 = {{{total_damages_usa|}}} | |
| − | + | | label5 = Fatalities (U.S.) | |
| − | <noinclude> | + | | data5 = {{{total_fatalities_usa|}}} |
| + | | label6 = Fatalities (worldwide) | ||
| + | | data6 = {{{total_fatalities_world|}}} | ||
| + | |||
| + | | below = | ||
| + | * [[Tornadoes of {{#expr:{{{year}}}-2}}|{{#expr:{{{year}}}-2}}]] | ||
| + | * [[Tornadoes of {{#expr:{{{year}}}-1}}|{{#expr:{{{year}}}-1}}]] | ||
| + | * '''{{{year}}}''' | ||
| + | * [[Tornadoes of {{#expr:{{{year}}}+1}}|{{#expr:{{{year}}}+1}}]] | ||
| + | * [[Tornadoes of {{#expr:{{{year}}}+2}}|{{#expr:{{{year}}}+2}}]] | ||
| + | | belowstyle = border-top: 1px solid #aaa; padding-top: 3px; | ||
| + | | belowclass = hlist noprint | ||
| + | }}</includeonly><noinclude>{{documentation}}</noinclude> | ||
Latest revision as of 20:12, 4 January 2020
Usage
{{Infobox tornado year
|name=Name to be shown at the top of the infobox; defaults to page name
|image=Image to be shown in the infobox
|caption=Image caption
|timespan=Time period between first and last tornadoes of the year in Month1, Day1 – Month2, Day2 format
|max_F (alias Max_EF)=Rating of the highest-rated tornado of the year
|max_location=Location at which the highest-rated tornado of the year occurred
|max_date=Date of the highest-rated tornado of the year
|max_location2=Location of a second tornado which shared the maximum rating of any tornadoes of the year
|max_date2=Date of the second tornado which shared the maximum rating of any tornadoes of the year
<!--Up to eight total tornadoes may be included-->
|tornadoes_usa=Total tornadoes officially recorded in the United States for the year
|total_damages_usa=Total damages officially recorded from tornadoes in the United States for the year
|total_fatalities_world=Total fatalities from tornadoes worldwide for the year
|year=Subject year
}}
Examples
2012
{{Infobox tornado year
|name = Tornadoes of 2012
|image = 2012 United States tornado count.png
|caption = A graph of the 2012 United States tornado count
|timespan = January 9 – December 26, 2012
|max_EF = EF4
|max_location = [[Harrisburg, Illinois]]
|max_date = February 29
|max_location2 = [[Henryville, Indiana]]
|max_date2 = March 2
|max_location3 = [[Crittenden, Kentucky]]
|max_date3 = March 2
|max_location4 = [[Marquette, Kansas]]
|max_date4 = April 14
|tornadoes_usa = 932
|total_damages_usa = ~$1.6 billion
|total_fatalities_world = 85
|year=2012
}}
Produces:
| File:2012 United States tornado count.png A graph of the 2012 United States tornado count | |
| Timespan | January 9 – December 26, 2012 |
|---|---|
| Maximum rated tornado | EF4 tornado
|
| Tornadoes in U.S. | 932 |
| Damage (U.S.) | ~$1.6 billion |
| Fatalities (worldwide) | 85 |
2005
{{Infobox tornado year
|name = Tornadoes of 2005
|image = Hopkins County, KY Tornado.JPG
|caption = Madisonville, Kentucky F4 Tornado
|timespan = January – December 2005
|max_F = F4
|max_location = [[Madisonville, Kentucky|Madisonville, KY]]
|max_date = November 15
|tornadoes_usa = 1,264
|total_damages_usa = $229.8 million
|total_fatalities_usa = 39
|total_fatalities_world = >39
|year=2005
}}
Produces:
| File:Hopkins County, KY Tornado.JPG Madisonville, Kentucky F4 Tornado | |
| Timespan | January – December 2005 |
|---|---|
| Maximum rated tornado | F4 tornado
|
| Tornadoes in U.S. | 1,264 |
| Damage (U.S.) | $229.8 million |
| Fatalities (U.S.) | 39 |
| Fatalities (worldwide) | >39 |
TemplateData
| The above documentation is transcluded from Template:Infobox tornado year/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. |