Difference between revisions of "Template:Infobox wildfire/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zackmann08
(updating)
imported>Zyxw
(add category, misc formatting)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
+
<!-- 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}}
 
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Coordinates|Module:Check for unknown parameters}}
  
 
== Usage ==
 
== Usage ==
=== Blank template ===
+
{{Parameter names example | title | image | alt | caption | location | coordinates | reference | references | total_fires | total_area | cost | date | time | time-begin | time-end | timezone | area | acres | cause | landuse | buildings | structures | injuries | fatalities | perps | motive | is_season | year | season_name | prev | next | image_map | image_map_caption }}
{{Parameter names example|_template=|title|image|alt|caption|location|coordinates|reference|references|total_fires|total_area|cost|date|time|time-begin|time-end|timezone|area|acres|cause|landuse|buildings|structures|injuries|fatalities|perps|motive|is_season|year|season_name|prev|next|image_map|image_map_caption}}
+
 
<pre style="overflow: auto;">{{Infobox wildfire
+
<pre style="overflow: auto;">
 +
{{Infobox wildfire
 
| title              =
 
| title              =
 
| image              =
 
| image              =
Line 35: Line 36:
 
| total_fires        =
 
| total_fires        =
 
| total_area          =
 
| total_area          =
}}</pre>
+
}}
{{-}}
+
</pre>
 +
{{clear}}
 +
 
 +
== Examples ===
  
 
=== Wildfire ===
 
=== Wildfire ===
Line 60: Line 64:
 
| motive      = Accidental
 
| motive      = Accidental
 
}}
 
}}
<pre style="overflow: auto;">{{Infobox wildfire
+
 
 +
<pre style="overflow: auto;">
 +
{{Infobox wildfire
 
| title      = Jesusita Fire
 
| title      = Jesusita Fire
 
| image      = JesusitaFire1.jpg
 
| image      = JesusitaFire1.jpg
Line 80: Line 86:
 
| buildings  = {{ubl|80 homes|79 outbuildings|1 commercial property}}
 
| buildings  = {{ubl|80 homes|79 outbuildings|1 commercial property}}
 
| motive      = Accidental
 
| motive      = Accidental
}}</pre>
+
}}
{{-}}
+
</pre>
 +
{{clear}}
  
 
=== Season ===
 
=== Season ===
Line 97: Line 104:
 
| season_name = California wildfires
 
| season_name = California wildfires
 
}}
 
}}
<pre style="overflow:auto">{{Infobox wildfire
+
 
 +
<pre style="overflow:auto">
 +
{{Infobox wildfire
 
| title      = 2014 California wildfires
 
| title      = 2014 California wildfires
 
| image      =  
 
| image      =  
Line 109: Line 118:
 
| year        = 2014
 
| year        = 2014
 
| season_name = California wildfires
 
| season_name = California wildfires
}}</pre>
+
}}
 +
</pre>
 +
 
 +
; References
 +
{{reflist}}
 +
{{clear}}
  
 
==Maps==
 
==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 {{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]].
 
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]].
  
==Categories==
+
== Tracking categories ==
 
This template also creates a number of tracking categories:
 
This template also creates a number of tracking categories:
 
* {{clc|Wildfire articles needing maps}}
 
* {{clc|Wildfire articles needing maps}}
 
* {{clc|Wildfire articles needing images}}
 
* {{clc|Wildfire articles needing images}}
 
* {{clc|Pages using infobox wildfire with unknown parameters}}
 
* {{clc|Pages using infobox wildfire with unknown parameters}}
 
== References ==
 
{{Reflist}}
 
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
Line 127: Line 138:
 
[[Category:History and events infobox templates|Wildfire]]
 
[[Category:History and events infobox templates|Wildfire]]
 
[[Category:Science and nature infobox templates|Wildfire]]
 
[[Category:Science and nature infobox templates|Wildfire]]
 +
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 17:56, 2 March 2017

Usage

Template:Parameter names example

{{Infobox wildfire
| title               =
| image               =
| image_size          =
| caption             =
| cost                =
| injuries            =
| fatalities          =
| reference           =
<!-- ONLY FOR INDIVIDUAL FIRES -->
| date                = {{Start date|YYYY|MM|DD}} – {{End date|YYYY|MM|DD}}
| location            =
| coordinates         = <!-- {{Coords|display=inline, title}} -->
| image_map           = <!-- Use either this OR pushpin_map. NOT BOTH -->
| image_map_caption   =
| pushpin_map         = <!-- Use either this OR image_map. NOT BOTH -->
| pushpin_map_caption =
| area                = {{Convert|1234|acre|km2|0}}
| buildings           = {{ubl|123 homes|123 outbuildings|123 commercial property}} <!-- Include only specific items as documented in reference; include only buildings destroyed, not damaged. -->
| cause               =
| landuse             =
| perps               =
| motive              =
<!-- ONLY FOR SEASONAL PAGES -->
| is_season           = <!-- yes if a season page -->
| year                =
| season_name         =
| total_fires         =
| total_area          =
}}

Examples =

Wildfire

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 (35 km2)
CauseSparks off of trail clearing equipment
Land useResidential; Open space
Buildings destroyedTemplate:Ubl
DeathsTemplate:Ubl
Non-fatal injuriesTemplate:Ubl
Perpetrator(s)John Smith
MotiveAccidental
Map
Lua error in Module:Location_map at line 399: Malformed coordinates value.
{{Infobox wildfire
| title       = Jesusita Fire
| image       = JesusitaFire1.jpg
| caption     = Jesusita Fire, May 7, 2009, climbing the [[Santa Ynez Mountains]] behind Santa Barbara.
| reference   = <ref name=CDF>{{cite web|title=Jesusita Fire|url=http://cdfdata.fire.ca.gov/incidents/incidents_details_info?incident_id=310|website=[[CAL FIRE]]|accessdate=20 August 2015}}</ref>
| cost        = $12 million
| injuries    = {{ubl|1 civilians|2 firefighters}}
| fatalities  = {{ubl|3 civilians|4 firefighters}}
<!-- ONLY FOR INDIVIDUAL FIRES -->
| date        = May 5, 2009 — May 18, 2009
| location    = [[Santa Barbara, California|Santa Barbara]], [[California]], [[United States]]
| coordinates         = {{Coord|34.45|-119.717}}
| pushpin_map         = USA California Southern
| pushpin_map_caption = Location of Jesusita Fire in Southern California
| area        = {{convert|8733|acre|km2|0}}
| cause       = Sparks off of trail clearing equipment
| landuse     = Residential; Open space
| perps       = John Smith
| buildings   = {{ubl|80 homes|79 outbuildings|1 commercial property}}
| motive      = Accidental
}}

Season

2014 California wildfires
Statistics
Total fires1,234
Total area123,456 acres (500 km2)
Cost$20 million
DeathsTemplate:Ubl
Non-fatal injuriesTemplate:Ubl
Season
← 2013
2015 →
{{Infobox wildfire
| title       = 2014 California wildfires
| image       = 
| caption     = 
| cost        = $20 million
| total_fires = 1,234
| total_area  = {{convert|123456|acre|km2|0}}
| injuries    = {{ubl|12 civilians|15 firefighters}}
| fatalities  = {{ubl|12 civilians|15 firefighters}}
| is_season   = yes
| year        = 2014
| season_name = California wildfires
}}
References
  1. "Jesusita Fire". CAL FIRE. Retrieved 20 August 2015.

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: