Difference between revisions of "Template:Infobox flood"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Pigsonthewing
(make wrapper)
Line 1: Line 1:
<includeonly>{{Infobox
+
{{Infobox event
| bodyclass = vevent
+
| title                   = {{{name| {{BASEPAGENAME}} }}}
| titleclass = summary
+
| image                   = {{{image|{{{image location|}}}}}}
| titlestyle = padding-bottom:0.25em<!--(to move item clear of border line)-->;
+
| image_size              = {{{image_size|{{{image size|}}}}}}
| title = {{{name|}}}
+
| alt                     = {{{alt|{{{image alt text|}}}}}}
| imagestyle = border-bottom:1px solid #aaa;
+
| caption                 = {{{caption|{{{image name|}}}}}}
| image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|{{{image location|}}}}}} |size={{{image_size|{{{image size|}}}}}} |sizedefault=frameless |upright=1.1 |alt={{{alt|{{{image alt text|}}}}}} }}
+
| date                    = {{{duration|{{{date|}}}}}}
| captionstyle = padding:0.15em 0.25em 0.25em<!--(as above)-->;
+
| place                    = {{{affected|{{{areas_affected|{{{areas affected|}}}}}}}}}
| caption = {{{caption|{{{image name|}}}}}}
+
| coordinates              = <!-- {{coord|LAT|LON|region:XXXX_type:event|display=inline,title}} -->
| datastyle = line-height:1.4em;
+
| cause                    =  
 
+
| reported deaths          = {{{fatalities|{{{total fatalities|}}}}}}
| rowclass1 = duration
+
| reported injuries        =  
| label1 = {{#if:{{{date|}}} |Date |Duration }}
+
| reported missing        =  
| data1 = {{{duration|{{{date|}}}}}}
+
| reported property damage = {{{damages|{{{total damages|{{{total damages (USD)|}}}}}}}}}
 
+
| website                  = <!-- {{URL|example.com}}, use for link to event website; displays as Website: example.com -->
| rowclass2 =  
 
| label2 = Fatalities
 
| data2 = {{{fatalities|{{{total fatalities|}}}}}}
 
 
 
| rowclass3 =  
 
| label3 = Damages
 
| data3 = {{{damages|{{{total damages|{{{total damages (USD)|}}}}}}}}}
 
 
 
| rowclass4 =
 
| label4 = {{longitem|Areas affected}}
 
| data4 = {{{affected|{{{areas_affected|{{{areas affected|}}}}}}}}}
 
 
 
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 21:25, 31 January 2015

Script error: No such module "If empty".
LocationScript error: No such module "If empty".
Also known asScript error: No such module "If empty".
DeathsScript error: No such module "If empty".
Property damageScript error: No such module "If empty".

[[Category:Infobox templates|Template:Remove first word]]</includeonly>

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

Usage

  1. redirect Template:Parameter names example
{{Infobox flood
| name       =
| image      =
| image_size =
| alt        = <!--(short description of image per [[WP:ALT]])-->
| caption    = <!--(for image)-->
| duration   = <!--e.g. {{start date|YYYY|MM|DD|df=y}}–{{end date|YYYY|MM|DD|df=y}}-->
| date       = <!--(alternate to duration, e.g. for a single date)-->
| damages    =
| fatalities =
| affected   = <!--Areas affected by flooding, in order from first to last affected-->
}}

Microformat

Template:UF-hcal

See also

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Infobox flood

Infobox for a flood

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

no description

Unknownoptional
Imageimage image location

no description

Unknownoptional
Image_sizeimage_size image size

no description

Unknownoptional
Altalt image alt text

no description

Unknownoptional
Captioncaption image name

no description

Unknownoptional
Date(s)duration date

date or date range

Example
{{start date|YYYY|MM|DD|df=y}}–{{end date|YYYY|MM|DD|df=y}}
Unknownoptional
Locationaffected areas_affected areas affected

Areas affected by flooding, in order from first to last affected

Unknownoptional
Causecause

no description

Unknownoptional
Deathsfatalities total fatalities

no description

Unknownoptional
Property damagedamages total damages total damages (USD)

no description

Unknownoptional
Websitewebsite

no description

Unknownoptional