Template:FloodReports: Difference between revisions
From DFO – Flood Observatory
DFO Kettner (talk | contribs) No edit summary |
DFO Kettner (talk | contribs) No edit summary |
||
| (28 intermediate revisions by the same user not shown) | |||
| Line 69: | Line 69: | ||
| EndDate | | EndDate | ||
| {{{EndDate|}}} | | {{{EndDate|}}} | ||
|- | |- | ||
| Source | | Source | ||
| Line 91: | Line 86: | ||
|- | |- | ||
| FloodImpactIndex | | FloodImpactIndex | ||
| {{{FloodImpactIndex|}}} | | {{#expr:{{#cargo_query: | ||
tables=FloodReports | |||
|fields=FloodImpactIndex,_pageName, | |||
|where=_pageName='{{FULLPAGENAME}}' | |||
|format=template | |||
|template=FloodImpactIndexTemplate | |||
}}round1}} | |||
|- | |- | ||
| Notes | | Notes | ||
| Line 119: | Line 120: | ||
|EndDate={{{EndDate|}}} | |EndDate={{{EndDate|}}} | ||
|Duration={{#expr: | |Duration={{#expr: | ||
( | (( | ||
{{#time:U|{{{EndDate}}}}} | {{#time:U|{{{EndDate}}}}} | ||
- | - | ||
{{#time:U|{{{ | {{#time:U|{{{BeginDate}}}}} | ||
) / 86400 | ) / 86400)+1 | ||
}} | }} | ||
|Source={{{Source|}}} | |Source={{{Source|}}} | ||
| Line 130: | Line 131: | ||
|MainCause={{{MainCause|}}} | |MainCause={{{MainCause|}}} | ||
|Severity={{{Severity|}}} | |Severity={{{Severity|}}} | ||
|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.