Template:Case Description: Difference between revisions

From AquaPedia Case Study Database
Jump to navigation Jump to search
No edit summary
Add SMW annotations for Water Projects, Agreements, Riparians, and Water Features to enable factbox display
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the "Case Description" template. It should be called in the following format:
This is the "Case Description" template. It should be called in the following format:
<pre>
<pre>
{{Case Description |Geolocation= |Population= |Area= |Climate= |Land Use= |Water Use= |Water Features= |Water Projects= |Agreements= |Riparian= }}
{{Case Description
|Geolocation=
|Population=
|Area=
|Climate=
|Land Use=
|Water Use=
|Water Features=
|Water Projects=
|Agreements=
|Riparian=
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
Line 9: 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|}}} | Geolocation: }} | {{#if: {{{Geolocation|}}} | [[Geolocation::{{{Geolocation|}}}]] }}
{{#if: {{{Geolocation|}}} |
|-
<tr>
! {{#if: {{{Population|}}} | Total Population }} | {{#if: {{{Population|}}} | [[Population::{{{Population|}}}]] }}{{#if: {{{Population|}}} | million}}
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Geolocation:</th>
|-
<td style="padding: 4px;">[[Geolocation::{{{Geolocation}}}]]</td>
! {{#if: {{{Area|}}} | Total Area }} | {{#if: {{{Area|}}} | [[Area::{{{Area|}}}]] km<sup>2</sup> }}
</tr>
|-
}}
! {{#if: {{{Climate|}}} | Climate Descriptors }} | {{#if: {{{Climate|}}} | [[Climate::{{{Climate|}}}]] }}
{{#if: {{{Population|}}} |
|-
<tr>
! {{#if: {{{Land Use|}}} | Predominent Land Use Descriptors }} | {{#if: {{{Land Use|}}} | [[Land Use::{{{Land Use|}}}]] }}
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Total Population:</th>
|-
<td style="padding: 4px;">[[Population::{{{Population}}}]] million</td>
! {{#if: {{{Water Use|}}} | Important Uses of Water}} | {{#if: {{{Water Use|}}} | [[Water Use::{{{Water Use|}}}]] }}
</tr>
|-
}}
{{#if: {{{Water Features|}}} | ! Water Features: || [[Water Feature::{{{Water Features}}}]] |- }}
{{#if: {{{Area|}}} |
{{#if: {{{Riparians|}}} | ! Riparians: || [[Riparian::{{{Riparians}}}]] |- }}
<tr>
{{#if: {{{Water Projects|}}} | ! Water Projects: || [[Water Project::{{{Water Projects}}}]] |- }}
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Total Area:</th>
{{#if: {{{Agreements|}}} | ! Agreements: || [[Agreement::{{{Agreements}}}]] |- }}
<td style="padding: 4px;">[[Area::{{{Area}}}]] km<sup>2</sup></td>
|}
</tr>
}}
{{#if: {{{Climate|}}} |
<tr>
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Climate Descriptors:</th>
<td style="padding: 4px;">[[Climate::{{{Climate}}}]]</td>
</tr>
}}
{{#if: {{{Land Use|}}} |
<tr>
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Predominent Land Use Descriptors:</th>
<td style="padding: 4px;">[[Land Use::{{{Land Use}}}]]</td>
</tr>
}}
{{#if: {{{Water Use|}}} |
<tr>
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Important Uses of Water:</th>
<td style="padding: 4px;">{{#arraymap:{{{Water Use|}}}|,|x|[[Water Use::x]]|, }}</td>
</tr>
}}
{{#if: {{{Water Features|}}} |
<tr>
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Water Features:</th>
<td style="padding: 4px;">{{{Water Features}}}</td>
</tr>
}}
{{#if: {{{Riparians|}}} |
<tr>
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Riparians:</th>
<td style="padding: 4px;">{{{Riparians}}}</td>
</tr>
}}
{{#if: {{{Water Projects|}}} |
<tr>
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Water Projects:</th>
<td style="padding: 4px;">{{#arraymap:{{{Water Projects|}}}|;|x|[[Water Project::x]]|; }}</td>
</tr>
}}
{{#if: {{{Agreements|}}} |
<tr>
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Agreements:</th>
<td style="padding: 4px;">{{#arraymap:{{{Agreements|}}}|;|x|[[Agreement::x]]|; }}</td>
</tr>
}}
</table>
</div>
</div>
</includeonly>
</includeonly>

Latest revision as of 11: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.