Template:Case Description: Difference between revisions

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

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.