Difference between revisions of "Template:Infobox wildfire"

From blackwiki
Jump to navigation Jump to search
imported>SounderBruce
(Precedent has maps at the bottom of infoboxes; fixing space issue)
imported>SounderBruce
m (Fixing map header)
Line 62: Line 62:
 
| data18      = {{{motive|}}}
 
| data18      = {{{motive|}}}
  
| header19 = {{#if:{{{is_season|}}}| |Map}}
+
| header19 = {{#if:{{{image_map|}}}{{{pushpin_map|}}}| |Map}}
  
 
| data20 = {{#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 /><small>{{{image_map_caption}}}</small>}} }}
 
| data20 = {{#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 /><small>{{{image_map_caption}}}</small>}} }}
Line 83: Line 83:
 
|border = none
 
|border = none
 
|default_width = 220
 
|default_width = 220
|caption =  
+
|caption = {{#if:{{{pushpin_map_caption|}}}|<small>{{{pushpin_map_caption}}}</small>}} }}
}}{{#if:{{{pushpin_map_caption|}}}|<small>{{{pushpin_map_caption}}}</small>}} }}
 
  
 
| header22 = {{#if:{{{is_season|}}}|Season}}
 
| header22 = {{#if:{{{is_season|}}}|Season}}

Revision as of 02:45, 23 August 2016

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

Usage

Individual fire

Template:Parameter names example

{{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

Template:Parameter names example

{{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

{{Infobox | bodyclass = vevent

| above = Jesusita Fire | aboveclass = summary | abovestyle = background-color: sandybrown;

| image = JesusitaFire1.jpg | caption = Jesusita Fire, May 7, 2009, climbing the Santa Ynez Mountains behind Santa Barbara.

| headerstyle = background-color: sandybrown; | labelstyle = white-space: nowrap;

| class4 = location | label4 = Location | data4 = Santa Barbara, California, United States

| label5 = Coordinates | data5 = Lua error: callParserFunction: function "#coordinates" was not found.

| header6 = Statistics[1]

| label7 = Total fires | data7 =

| label8 = Total area | data8 =

| label9 = Cost | data9 = $12 million

| label10 = Date(s) | data10 = May 5, 2009 — May 18, 2009

| label11 = Burned area | data11 = 8,733 acres (3,534 ha)

| label12 = Cause | data12 = Sparks off of trail clearing equipment

| label13 = Land use | data13 = Residential; Open space

| label14 = Buildings
destroyed

| data14 =
  • 80 homes
  • 79 outbuildings
  • 1 commercial property

| label15 = Injuries

| data15 =
  • 1 civilians
  • 2 firefighters

| label16 = Fatalities

| data16 =
  • 3 civilians
  • 4 firefighters

| label17 = Perpetrator(s) | data17 = John Smith

| label18 = Motive | data18 = Accidental

| header19 =

| data20 =

| data21 = Lua error in Module:Location_map at line 403: attempt to index field 'wikibase' (a nil value).

{{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

{{Infobox | bodyclass = vevent

| above = 2014 California wildfires | aboveclass = summary | abovestyle = background-color: sandybrown;

| image = | caption =

| headerstyle = background-color: sandybrown; | labelstyle = white-space: nowrap;

| class4 = location | label4 = Location | data4 =

| label5 = Coordinates | data5 =

| header6 = Statistics

| label7 = Total fires | data7 = 1,234

| label8 = Total area | data8 = 123,456 acres (49,961 ha)

| label9 = Cost | data9 = $20 million

| label10 = Date(s) | data10 =

| label11 = Burned area | data11 =

| label12 = Cause | data12 =

| label13 = Land use | data13 =

| label14 = Buildings
destroyed | data14 =

| label15 = Injuries

| data15 =
  • 12 civilians
  • 15 firefighters

| label16 = Fatalities

| data16 =
  • 12 civilians
  • 15 firefighters

| label17 = Perpetrator(s) | data17 =

| label18 = Motive | data18 =

| header19 = Map

| data20 =

| data21 = header22 = Season

{{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: