Template:Infobox wildfire/doc: Difference between revisions

Jump to navigation Jump to search
(Created page with "<noinclude>{{pp-protected|reason=Restoring original protection level per talk page request.|small=yes}}</noinclude><includeonly>{{Infobox | bodyclass = vevent | above...")
 
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<noinclude>{{pp-protected|reason=Restoring original protection level per talk page request.|small=yes}}</noinclude><includeonly>{{Infobox
{{Documentation subpage}}
| bodyclass  = vevent
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Coordinates|Module:Check for unknown parameters}}


| above      = {{#if:{{{title|}}}|{{{title}}}|{{PAGENAMEBASE}}}}
== Usage ==
| aboveclass  = summary
| abovestyle  = background-color: sandybrown;


| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|frameless}}}|upright={{{upright|}}}|alt={{{alt|}}}}}
=== Individual fire ===
| caption    = {{{caption|}}}
{{Parameter names example | title | image | image_size | alt | caption | location | coordinates={{Coord|0|0}} | reference | references | cost | date | time | time-begin | time-end | timezone | area | acres | cause | missing | landuse | buildings | structures | livestock | injuries | fatalities | evacuated | perps | motive | image_map | pushpin_map=World | image_map_alt | image_map_caption | name | pushpin_map_alt | pushpin_map_caption }}


| headerstyle = background-color: sandybrown;
<pre style="overflow: auto;">
| labelstyle  = white-space: nowrap;
{{Infobox wildfire
| title              =
| image              =  
| image_size          =
| alt                =
| caption            =
| location            =
| coordinates        =
| reference          = <!-- or: | references = -->
| cost                =
| date                =
| time                =
| time-begin          =
| time-end            =
| timezone            =
| area                =
| acres              =
| cause              =
| landuse            =
| buildings          =
| structures          =
| livestock          =
| injuries            =
| fatalities          =
| missing            =
| evacuated          =
| perps              =
| motive              =
| image_map          =
| image_map_alt      =
| image_map_caption  = <!-- or: | name =  -->
| pushpin_map        =
| pushpin_map_alt    =
| pushpin_map_caption =
}}
</pre>


| class1      = location
Delete or comment-out the <code>time, time-begin, time-end</code> and <code>timezone</code> parameters for a multi-day wildfire after the fire is extinguished, as leaving those parameters just causes the template to become cluttered.  If the start time and end time are significant, these may instead be described in the body of the article.
| label1      = Location
{{clear}}
| data1      = {{{location|}}}


| label2 = [[Geographic coordinate system|Coordinates]]
=== Season ===
| data2 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates|}}}|type:landmark}}}}
{{Parameter names example | title | image | image_size | alt | caption | reference | references | total_fires | total_area | cost | acres | structures | injuries | fatalities | is_season | prev | year | season_name | next }}


| header3     = Statistics{{{reference|{{{references|}}}}}}
<pre style="overflow: auto;">
{{Infobox wildfire
| title      =
| image      =
| image_size  =
| alt        =
| caption     =  
| reference   = <!-- or: | references = -->
| total_fires =
| total_area  =
| cost        =
| acres      =
| structures  =
| injuries    =
| fatalities  =
| is_season  =
| prev        =
| year        =
| season_name =
| next        =
}}
</pre>
{{clear}}


| label4      = Total fires
== Examples ==
| data4      = {{{total_fires|}}}


| label5      = Total area
=== Individual fire ===
| data5      = {{{total_area|}}}
{{Infobox wildfire
| title              = Jesusita Fire
| image              = JesusitaFire1.jpg
| caption            = Jesusita Fire, May 7, 2009, climbing the [[Santa Ynez Mountains]] behind Santa Barbara.
| location            = [[Santa Barbara, California|Santa Barbara]], [[California]], [[United States]]
| coordinates        = {{Coord|34.45|-119.717|region:US-CA|display=inline<!--,title-->}}
| reference          = <ref name=CDF>{{cite web|title=Jesusita Fire|url=http://cdfdata.fire.ca.gov/incidents/incidents_details_info?incident_id=310|website=[[California Department of Forestry and Fire Protection|CAL FIRE]]|access-date=20 August 2015}}</ref>
| cost                = $12 million
| date                = May 5, 2009 — May 18, 2009
| area               = {{convert|8733|acre|ha|0}}
| cause              = Sparks off of trail clearing equipment
| landuse            = Residential; Open space
| buildings          = {{Unbulleted list|80 homes|79 outbuildings|1 commercial property}}
| injuries            = {{Unbulleted list|1 civilians|2 firefighters}}
| fatalities          = {{Unbulleted list|3 civilians|4 firefighters}}
| evacuated          = 2,456
| perps              = John Smith
| motive              = Accidental
| pushpin_map        = USA California Southern
| pushpin_map_caption = Location of Jesusita Fire in Southern California
}}


| label6      = Cost
<pre style="overflow: auto;">
| data6      = {{{cost|}}}
{{Infobox wildfire
| title              = Jesusita Fire
| image              = JesusitaFire1.jpg
| caption            = Jesusita Fire, May 7, 2009, climbing the [[Santa Ynez Mountains]] behind Santa Barbara.
| location            = [[Santa Barbara, California|Santa Barbara]], [[California]], [[United States]]
| coordinates        = {{Coord|34.45|-119.717|region:US-CA|display=inline,title}}
| reference          = <ref name=CDF>{{cite web|title=Jesusita Fire|url=http://cdfdata.fire.ca.gov/incidents/incidents_details_info?incident_id=310|website=[[California Department of Forestry and Fire Protection|CAL FIRE]]|access-date=20 August 2015}}</ref>
| cost               = $12 million
| date                = May 5, 2009 — May 18, 2009
| area                = {{convert|8733|acre|ha|0}}
| cause              = Sparks off of trail clearing equipment
| landuse            = Residential; Open space
| buildings          = {{Unbulleted list|80 homes|79 outbuildings|1 commercial property}}
| injuries            = {{Unbulleted list|1 civilians|2 firefighters}}
| fatalities          = {{Unbulleted list|3 civilians|4 firefighters}}
| evacuated          = 2,456
| perps              = John Smith
| motive              = Accidental
| pushpin_map        = USA California Southern
| pushpin_map_caption = Location of Jesusita Fire in Southern California
}}
</pre>
; References
{{reflist}}
{{clear}}


| label7      = Date(s)
=== Season ===
| data7       = {{{date|}}} {{#if:{{{time|}}}|<br />{{{time}}}}}{{#if:{{{time-begin|}}}|<br />{{{time-begin}}}&ndash;{{{time-end}}}}} {{#if:{{{timezone|}}}|({{{timezone}}})}}
{{Infobox wildfire
| title      = 2014 California wildfires
| image       =
| alt        =
| caption    =
| total_fires = 1,234
| total_area  = {{convert|123456|acre|ha|0}}
| cost        = $20 million
| injuries    = {{Unbulleted list|12 civilians|15 firefighters}}
| fatalities  = {{Unbulleted list|12 civilians|15 firefighters}}
| is_season  = yes
| year        = 2014
| season_name = California wildfires
}}


| label8      = Burned area
<pre style="overflow:auto">
| data8       = {{{area|{{{acres|}}}}}}
{{Infobox wildfire
| title      = 2014 California wildfires
| image       =
| alt        =
| caption    =
| total_fires = 1,234
| total_area  = {{convert|123456|acre|ha|0}}
| cost        = $20 million
| injuries    = {{Unbulleted list|12 civilians|15 firefighters}}
| fatalities  = {{Unbulleted list|12 civilians|15 firefighters}}
| is_season  = yes
| year        = 2014
| season_name = California wildfires
}}
</pre>
{{clear}}


| label9      = Cause
==Maps==
| data9      = {{{cause|}}}
This infobox implements [[Template:Location map]] giving two options for displaying a map. You can either supply an image that is a map, such as a briefing map, via {{param|image_map}} OR you can supply a pushpin map that will have a pushpin dropped on it based on the coordinates of the fire (use {{tl|Coord}} in the {{para|coordinates}} parameter). This is done by using {{param|pushpin_map}}. For a full list of available pushpin maps, see: [[:Category:Location map templates]].


| label10    = Land use
== Tracking categories ==
| data10      = {{{landuse|}}}
This template also creates a number of tracking categories:
* {{clc|Wildfire articles needing maps}}
* {{clc|Wildfire articles needing images}}
* {{clc|Pages using infobox wildfire with unknown parameters}}


| label11    = Buildings destroyed
<includeonly>{{Sandbox other||
| data11      = {{{buildings|{{{structures|}}}}}}
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:History and events infobox templates|Wildfire]]
| label12    = Fatalities
[[Category:Science and nature infobox templates|Wildfire]]
| data12      = {{{fatalities|}}}
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
| label13    = Non-fatal injuries
| data13      = {{{injuries|}}}
 
| label14    = Missing people
| data14      = {{{missing|}}}
 
| label15    = Evacuated
| data15      = {{{evacuated|}}}
 
| label16    = Perpetrator(s)
| data16      = {{{perps|}}}
 
| label17    = Motive
| data17      = {{{motive|}}}
 
| header17 = {{#if:{{{image_map|}}}{{{pushpin_map|}}} |Map}}
 
| data18 = {{#if:{{{image_map|}}}| {{#invoke:InfoboxImage|InfoboxImage|image={{{image_map|}}}|size=200px|sizedefault=frameless|upright=1|alt={{{image_map_alt|}}}|title={{{image_map_caption|Location of {{{name}}}}}}}}{{#if:{{{image_map_caption|}}}|<br />{{{image_map_caption}}}}} }}
 
| data19 = {{#if:{{{pushpin_map|}}}|{{Location map|{{{pushpin_map|}}}
|alt = {{{pushpin_map_alt|}}}
|coordinates = {{{coordinates|}}}
|mark = FireIcon.svg
|marksize = 20
|float = center
|border = infobox
|default_width = 200
|caption ={{{pushpin_map_caption|}}}
}} }}
 
| header20 = {{#if:{{{is_season|}}}|Season}}
 
| below       = {{#if:{{{is_season|}}}|{{#if:{{{prev|}}}|{{align|left|←&nbsp;[[{{{prev|}}}{{!}}Previous season]]}}|{{align|left|←&nbsp;[[{{#expr:{{{year|}}}-1}} {{{season_name|}}}{{!}}{{#expr:{{{year|}}}-1}}]]}}}}
{{#if:{{{next|}}}|{{align|right|[[{{{next|}}}{{!}}Next season]]&nbsp;→}}|{{align|right|[[{{#expr:{{{year|}}}+1}} {{{season_name|}}}{{!}}{{#expr:{{{year|}}}+1}}]]&nbsp;→}}}}}}
 
}}{{#if:{{{image|}}}||{{main other|[[Category:Wildfire articles needing images]]|}}}}{{#if:{{{is_season|}}}||{{#if:{{{pushpin_map|}}}||{{#if:{{{image_map|}}}||{{main other|[[Category:Wildfire articles needing maps]]|}}}}}}}}{{#invoke:Check for unknown parameters|check
|unknown={{main other|[[Category:Pages using infobox wildfire with unknown parameters|_VALUE_{{PAGENAME}}]]}}
|preview=Page using [[Template:Infobox wildfire]] with unknown parameter "_VALUE_"
|ignoreblank=y| acres | alt | area | buildings | caption | cause | coordinates | cost | date | fatalities | image | image_map | image_map_alt | image_map_caption | image_size | injuries | is_season | landuse | location | motive | name | next | perps | missing | evacuated | prev | pushpin_map | pushpin_map_alt | pushpin_map_caption | reference | references | season_name | structures | time | time-begin | time-end | timezone | title | total_area | total_fires | upright | year }}</includeonly><noinclude>
{{Documentation}}</noinclude>

Latest revision as of 17:24, 28 August 2022

Usage

Individual fire

{{{title}}}
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}]]
{{{caption}}}
Location{{{location}}}
CoordinatesLua error: callParserFunction: function "#coordinates" was not found.
Statistics{{{reference}}}
Cost{{{cost}}}
Date(s){{{date}}}
{{{time}}}
{{{time-begin}}}–{{{time-end}}} ({{{timezone}}})
Burned area{{{area}}}
Cause{{{cause}}}
Land use{{{landuse}}}
Buildings destroyed{{{buildings}}}
Deaths{{{fatalities}}}
Livestock losses{{{livestock}}}
Non-fatal injuries{{{injuries}}}
Missing people{{{missing}}}
Evacuated{{{evacuated}}}
Perpetrator(s){{{perps}}}
Motive{{{motive}}}
Map
[[File:{{{image_map}}}|200px|alt={{{image_map_alt}}}|upright=1|{{{image_map_caption}}}]]
{{{image_map_caption}}}
Lua error in Module:Location_map at line 408: Malformed coordinates value.
{{Infobox wildfire
| title               = 
| image               = 
| image_size          = 
| alt                 = 
| caption             = 
| location            = 
| coordinates         = 
| reference           = <!-- or: | references = -->
| cost                = 
| date                = 
| time                = 
| time-begin          = 
| time-end            = 
| timezone            = 
| area                = 
| acres               = 
| cause               = 
| landuse             = 
| buildings           = 
| structures          = 
| livestock           =
| injuries            = 
| fatalities          = 
| missing             =
| evacuated           =
| perps               = 
| motive              = 
| image_map           = 
| image_map_alt       = 
| image_map_caption   = <!-- or: | name =  -->
| pushpin_map         = 
| pushpin_map_alt     = 
| pushpin_map_caption = 
}}

Delete or comment-out the time, time-begin, time-end and timezone parameters for a multi-day wildfire after the fire is extinguished, as leaving those parameters just causes the template to become cluttered. If the start time and end time are significant, these may instead be described in the body of the article.

Season

{{{title}}}
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}]]
{{{caption}}}
Statistics{{{reference}}}
Total fires{{{total_fires}}}
Total area{{{total_area}}}
Cost{{{cost}}}
Burned area{{{acres}}}
Buildings destroyed{{{structures}}}
Deaths{{{fatalities}}}
Non-fatal injuries{{{injuries}}}
Season
← [[{{{prev}}}|Previous season]]
[[{{{next}}}|Next season]] →
{{Infobox wildfire
| title       = 
| image       = 
| image_size  = 
| alt         = 
| caption     = 
| reference   = <!-- or: | references = -->
| total_fires = 
| total_area  = 
| cost        = 
| acres       = 
| structures  = 
| injuries    = 
| fatalities  = 
| is_season   = 
| prev        = 
| year        = 
| season_name = 
| next        = 
}}

Examples

Individual fire

Jesusita Fire
JesusitaFire1.jpg
Jesusita Fire, May 7, 2009, climbing the Santa Ynez Mountains behind Santa Barbara.
LocationSanta Barbara, California, United States
CoordinatesLua error: callParserFunction: function "#coordinates" was not found.
Statistics[1]
Cost$12 million
Date(s)May 5, 2009 — May 18, 2009
Burned area8,733 acres (3,534 ha)
CauseSparks off of trail clearing equipment
Land useResidential; Open space
Buildings destroyed
  • 80 homes
  • 79 outbuildings
  • 1 commercial property
Deaths
  • 3 civilians
  • 4 firefighters
Non-fatal injuries
  • 1 civilians
  • 2 firefighters
Evacuated2,456
Perpetrator(s)John Smith
MotiveAccidental
Map
Lua error in Module:Location_map at line 510: Unable to find the specified location map definition: "Module:Location map/data/USA California Southern" does not exist.
{{Infobox wildfire
| title               = Jesusita Fire
| image               = JesusitaFire1.jpg
| caption             = Jesusita Fire, May 7, 2009, climbing the [[Santa Ynez Mountains]] behind Santa Barbara.
| location            = [[Santa Barbara, California|Santa Barbara]], [[California]], [[United States]]
| coordinates         = {{Coord|34.45|-119.717|region:US-CA|display=inline,title}}
| reference           = <ref name=CDF>{{cite web|title=Jesusita Fire|url=http://cdfdata.fire.ca.gov/incidents/incidents_details_info?incident_id=310|website=[[California Department of Forestry and Fire Protection|CAL FIRE]]|access-date=20 August 2015}}</ref>
| cost                = $12 million
| date                = May 5, 2009 — May 18, 2009
| area                = {{convert|8733|acre|ha|0}}
| cause               = Sparks off of trail clearing equipment
| landuse             = Residential; Open space
| buildings           = {{Unbulleted list|80 homes|79 outbuildings|1 commercial property}}
| injuries            = {{Unbulleted list|1 civilians|2 firefighters}}
| fatalities          = {{Unbulleted list|3 civilians|4 firefighters}}
| evacuated           = 2,456
| perps               = John Smith
| motive              = Accidental
| pushpin_map         = USA California Southern
| pushpin_map_caption = Location of Jesusita Fire in Southern California
}}
References
  1. "Jesusita Fire". CAL FIRE. Retrieved 20 August 2015.

Season

2014 California wildfires
Statistics
Total fires1,234
Total area123,456 acres (49,961 ha)
Cost$20 million
Deaths
  • 12 civilians
  • 15 firefighters
Non-fatal injuries
  • 12 civilians
  • 15 firefighters
Season
← 2013
2015 →
{{Infobox wildfire
| title       = 2014 California wildfires
| image       = 
| alt         = 
| caption     = 
| total_fires = 1,234
| total_area  = {{convert|123456|acre|ha|0}}
| cost        = $20 million
| injuries    = {{Unbulleted list|12 civilians|15 firefighters}}
| fatalities  = {{Unbulleted list|12 civilians|15 firefighters}}
| is_season   = yes
| year        = 2014
| season_name = California wildfires
}}

Maps

This infobox implements Template:Location map giving two options for displaying a map. You can either supply an image that is a map, such as a briefing map, via {{{image_map}}} OR you can supply a pushpin map that will have a pushpin dropped on it based on the coordinates of the fire (use {{Coord}} in the |coordinates= parameter). This is done by using {{{pushpin_map}}}. For a full list of available pushpin maps, see: Category:Location map templates.

Tracking categories

This template also creates a number of tracking categories: