Template:Country: Difference between revisions
From DFO – Flood Observatory
DFO Kettner (talk | contribs) No edit summary |
DFO Kettner (talk | contribs) No edit summary |
||
| Line 49: | Line 49: | ||
}}''' | }}''' | ||
{{#ifeq: {{{Country|}}} | United States of America | |||
| <!-- THEN --> | |||
{{#cargo_query: | {{#cargo_query: | ||
tables=FloodReports | tables=FloodReports | ||
| Line 58: | Line 60: | ||
Country=Country, | Country=Country, | ||
OtherCountry=Additional Countries, | OtherCountry=Additional Countries, | ||
SubregionName=State, | |||
FORMAT(Area,0)=Area (km²), | FORMAT(Area,0)=Area (km²), | ||
Source=Source, | Source=Source, | ||
| Line 74: | Line 77: | ||
|default=No flood reports found for this country. | |default=No flood reports found for this country. | ||
}} | }} | ||
| <!-- ELSE --> | |||
{{#cargo_query: | |||
tables=FloodReports | |||
|fields= | |||
CONCAT_WS('','[[',_pageName, '|', ReportNumber, ']]')=﹟, | |||
GlideNumber=Glide ﹟, | |||
BeginDate=Start Date, | |||
EndDate=End Date, | |||
Country=Country, | |||
OtherCountry=Additional Countries, | |||
FORMAT(Area,0)=Area (km²), | |||
Source=Source, | |||
MainCause=Main Cause, | |||
NumberOfFatalities=Fatalities, | |||
NumberOfDisplaced=Displaced, | |||
Severity=Severity, | |||
FORMAT(FloodImpactIndex,1)=Flood impact index | |||
|where=Country='{{PAGENAME}}' OR OtherCountry HOLDS '{{PAGENAME}}' | |||
|hidden fields=Glide ﹟,Additional Countries,Source | |||
|order by=Start Date DESC | |||
|limit=6000 | |||
|rows per page=25 | |||
|link=ReportNumber | |||
|format=dynamic table | |||
|default=No flood reports found for this country. | |||
}} | |||
}} | |||
[[Category:Countries]] | [[Category:Countries]] | ||
Revision as of 09:04, 8 February 2026
This is the "Country" template. It should be called in the following format:
{{Country:
| Country=
| RegionCode=
| RegionName=
| SubregionCode=
| SubregionName=
| IntermediateRegionCode=
| IntermediateRegionName=
| M49=
| ISO2=
| ISO3=
}}
This template defines the table "Countries". View table.