Difference between revisions of "Template:Infobox oil spill"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
(fix navbox classes causing headers to disappear on mobile)
 
Line 8: Line 8:
 
| abovestyle = background: {{#if: {{{Backgroundcolor|}}} |{{{Backgroundcolor|}}} |lightgray}};
 
| abovestyle = background: {{#if: {{{Backgroundcolor|}}} |{{{Backgroundcolor|}}} |lightgray}};
 
| above = <includeonly>{{{spill_name|{{{name}}}}}}</includeonly>
 
| above = <includeonly>{{{spill_name|{{{name}}}}}}</includeonly>
 +
 +
| headerstyle = background: {{#if: {{{Backgroundcolor|}}} |{{{Backgroundcolor|}}} |lightgray}};
  
 
| image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|{{{image size|200px}}}}}} |sizedefault=frameless |upright={{{image_upright|1.35}}} |alt={{{image_alt|{{{alt|}}}}}} |border={{{border|no}}} }}
 
| image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|{{{image size|200px}}}}}} |sizedefault=frameless |upright={{{image_upright|1.35}}} |alt={{{image_alt|{{{alt|}}}}}} |border={{{border|no}}} }}
Line 56: Line 58:
 
|data3    = {{#dateformat:{{{spill_date<includeonly>|</includeonly>}}} }}
 
|data3    = {{#dateformat:{{{spill_date<includeonly>|</includeonly>}}} }}
 
|header4  = Cause
 
|header4  = Cause
|class4  = navbox-abovebelow
+
 
 
|label5  = Cause
 
|label5  = Cause
 
|data5    = {{{cause<includeonly>|</includeonly>}}}
 
|data5    = {{{cause<includeonly>|</includeonly>}}}
Line 64: Line 66:
 
|data7    = {{{operator<includeonly>|</includeonly>}}}  
 
|data7    = {{{operator<includeonly>|</includeonly>}}}  
 
|header8  = Spill characteristics
 
|header8  = Spill characteristics
|class8  = navbox-abovebelow
+
 
 
|label9  = Volume
 
|label9  = Volume
 
|data9    = {{{volume<includeonly>|</includeonly>}}}
 
|data9    = {{{volume<includeonly>|</includeonly>}}}

Latest revision as of 14:15, 7 September 2020

Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value).
Location{{{location}}}
Coordinates{{{coordinates}}}
Date{{{spill_date}}}
Cause
Cause{{{cause}}}
Casualties{{{casualties}}}
Operator{{{operator}}}
Spill characteristics
Volume{{{volume}}}
Area{{{area}}}
Shoreline impacted{{{coast}}}

[[Category:Infobox templates|Template:Remove first word]]

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

Usage

{{Infobox oil spill
| name      	= 
| image 	= 
| image_size	= 
| image_caption	= 
| location	= 
| coordinates	= 
| spill_date	= 
| cause 	= 
| operator	= 
| casualties	= 
| volume	= 
| area		= 
| coast 	= 
}}

Required: name, location, spill_date, and at least one of volume/area/coast.

Unused parameters do not need to be stated (i.e. it isn't necessary to put "casualties = none" or "coast = n/a").

Exxon Valdez oil spill
Exval.jpeg
3 days after Exxon Valdez ran aground
Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value).
LocationPrince William Sound, Alaska
CoordinatesLua error: callParserFunction: function "#coordinates" was not found.
Date24 March 1989
Cause
CauseGrounding of the Exxon Valdez oil tanker
OperatorExxon
Spill characteristics
Volume260,000 barrels (41,000 m3) - 750,000 barrels (119,000 m3)
Area11,000 sq mi (28,000 km2)
Shoreline impacted1,300 mi (2,100 km)
[[Category:Infobox templates|Template:Remove first word]]
Parameter Description Example
name should match article name, wiki markup OK ''Exxon Valdez'' oil spill
image do not include "File:" Exval.jpeg
image_size value in pixels, uses default image size if not set. 250px
image_caption description appears centered below image 3 days after ''[[Exxon Valdez]]'' ran aground
location general description of site, preferably with wikilinks [[Prince William Sound]], [[Alaska]]
coordinates specific location using Coord template (can also be used to cause coordinates to appear in article title by setting "display=title,inline") {{Coord|60.83333|-146.86667|region:US-AK_type:landmark|display=inline}}
location_map_zoom Zoom level for the location map (0-19) 7
spill_date start of spill event (or range of dates, for extended spills) 24 March 1989
cause general description of event that initiated the spill Grounding of the ''[[Exxon Valdez]]'' oil tanker
operator company that is financially responsible for spill event (if applicable) [[Exxon]]
casualties deaths or injuries associated with initial spill event (if applicable)
volume amount of oil spilled (or range of best estimates)
Note: some spills are listed as mass (tonnes) instead of volume. See list of oil spills for typical conversions.
{{convert|260000|oilbbl|m3}} - {{convert|750000|oilbbl|m3}}
area area affected by oil (i.e. seafloor or land) {{convert|11000|mi2|abbr=on}}
coast linear length of coastline affected {{convert|1300|mi|abbr=on}}

Tracking category