Template:FloodReports: Difference between revisions

From DFO – Flood Observatory
No edit summary
No edit summary
 
(39 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the "FloodReport" template.
This is the "FloodReports" template.
It should be called in the following format:
It should be called in the following format:
<pre>
<pre>
{{FloodReports
{{FloodReports
|ReportNumber=
|ReportNumber=
|ID=
|ReportID=
|GlideNumber=
|GlideNumber=
|Country=
|Country=
Line 12: Line 12:
|BeginDate=
|BeginDate=
|EndDate=
|EndDate=
|Duration=
|Source=
|Source=
|NumberOfFatalities=
|NumberOfFatalities=
Line 17: Line 18:
|MainCause=
|MainCause=
|Severity=
|Severity=
|Geometry=
|FloodImpactIndex=
|Notes=
}}
}}
</pre>
</pre>
Line 24: Line 26:
{{#cargo_declare:_table=FloodReports
{{#cargo_declare:_table=FloodReports
|ReportNumber=Integer
|ReportNumber=Integer
|ID=Integer
|ReportID=Integer
|GlideNumber=String
|GlideNumber=String
|Country=String
|Country=String
|OtherCountry=String
|OtherCountry=String
|Area=Float
|Area=Float
|BeginDate=Start Date
|BeginDate=Date
|EndDate=End Date
|EndDate=Date
|Duration=Integer
|Source=String
|Source=String
|NumberOfFatalities=Integer
|NumberOfFatalities=Integer
|NumberOfDisplaced=Integer
|NumberOfDisplaced=Integer
|MainCause=String
|MainCause=String (allowed values=Heavy rain,Tropical cyclone,Extra-tropical cyclone,Monsoonal rain,Snowmelt,Rain and snowmelt,Ice jam/break-up,Dam/Levy break or release,Torrential rain,Tidal surge,Avalanche related)
|Severity=Integer
|Severity=Float (allowed values=1,1.5,2)
|Geometry=JSON
|FloodImpactIndex=Float
|Notes=Text
}}
}}
</noinclude><includeonly>
</noinclude><includeonly>
Line 45: Line 49:
|width="70%"| {{{ReportNumber|}}}
|width="70%"| {{{ReportNumber|}}}
|-
|-
| ID
| ReportID
| {{{ID|}}}
| {{{ReportID|}}}
|-
|-
| GlideNumber
| GlideNumber
Line 58: Line 62:
|-
|-
| Area
| Area
| {{{Area|}}}
| {{#expr:{{{Area|}}}round0}}
|-
|-
| StartDate
| StartDate
Line 65: Line 69:
| EndDate
| EndDate
| {{{EndDate|}}}
| {{{EndDate|}}}
|-
| Duration
| {{{Duration|}}}
|-
|-
| Source
| Source
Line 80: Line 87:
| Severity
| Severity
| {{{Severity|}}}
| {{{Severity|}}}
|-
| FloodImpactIndex
| {{#expr:{{{FloodImpactIndex|}}}round1}}
|-
| Notes
| {{{Notes|}}}
|}
|}
</div><div class="col-sm-6">
</div><div class="col-sm-6">
Line 92: Line 105:
|copycoords=yes
|copycoords=yes
|lang=en
|lang=en
}}''Location where inundation is determined.''<br>
}}''Approximate location within which inundation was reported''<br>
{{#ifexist:GeoJson:{{#replace:{{PAGENAME}}|Report|FloodReport}}||Add GeoJson here: [[GeoJson:{{#replace:{{PAGENAME}}|Report|FloodReport}}|GeoJson:{{#replace:{{PAGENAME}}|Report|FloodReport}}]]}}</div></div>
{{#ifexist:GeoJson:{{#replace:{{PAGENAME}}|Report|FloodReport}}||Add GeoJson here: [[GeoJson:{{#replace:{{PAGENAME}}|Report|FloodReport}}|GeoJson:{{#replace:{{PAGENAME}}|Report|FloodReport}}]]}}</div></div>
{{#cargo_store:_table=FloodReports
{{#cargo_store:_table=FloodReports
|ReportNumber={{{ReportNumber|}}}
|ReportNumber={{{ReportNumber|}}}
|ID={{{ID|}}}
|ReportID={{{ReportID|}}}
|GlideNumber={{{GlideNumber|}}}
|GlideNumber={{{GlideNumber|}}}
|Country={{{Country|}}}
|Country={{{Country|}}}
Line 103: Line 116:
|BeginDate={{{BeginDate|}}}
|BeginDate={{{BeginDate|}}}
|EndDate={{{EndDate|}}}
|EndDate={{{EndDate|}}}
|Duration={{#expr:
  ((
    {{#time:U|{{{EndDate}}}}}
    -
    {{#time:U|{{{BeginDate}}}}}
  ) / 86400)+1
}}
|Source={{{Source|}}}
|Source={{{Source|}}}
|NumberOfFatalities={{{NumberOfFatalities|}}}
|NumberOfFatalities={{{NumberOfFatalities|}}}
Line 108: Line 128:
|MainCause={{{MainCause|}}}
|MainCause={{{MainCause|}}}
|Severity={{{Severity|}}}
|Severity={{{Severity|}}}
|Geometry={{{Geometry|}}}
|FloodImpactIndex={{#expr:ln( {{{Area}}} * {{{Severity}}} * {{#expr:
  ((
    {{#time:U|{{{EndDate}}}}}
    -
    {{#time:U|{{{BeginDate}}}}}
  ) / 86400)+1
}} ) / ln(10) }}
|Notes={{{Notes|}}}
}}</includeonly>
}}</includeonly>

Latest revision as of 15:42, 21 January 2026

This is the "FloodReports" template. It should be called in the following format:

{{FloodReports
|ReportNumber=
|ReportID=
|GlideNumber=
|Country=
|OtherCountry=
|Area=
|BeginDate=
|EndDate=
|Duration=
|Source=
|NumberOfFatalities=
|NumberOfDisplaced=
|MainCause=
|Severity=
|FloodImpactIndex=
|Notes=
}}


This template defines the table "FloodReports". View table.