Toggle menu
648
116
71
6.9K
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
 
(4 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 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>
{{!}} colspan="2" class="lw-infobox__map-container" {{!}} <div class="lw-infobox__map lw-map" data-center="{{{coordinates|}}}" data-boundary-query="[[Category:Growing Areas]][[Has growing region::{{PAGENAME}}]]{{!}}?Has boundary{{!}}?Has area name{{!}}?Has conservation status" data-smw-query="[[Category:Accessions]][[Has growing region::{{PAGENAME}}]]{{!}}?Has coordinates{{!}}?Has descriptive name{{!}}?Has conservation priority{{!}}?Has accession ID"></div><div class="lw-infobox__map-expand" title="Expand map">⛶</div>
{{!}}-
{{!}}-
}}
}}
Line 25: Line 25:
| class="lw-infobox__value" |
| class="lw-infobox__value" |
{{#if:{{{location|}}}|
{{#if:{{{location|}}}|
  {{{location}}}
{{{location}}}
|
| {{#arraymap:{{{country|}}}|, |x|[[x]]|, }}
  {{#arraymap:{{{country|}}}|,|x|[[{{#trim:x}}]]|, }}
}}
}}
|-
|-
Line 47: Line 46:
{{#if:{{{country|}}}|
{{#if:{{{country|}}}|
! class="lw-infobox__label" {{!}} Country
! class="lw-infobox__label" {{!}} Country
{{!}} class="lw-infobox__value" {{!}} {{#arraymap:{{{country|}}}|,|x|[[{{#trim:x}}]]|, }}
{{!}} class="lw-infobox__value" {{!}} {{#arraymap:{{{country|}}}|, |x|[[x]]|, }}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{provinces|}}}|
{{#if:{{{provinces|}}}|
! class="lw-infobox__label" {{!}} Provinces/States
! class="lw-infobox__label" {{!}} Provinces/States
{{!}} class="lw-infobox__value" {{!}} {{#arraymap:{{{provinces|}}}|,|x|[[{{#trim:x}}]]|, }}
{{!}} class="lw-infobox__value" {{!}} {{#arraymap:{{{provinces|}}}|, |x|[[x]]|, }}
{{!}}-
{{!}}-
}}
}}
Line 72: Line 71:
{{#if:{{{primary_river|}}}|
{{#if:{{{primary_river|}}}|
! class="lw-infobox__label" {{!}} Primary Rivers
! class="lw-infobox__label" {{!}} Primary Rivers
{{!}} class="lw-infobox__value" {{!}} {{#arraymap:{{{primary_river|}}}|,|x|[[{{#trim:x}}]]|, }}
{{!}} class="lw-infobox__value" {{!}} {{#arraymap:{{{primary_river|}}}|, |x|[[x]]|, }}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{primary_mountains|}}}|
{{#if:{{{primary_mountains|}}}|
! class="lw-infobox__label" {{!}} Primary Mountains
! class="lw-infobox__label" {{!}} Primary Mountains
{{!}} class="lw-infobox__value" {{!}} {{#arraymap:{{{primary_mountains|}}}|,|x|[[{{#trim:x}}]]|, }}
{{!}} class="lw-infobox__value" {{!}} {{#arraymap:{{{primary_mountains|}}}|, |x|[[x]]|, }}
{{!}}-
{{!}}-
}}
}}
Line 87: Line 86:
|}
|}


<!-- Semantic properties (single-value) -->
[[Category:Growing Regions]]
[[Category:Growing Regions]]
{{#set:
{{#set:
  |Has region name={{{region_name|}}}
  |Has region name={{{region_name|}}}
Line 104: Line 103:
}}
}}


<!-- Semantic properties (multi-value) -->
{{#arraymap:{{{country|}}}|, |x|{{#set:|Has country=x}}|}}
{{#arraymap:{{{country|}}}|,|x|{{#set:|Has country={{#trim:x}}}}|}}
{{#arraymap:{{{provinces|}}}|, |x|{{#set:|Has province=x}}|}}
{{#arraymap:{{{provinces|}}}|,|x|{{#set:|Has province={{#trim:x}}}}|}}
{{#arraymap:{{{primary_river|}}}|, |x|{{#set:|Has primary river=x}}|}}
{{#arraymap:{{{primary_river|}}}|,|x|{{#set:|Has primary river={{#trim:x}}}}|}}
{{#arraymap:{{{primary_mountains|}}}|, |x|{{#set:|Has primary mountains=x}}|}}
{{#arraymap:{{{primary_mountains|}}}|,|x|{{#set:|Has primary mountains={{#trim:x}}}}|}}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
Documentation goes here.
Documentation goes here.
</noinclude>
</noinclude>

Latest revision as of 17:19, 28 March 2026


Documentation goes here.