Difference between revisions of "Template:Infobox flood"
Jump to navigation
Jump to search
imported>AndrewBuck (adding 'name' parameter to usage example) |
imported>Ms2ger m (Code cleanup) |
||
| Line 1: | Line 1: | ||
| − | {| class="infobox" style="width: 20em | + | {| class="infobox infobox-flood" style="width: 20em; border-collapse:collapse;" |
| − | |+ style="font-size: larger;" | | + | |+ style="font-size: larger; font-weight:bold;" | {{{name}}} |
| − | + | |- class="image" style="background:#F0F0F0; color:black; border-top:1px solid #AAAAAA; border-bottom:1px solid #AAAAAA; text-align: center;" | |
| − | + | {{#if:{{{image location|}}} | |
| − | + | |<td colspan="2">[[Image:{{{image location}}}|240px|center|{{{image name|}}}]]{{#if:{{{image name|}}}|<small>''{{{image name}}}''</small>}} | |
|<includeonly>[[Category:Flood articles needing a picture]]</includeonly> | |<includeonly>[[Category:Flood articles needing a picture]]</includeonly> | ||
}} | }} | ||
| − | |- | + | |- class="duration" |
| − | + | {{#if:{{{duration|}}}| | |
| − | + | ! Duration | |
| − | + | {{!}} {{{duration}}} | |
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
}} | }} | ||
| − | + | |- class="damages" | |
| − | + | {{#if:{{{total damages|{{{total damages (USD)|}}}}}}| | |
| − | + | ! Damages | |
| − | + | {{!}} {{{total damages|{{{total damages (USD)}}}}}} | |
| − | + | }} | |
| − | + | |- class="fatalities" | |
| − | + | {{#if:{{{total fatalities|}}}| | |
| − | </noinclude> | + | ! Fatalities |
| + | {{!}} {{{total fatalities}}} | ||
| + | }} | ||
| + | |- class="affected" | ||
| + | {{#if:{{{areas affected|}}} | ||
| + | ! Areas affected | ||
| + | {{!}} {{{areas affected}}} | ||
| + | }} | ||
| + | |}<noinclude>{{Documentation}}</noinclude> | ||
Revision as of 09:34, 20 July 2009
Contents
Usage
- 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
See also
- {{Infobox earthquake}}
- {{Infobox tropical cyclone}}
- {{Infobox storm}}
- {{Infobox tornado}}
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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | no description | Unknown | optional |
| Image | image image location | no description | Unknown | optional |
| Image_size | image_size image size | no description | Unknown | optional |
| Alt | alt image alt text | no description | Unknown | optional |
| Caption | caption image name | no description | Unknown | optional |
| Date(s) | duration date | date or date range
| Unknown | optional |
| Location | affected areas_affected areas affected | Areas affected by flooding, in order from first to last affected | Unknown | optional |
| Cause | cause | no description | Unknown | optional |
| Deaths | fatalities total fatalities | no description | Unknown | optional |
| Property damage | damages total damages total damages (USD) | no description | Unknown | optional |
| Website | website | no description | Unknown | optional |
| The above documentation is transcluded from Template:Infobox flood/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |