Toggle menu
49
33
34
2.2K
Landrace.Wiki - The Landrace Cannabis Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox Growing Region: Difference between revisions

Template page
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox" style="width: 300px; float: right; clear: right; margin: 0 0 1em 1em; border: 1px solid #aaa; background: #f9f9fa; font-size: 0.9em;"
<templatestyles src="Template:Infobox Growing Region/styles.css" />
{| class="infobox lw-infobox lw-infobox--growing-region"
|-
|-
! colspan="2" style="background: #2d5016; color: white; font-size: 1.3em; padding: 0.8em; text-align: center;" | {{{region_name|{{PAGENAME}}}}}
! colspan="2" class="lw-infobox__title" | {{{region_name|{{PAGENAME}}}}}
|-
|-
{{#if:{{{other_name|}}}|
{{#if:{{{other_name|}}}|
! colspan="2" style="font-size: 0.9em; padding: 0.5em; text-align: center; font-weight: normal; font-style: italic;" {{!}} {{{other_name}}}
! colspan="2" class="lw-infobox__subtitle" {{!}} {{{other_name}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
{{!}} colspan="2" style="text-align: center; padding: 0.5em;" {{!}} [[File:{{{image}}}|300px|{{{image_caption|View of {{{region_name|{{PAGENAME}}}}}}}}]]
{{!}} colspan="2" class="lw-infobox__media" {{!}} [[File:{{{image}}}|320px|{{{image_caption|View of {{{region_name|{{PAGENAME}}}}}}}}]]
{{!}}-
{{!}}-
{{#if:{{{image_caption|}}}|
{{#if:{{{image_caption|}}}|
{{!}} colspan="2" style="text-align: center; padding: 0 0.5em 0.5em 0.5em; font-size: 0.85em; color: #666;" {{!}} {{{image_caption}}}
{{!}} colspan="2" class="lw-infobox__caption" {{!}} {{{image_caption}}}
{{!}}-
{{!}}-
}}
}}
}}
{{#if:{{{show_map|}}}|
{{!}} colspan="2" class="lw-infobox__map-container" {{!}} <div class="lw-infobox__map lw-map" data-smw-query="[[Has growing region::{{PAGENAME}}]]{{!}}?Has GPS coordinates{{!}}?Has descriptive name{{!}}?Has conservation priority{{!}}?Has accession ID"></div><div class="lw-infobox__map-expand" title="Expand map">⛶</div>
{{!}}-
}}
}}
|-
|-
! style="text-align: left; padding: 0.6em; background: #eaecf0; width: 40%;" | Location
! class="lw-infobox__label" | Location
| style="padding: 0.6em;" | {{{location|{{{country|}}}}}}
| class="lw-infobox__value" | {{{location|{{{country|}}}}}}
|-
|-
{{#if:{{{coordinates|}}}|
{{#if:{{{coordinates|}}}|
! style="text-align: left; padding: 0.6em; background: #eaecf0;" {{!}} Coordinates
! class="lw-infobox__label" {{!}} Coordinates
{{!}} style="padding: 0.6em;" {{!}} {{{coordinates}}}
{{!}} class="lw-infobox__value" {{!}} {{{coordinates}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{gene_pool|}}}|
{{#if:{{{gene_pool|}}}|
! style="text-align: left; padding: 0.6em; background: #eaecf0;" {{!}} Gene Pool
! class="lw-infobox__label" {{!}} Gene Pool
{{!}} style="padding: 0.6em;" {{!}} {{{gene_pool}}}
{{!}} class="lw-infobox__value" {{!}} {{{gene_pool}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{regional_complex|}}}|
{{#if:{{{regional_complex|}}}|
! style="text-align: left; padding: 0.6em; background: #eaecf0;" {{!}} Regional Complex
! class="lw-infobox__label" {{!}} Regional Complex
{{!}} style="padding: 0.6em;" {{!}} {{{regional_complex}}}
{{!}} class="lw-infobox__value" {{!}} {{{regional_complex}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{country|}}}|
{{#if:{{{country|}}}|
! style="text-align: left; padding: 0.6em; background: #eaecf0;" {{!}} Country
! class="lw-infobox__label" {{!}} Country
{{!}} style="padding: 0.6em;" {{!}} {{{country}}}
{{!}} class="lw-infobox__value" {{!}} {{{country}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{provinces|}}}|
{{#if:{{{provinces|}}}|
! style="text-align: left; padding: 0.6em; background: #eaecf0;" {{!}} Provinces/States
! class="lw-infobox__label" {{!}} Provinces/States
{{!}} style="padding: 0.6em;" {{!}} {{{provinces}}}
{{!}} class="lw-infobox__value" {{!}} {{{provinces}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{elevation_range|}}}|
{{#if:{{{elevation_range|}}}|
! style="text-align: left; padding: 0.6em; background: #eaecf0;" {{!}} Elevation Range
! class="lw-infobox__label" {{!}} Elevation Range
{{!}} style="padding: 0.6em;" {{!}} {{{elevation_range}}}
{{!}} class="lw-infobox__value" {{!}} {{{elevation_range}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{area_extent|}}}|
{{#if:{{{area_extent|}}}|
! style="text-align: left; padding: 0.6em; background: #eaecf0;" {{!}} Area
! class="lw-infobox__label" {{!}} Area
{{!}} style="padding: 0.6em;" {{!}} {{{area_extent}}}
{{!}} class="lw-infobox__value" {{!}} {{{area_extent}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{climate|}}}|
{{#if:{{{climate|}}}|
! style="text-align: left; padding: 0.6em; background: #eaecf0;" {{!}} Climate
! class="lw-infobox__label" {{!}} Climate
{{!}} style="padding: 0.6em;" {{!}} {{{climate}}}
{{!}} class="lw-infobox__value" {{!}} {{{climate}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{primary_river|}}}|
{{#if:{{{primary_river|}}}|
! style="text-align: left; padding: 0.6em; background: #eaecf0;" {{!}} Primary Rivers
! class="lw-infobox__label" {{!}} Primary Rivers
{{!}} style="padding: 0.6em;" {{!}} {{{primary_river}}}
{{!}} class="lw-infobox__value" {{!}} {{{primary_river}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{primary_mountains|}}}|
{{#if:{{{primary_mountains|}}}|
! style="text-align: left; padding: 0.6em; background: #eaecf0;" {{!}} Primary Rivers
! class="lw-infobox__label" {{!}} Primary Mountains
{{!}} style="padding: 0.6em;" {{!}} {{{primary_mountains}}}
{{!}} class="lw-infobox__value" {{!}} {{{primary_mountains}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{status|}}}|
{{#if:{{{status|}}}|
! style="text-align: left; padding: 0.6em; background: #eaecf0;" {{!}} Conservation Status
! class="lw-infobox__label" {{!}} Conservation Status
{{!}} style="padding: 0.6em; font-weight: bold;" {{!}} {{{status}}}
{{!}} class="lw-infobox__value lw-infobox__status" {{!}} {{{status}}}
{{!}}-
{{!}}-
}}
}}
|}
|}
<!-- Hidden semantic properties -->
<!-- Semantic properties (single-value) -->
[[Category:Growing Regions]]
[[Category:Growing Regions]]
{{#if:{{{gene_pool|}}}|[[Has gene pool::{{{gene_pool}}}]]}}
{{#set:
{{#if:{{{regional_complex|}}}|[[Has regional complex::{{{regional_complex}}}]]}}
|Has region name={{{region_name|}}}
{{#if:{{{country|}}}|[[Has country::{{{country}}}]]}}
|Has alternate name={{{other_name|}}}
|Has coordinates={{{coordinates|}}}
|Has gene pool={{{gene_pool|}}}
|Has regional complex={{{regional_complex|}}}
|Has country={{{country|}}}
|Has elevation range={{{elevation_range|}}}
|Has area extent={{{area_extent|}}}
|Has climate={{{climate|}}}
|Has conservation status={{{status|}}}
}}
<!-- Semantic properties (multi-value) -->
{{#arraymap:{{{provinces|}}}|,|x|{{#set:|Has province=x}}|}}
{{#arraymap:{{{primary_river|}}}|,|x|{{#set:|Has primary river=x}}|}}
{{#arraymap:{{{primary_mountains|}}}|,|x|{{#set:|Has primary mountains=x}}|}}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
Documentation goes here.
</noinclude>

Latest revision as of 18:38, 11 January 2026


Documentation goes here.