Template:Case Description: Difference between revisions

From AquaPedia Case Study Database
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
Add SMW annotations for Water Projects, Agreements, Riparians, and Water Features to enable factbox display
 
(10 intermediate revisions by 3 users not shown)
Line 20: Line 20:
<div class="section-right-box">'''Case Description'''
<div class="section-right-box">'''Case Description'''
{{#display_point:{{{Geolocation|}}} | width=200 | height=200 | zoom=3}}
{{#display_point:{{{Geolocation|}}} | width=200 | height=200 | zoom=3}}
{| style="text-align: left; font-size:10px;"
<table style="text-align: left; font-size:10px; width:100%; border-collapse: collapse;">
{{#if: {{{Geolocation|}}} |
{{#if: {{{Geolocation|}}} |
{{!}}-
<tr>
! Geolocation:
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Geolocation:</th>
{{!}} [[Geolocation::{{{Geolocation}}}]]
<td style="padding: 4px;">[[Geolocation::{{{Geolocation}}}]]</td>
</tr>
}}
}}
{{#if: {{{Population|}}} |
{{#if: {{{Population|}}} |
{{!}}-
<tr>
! Total Population:
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Total Population:</th>
{{!}} [[Population::{{{Population}}}]] million
<td style="padding: 4px;">[[Population::{{{Population}}}]] million</td>
</tr>
}}
}}
{{#if: {{{Area|}}} |
{{#if: {{{Area|}}} |
{{!}}-
<tr>
! Total Area:
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Total Area:</th>
{{!}} [[Area::{{{Area}}}]] km<sup>2</sup>
<td style="padding: 4px;">[[Area::{{{Area}}}]] km<sup>2</sup></td>
</tr>
}}
}}
{{#if: {{{Climate|}}} |
{{#if: {{{Climate|}}} |
{{!}}-
<tr>
! Climate Descriptors:
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Climate Descriptors:</th>
{{!}} [[Climate::{{{Climate}}}]]
<td style="padding: 4px;">[[Climate::{{{Climate}}}]]</td>
</tr>
}}
}}
{{#if: {{{Land Use|}}} |
{{#if: {{{Land Use|}}} |
{{!}}-
<tr>
! Predominent Land Use Descriptors:
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Predominent Land Use Descriptors:</th>
{{!}} [[Land Use::{{{Land Use}}}]]
<td style="padding: 4px;">[[Land Use::{{{Land Use}}}]]</td>
</tr>
}}
}}
{{#if: {{{Water Use|}}} |
{{#if: {{{Water Use|}}} |
{{!}}-
<tr>
! Important Uses of Water:
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Important Uses of Water:</th>
{{!}} [[Water Use::{{{Water Use}}}]]
<td style="padding: 4px;">{{#arraymap:{{{Water Use|}}}|,|x|[[Water Use::x]]|, }}</td>
</tr>
}}
}}
{{#if: {{{Water Features|}}} |
{{#if: {{{Water Features|}}} |
{{!}}-
<tr>
! Water Features:
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Water Features:</th>
{{!}} [[Water Feature::{{{Water Features}}}]]
<td style="padding: 4px;">{{{Water Features}}}</td>
</tr>
}}
}}
{{#if: {{{Riparians|}}} |
{{#if: {{{Riparians|}}} |
{{!}}-
<tr>
! Riparians:
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Riparians:</th>
{{!}} [[Riparian::{{{Riparians}}}]]
<td style="padding: 4px;">{{{Riparians}}}</td>
</tr>
}}
}}
{{#if: {{{Water Projects|}}} |
{{#if: {{{Water Projects|}}} |
{{!}}-
<tr>
! Water Projects:
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Water Projects:</th>
{{!}} [[Water Project::{{{Water Projects}}}]]
<td style="padding: 4px;">{{#arraymap:{{{Water Projects|}}}|;|x|[[Water Project::x]]|; }}</td>
</tr>
}}
}}
{{#if: {{{Agreements|}}} |
{{#if: {{{Agreements|}}} |
{{!}}-
<tr>
! Agreements:
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Agreements:</th>
{{!}} [[Agreement::{{{Agreements}}}]]
<td style="padding: 4px;">{{#arraymap:{{{Agreements|}}}|;|x|[[Agreement::x]]|; }}</td>
</tr>
}}
}}
|}
</table>
</div>
</div>
</includeonly>
</includeonly>

Latest revision as of 10:24, 15 December 2025

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

{{Case Description
|Geolocation=
|Population=
|Area=
|Climate=
|Land Use=
|Water Use=
|Water Features=
|Water Projects=
|Agreements=
|Riparian=
}}

Edit the page to see the template text.