Toggle menu
84
103
34
3.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
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<templatestyles src="Template:Infobox Growing Region/styles.css" />
<templatestyles src="Template:Infobox Growing Region/styles.css" />
<!-- Link-rendered display values (expects plain titles in params) -->
{{#vardefine:COUNTRY_LINKS|{{#arraymap:{{{country|}}}|,|x|[[{{#trim:x}}]]|, }} }}
{{#vardefine:PROVINCE_LINKS|{{#arraymap:{{{provinces|}}}|,|x|[[{{#trim:x}}]]|, }} }}
{{#vardefine:RIVER_LINKS|{{#arraymap:{{{primary_river|}}}|,|x|[[{{#trim:x}}]]|, }} }}
{{#vardefine:MOUNTAIN_LINKS|{{#arraymap:{{{primary_mountains|}}}|,|x|[[{{#trim:x}}]]|, }} }}
{| class="infobox lw-infobox lw-infobox--growing-region"
{| class="infobox lw-infobox lw-infobox--growing-region"
|-
|-
Line 31: Line 24:
! class="lw-infobox__label" | Location
! class="lw-infobox__label" | Location
| class="lw-infobox__value" |
| class="lw-infobox__value" |
  {{#if:{{{location|}}}|
{{#if:{{{location|}}}|
    {{{location}}}
{{{location}}}
  | {{#var:COUNTRY_LINKS}}
| {{#arraymap:{{{country|}}}|, |x|[[x]]|, }}
  }}
}}
|-
|-
{{#if:{{{coordinates|}}}|
{{#if:{{{coordinates|}}}|
Line 53: Line 46:
{{#if:{{{country|}}}|
{{#if:{{{country|}}}|
! class="lw-infobox__label" {{!}} Country
! class="lw-infobox__label" {{!}} Country
{{!}} class="lw-infobox__value" {{!}} {{#var:COUNTRY_LINKS}}
{{!}} 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" {{!}} {{#var:PROVINCE_LINKS}}
{{!}} class="lw-infobox__value" {{!}} {{#arraymap:{{{provinces|}}}|, |x|[[x]]|, }}
{{!}}-
{{!}}-
}}
}}
Line 78: Line 71:
{{#if:{{{primary_river|}}}|
{{#if:{{{primary_river|}}}|
! class="lw-infobox__label" {{!}} Primary Rivers
! class="lw-infobox__label" {{!}} Primary Rivers
{{!}} class="lw-infobox__value" {{!}} {{#var:RIVER_LINKS}}
{{!}} 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" {{!}} {{#var:MOUNTAIN_LINKS}}
{{!}} class="lw-infobox__value" {{!}} {{#arraymap:{{{primary_mountains|}}}|, |x|[[x]]|, }}
{{!}}-
{{!}}-
}}
}}
Line 93: 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 110: Line 103:
}}
}}


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

Latest revision as of 23:33, 19 January 2026


Documentation goes here.