Template:SubdivisionName: Difference between revisions
From DFO – Flood Observatory
DFO Kettner (talk | contribs) No edit summary Tag: Reverted |
DFO Kettner (talk | contribs) No edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 31: | Line 31: | ||
tables=FloodReports | tables=FloodReports | ||
|fields = COUNT(_pageName) | |fields = COUNT(_pageName) | ||
|where=SubdivisionName | |where=SubdivisionName HOLDS '{{PAGENAME}}' | ||
| format = plain | | format = plain | ||
}}''' | }}''' | ||
{{#cargo_query: | |||
tables=FloodReports | |||
|fields= | |||
CONCAT_WS('','[[',_pageName, '|', ReportNumber, ']]')=﹟, | |||
GlideNumber=Glide ﹟, | |||
BeginDate=Start Date, | |||
EndDate=End Date, | |||
Country=Country, | |||
SubdivisionName=State, | |||
FORMAT(Area,0)=Area (km²), | |||
Source=Source, | |||
MainCause=Main Cause, | |||
NumberOfFatalities=Fatalities, | |||
NumberOfDisplaced=Displaced, | |||
Severity=Severity, | |||
FORMAT(FloodImpactIndex,1)=Flood impact index | |||
|where=SubdivisionName HOLDS '{{PAGENAME}}' | |||
|hidden fields=Glide ﹟,Country,Source | |||
|order by=Start Date DESC | |||
|limit=6000 | |||
|rows per page=25 | |||
|link=ReportNumber | |||
|format=dynamic table | |||
|default=No flood reports found for this state. | |||
}} | |||
[[Category:Subdivisions]] | [[Category:Subdivisions]] | ||
Latest revision as of 13:53, 13 February 2026
This is the "SubdivisionName" template. It should be called in the following format:
{{SubdivisionName:
| Country=
| M49=
| SubdivisionCategory=
| Code31662=
| SubdivisionName=
}}
This template defines the table "SubdivisionNames". View table.