Template:FloodReports: Difference between revisions

From DFO – Flood Observatory
No edit summary
No edit summary
 
(24 intermediate revisions by the same user not shown)
Line 69: Line 69:
| EndDate
| EndDate
| {{{EndDate|}}}
| {{{EndDate|}}}
|-
| Duration
| {{{Duration|}}}
|-
|-
| Source
| Source
Line 89: Line 86:
|-
|-
| FloodImpactIndex
| FloodImpactIndex
| {{{FloodImpactIndex|}}}
| {{#expr:{{#cargo_query:
  tables=FloodReports
  |fields=FloodImpactIndex,_pageName,
  |where=_pageName='{{FULLPAGENAME}}'
  |format=template
  |template=FloodImpactIndexTemplate
}}round1}}
|-
|-
| Notes
| Notes
Line 117: Line 120:
|EndDate={{{EndDate|}}}
|EndDate={{{EndDate|}}}
|Duration={{#expr:
|Duration={{#expr:
   (
   ((
     {{#time:U|{{{EndDate}}}}}
     {{#time:U|{{{EndDate}}}}}
     -
     -
     {{#time:U|{{{BeginDate}}}}}
     {{#time:U|{{{BeginDate}}}}}
   ) / 86400
   ) / 86400)+1
}}
}}
|Source={{{Source|}}}
|Source={{{Source|}}}
Line 128: Line 131:
|MainCause={{{MainCause|}}}
|MainCause={{{MainCause|}}}
|Severity={{{Severity|}}}
|Severity={{{Severity|}}}
|FloodImpactIndex={{#expr:( {{{Area}}} * {{{Severity}}} * {{{Duration}}})}}
|FloodImpactIndex={{#expr:ln( {{{Area}}} * {{{Severity}}} * {{#expr:
  ((
    {{#time:U|{{{EndDate}}}}}
    -
    {{#time:U|{{{BeginDate}}}}}
  ) / 86400)+1
}} ) / ln(10) }}
|Notes={{{Notes|}}}
|Notes={{{Notes|}}}
}}</includeonly>
}}</includeonly>

Latest revision as of 18:34, 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.