Template:Infobox Growing Area: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) Undo revision 2201 by Eloise Zomia (talk) Tags: Undo Reverted |
Eloise Zomia (talk | contribs) No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 18: | Line 18: | ||
}} | }} | ||
{{#if:{{{show_map|}}}| | {{#if:{{{show_map|}}}| | ||
{{!}} colspan="2" class="lw-infobox__map-container" {{!}} <div class="lw-infobox__map lw-map" data-smw-query="[[Has growing area::{{PAGENAME}}]]{{!}}?Has | {{!}} colspan="2" class="lw-infobox__map-container" {{!}} <div class="lw-infobox__map lw-map" data-center="{{{coordinates|}}}" {{#if:{{{boundary|}}}|data-boundary="{{{boundary}}}"}} data-smw-query="[[Category:Accessions]][[Has growing area::{{PAGENAME}}]]{{!}}?Has coordinates{{!}}?Has descriptive name{{!}}?Has conservation priority{{!}}?Has accession ID"></div><div class="lw-infobox__map-expand" title="Expand map">⛶</div> | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
| Line 41: | Line 41: | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{country|}}}{{{provinces|}}}{{{ | {{#if:{{{country|}}}{{{provinces|}}}{{{admin_2|}}}{{{coordinates|}}}| | ||
{{!}}- | {{!}}- | ||
! colspan="2" class="lw-infobox__section-header" {{!}} Geography | ! colspan="2" class="lw-infobox__section-header" {{!}} Geography | ||
| Line 48: | Line 48: | ||
{{#if:{{{country|}}}| | {{#if:{{{country|}}}| | ||
! class="lw-infobox__label" {{!}} Country | ! class="lw-infobox__label" {{!}} Country | ||
{{!}} class="lw-infobox__value" {{!}} {{{country}}} | {{!}} class="lw-infobox__value" {{!}} [[{{{country}}}]] | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{provinces|}}}| | {{#if:{{{provinces|}}}| | ||
! class="lw-infobox__label" {{!}} | ! class="lw-infobox__label" {{!}} Province/State | ||
{{!}} class="lw-infobox__value" {{!}} {{{provinces}}} | {{!}} class="lw-infobox__value" {{!}} {{{provinces}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{admin_2|}}}| | ||
! class="lw-infobox__label" {{!}} Districts | ! class="lw-infobox__label" {{!}} {{{admin_2_label|Districts}}} | ||
{{!}} class="lw-infobox__value" {{!}} {{{ | {{!}} class="lw-infobox__value" {{!}} {{{admin_2}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
| Line 106: | Line 106: | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{# | |- | ||
! colspan="2" class="lw-infobox__section-header" | Documentation | |||
|- | |||
! class="lw-infobox__label" | Appellations | |||
| class="lw-infobox__value" | {{#ask:[[Category:Appellations]][[Has growing area::{{PAGENAME}}]]|format=count}} | |||
|- | |||
! class="lw-infobox__label" | Accessions | |||
| class="lw-infobox__value" | {{#ask:[[Category:Accessions]][[Has growing area::{{PAGENAME}}]]|format=count}} | |||
|- | |||
{{#if:{{{status|}}}| | |||
! colspan="2" class="lw-infobox__section-header" {{!}} Conservation | ! colspan="2" class="lw-infobox__section-header" {{!}} Conservation | ||
{{!}}- | {{!}}- | ||
! class="lw-infobox__label" {{!}} Status | ! class="lw-infobox__label" {{!}} Status | ||
{{!}} class="lw-infobox__value" {{!}} <span class="lw-status lw-status--{{{status}}}">{{{status}}}</span> | {{!}} class="lw-infobox__value" {{!}} <span class="lw-status lw-status--{{{status}}}">{{{status}}}</span> | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{# | |} | ||
[[Category:Growing Areas]] | |||
{{ | {{#set: | ||
{{ | |Has area name={{{area_name|{{PAGENAME}}}}} | ||
|Has alternate name={{{other_names|}}} | |||
|Has growing region={{{growing_region|}}} | |||
|Has country={{{country|}}} | |||
|Has province={{{provinces|}}} | |||
|Has coordinates={{{coordinates|}}} | |||
|Has elevation range={{{elevation_range|}}} | |||
|Has area extent={{{area_extent|}}} | |||
|Has terrain={{{terrain|}}} | |||
|Has climate={{{climate|}}} | |||
|Has conservation status={{{status|}}} | |||
|Has description={{{description|}}} | |||
|Has boundary={{{boundary|}}} | |||
}} | }} | ||
{{ | </includeonly> | ||
<noinclude> | |||
== Usage == | |||
<pre> | |||
{{Infobox Growing Area | |||
|area_name = | |||
|other_names = | |||
|image = | |||
|image_alt = | |||
|image_caption = | |||
|show_map = yes | |||
|gene_pool = | |||
|regional_complex = | |||
|growing_region = | |||
|country = | |||
|provinces = | |||
|admin_2 = | |||
|admin_2_label = Districts | |||
|coordinates = | |||
|elevation_range = | |||
|area_extent = | |||
|terrain = | |||
|climate = | |||
|rainfall = | |||
|seasons = | |||
|status = | |||
|description = | |||
}} | }} | ||
</pre> | |||
=== Parameters === | |||
{| class="wikitable" | |||
|- | |||
! Parameter !! Description !! Example | |||
|- | |||
| area_name || Display name (defaults to page name) || Kirivong | |||
|- | |||
| other_names || Alternative names || Bayong Kor, Green Triangle | |||
|- | |||
| image || Hero image filename || Kirivong_landscape.jpg | |||
|- | |||
| image_alt || Alt text for image || View of Bayong Kor range | |||
|- | |||
| image_caption || Caption for hero image || Bayong Kor mountains | |||
|- | |||
| show_map || Set to "yes" to display accession map || yes | |||
|- | |||
| gene_pool || Gene pool classification || Southeast Asian Gene Pool | |||
|- | |||
| regional_complex || Regional complex classification || | |||
|- | |||
| growing_region || Parent growing region page || Southern Cambodia | |||
|- | |||
| country || Country page || Cambodia | |||
|- | |||
| provinces || Province/state name || Takeo | |||
|- | |||
| admin_2 || District or second-level admin division || Kirivong | |||
|- | |||
| admin_2_label || Label for admin_2 field || District | |||
|- | |||
| coordinates || Centroid coordinates (lat, lon) || 10.641000, 104.844000 | |||
|- | |||
| elevation_range || Elevation range || 50–400 m | |||
|- | |||
| area_extent || Approximate area || ~200 km² | |||
|- | |||
| terrain || Terrain description || Low mountain range, forested slopes | |||
|- | |||
| climate || Climate type || Tropical monsoon | |||
|- | |||
| rainfall || Annual rainfall || ~1,500 mm annually | |||
|- | |||
| seasons || Growing seasons || Wet (May–Nov), Dry (Dec–Apr) | |||
|- | |||
| status || Conservation status (Stable, Vulnerable, Endangered, Critical, Extinct, Unknown) || Endangered | |||
|- | |||
| description || Brief description (stored as SMW property, not displayed) || Primary cannabis cultivation area in southern Cambodia | |||
|} | |} | ||
[[Category:Infobox templates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 17:18, 28 March 2026
Usage
{{Infobox Growing Area
|area_name =
|other_names =
|image =
|image_alt =
|image_caption =
|show_map = yes
|gene_pool =
|regional_complex =
|growing_region =
|country =
|provinces =
|admin_2 =
|admin_2_label = Districts
|coordinates =
|elevation_range =
|area_extent =
|terrain =
|climate =
|rainfall =
|seasons =
|status =
|description =
}}
Parameters
| Parameter | Description | Example |
|---|---|---|
| area_name | Display name (defaults to page name) | Kirivong |
| other_names | Alternative names | Bayong Kor, Green Triangle |
| image | Hero image filename | Kirivong_landscape.jpg |
| image_alt | Alt text for image | View of Bayong Kor range |
| image_caption | Caption for hero image | Bayong Kor mountains |
| show_map | Set to "yes" to display accession map | yes |
| gene_pool | Gene pool classification | Southeast Asian Gene Pool |
| regional_complex | Regional complex classification | |
| growing_region | Parent growing region page | Southern Cambodia |
| country | Country page | Cambodia |
| provinces | Province/state name | Takeo |
| admin_2 | District or second-level admin division | Kirivong |
| admin_2_label | Label for admin_2 field | District |
| coordinates | Centroid coordinates (lat, lon) | 10.641000, 104.844000 |
| elevation_range | Elevation range | 50–400 m |
| area_extent | Approximate area | ~200 km² |
| terrain | Terrain description | Low mountain range, forested slopes |
| climate | Climate type | Tropical monsoon |
| rainfall | Annual rainfall | ~1,500 mm annually |
| seasons | Growing seasons | Wet (May–Nov), Dry (Dec–Apr) |
| status | Conservation status (Stable, Vulnerable, Endangered, Critical, Extinct, Unknown) | Endangered |
| description | Brief description (stored as SMW property, not displayed) | Primary cannabis cultivation area in southern Cambodia |