Difference between revisions of "Template:Infobox flood"

From blackwiki
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; font-size: 95%; border-collapse:collapse; margin:0 0 1em 1em;" " cellspacing="0" cellpadding = "2"
+
{| class="infobox infobox-flood" style="width: 20em; border-collapse:collapse;"
|+ style="font-size: larger;" | '''{{{name}}}'''
+
|+ 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|}}}
+
{{#if:{{{image location|}}}
  |<tr style="background-color:#F0F0F0; border-top:1px solid #AAAAAA; border-bottom:1px solid #AAAAAA;"><td style="text-align: center;" colspan="2">[[Image:{{{image location}}}|240px|center|{{{image name}}}]]<font size="1">''{{{image name}}}''</font></td></tr>
+
  |<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"
| '''Duration'''
+
{{#if:{{{duration|}}}|
| {{{duration}}}
+
! Duration
|-
+
{{!}} {{{duration}}}
| '''Damages'''
 
| {{{total damages|{{{total damages (USD)}}}}}}
 
|-
 
| '''Fatalities'''
 
| {{{total fatalities}}}
 
|-
 
| '''Areas affected'''
 
| {{{areas affected}}}<!--Should be in order from first to last affected, and ALL areas affected to any degree should be included-->
 
|}<noinclude>
 
 
 
==Usage==
 
<pre>
 
{{Infobox flood
 
|  name                =
 
|  image location      =
 
|  duration            =
 
|  total damages      =
 
|  total damages (USD) =
 
|  total fatalities    =
 
|  areas affected      =
 
 
}}
 
}}
</pre>
+
|- class="damages"
 
+
{{#if:{{{total damages|{{{total damages (USD)|}}}}}}|
[[Category:Flood templates|{{PAGENAME}}]]
+
! Damages
[[Category:Geology infobox templates|Flood]]
+
{{!}} {{{total damages|{{{total damages (USD)}}}}}}
 
+
}}
 
+
|- class="fatalities"
[[bg:Шаблон:Наводнение]]
+
{{#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

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