Template:Case Description: Difference between revisions
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 |
||
| (11 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<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}} | ||
<table style="text-align: left; font-size:10px; width:100%; border-collapse: collapse;"> | |||
{{#if: {{{Geolocation|}}} | | |||
<tr> | |||
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Geolocation:</th> | |||
<td style="padding: 4px;">[[Geolocation::{{{Geolocation}}}]]</td> | |||
</tr> | |||
}} | |||
{{#if: {{{Population|}}} | | |||
<tr> | |||
<th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Total Population:</th> | |||
<td style="padding: 4px;">[[Population::{{{Population}}}]] million</td> | |||
</tr> | |||
}} | |||
{{#if: {{{Water Features|}}} | | {{#if: {{{Area|}}} | | ||
{{#if: {{{Riparians|}}} | | <tr> | ||
{{#if: {{{Water Projects|}}} | | <th style="padding: 4px; text-align: left; vertical-align: top; font-weight: normal;">Total Area:</th> | ||
{{#if: {{{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 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.