Toggle menu
178
106
49
3.5K
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
Tag: Reverted
No edit summary
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="width: 320px; float: right; clear: right; margin: 0 0 1em 1em; border: 1px solid #a2a9b1; background: #f8f9fa; font-size: 0.9em;">
<templatestyles src="Template:Infobox Growing Region/styles.css" />
 
{| class="infobox lw-infobox lw-infobox--growing-region"
  <!-- Header -->
|-
  <div style="background: #2d5016; color: white; font-size: 1.3em; font-weight: bold; padding: 0.8em; text-align: center;">
! colspan="2" class="lw-infobox__title" | {{{region_name|{{PAGENAME}}}}}
    {{PAGENAME}}
|-
  </div>
{{#if:{{{other_name|}}}|
 
! colspan="2" class="lw-infobox__subtitle" {{!}} {{{other_name}}}
  <!-- Hero Image (if provided) -->
{{!}}-
  {{#if:{{{image|}}}|
}}
  <div style="text-align: center; padding: 0.5em 0; background: white;">
{{#if:{{{image|}}}|
    [[File:{{{image}}}|300px|{{{image_caption|View of {{PAGENAME}}}}}]]
{{!}} colspan="2" class="lw-infobox__media" {{!}} [[File:{{{image}}}|320px|{{{image_caption|View of {{{region_name|{{PAGENAME}}}}}}}}]]
  </div>
{{!}}-
  }}
{{#if:{{{image_caption|}}}|
 
{{!}} colspan="2" class="lw-infobox__caption" {{!}} {{{image_caption}}}
  <!-- Core Statistics -->
{{!}}-
  <table style="width: 100%; border-collapse: collapse;">
}}
   
}}
    <!-- Total Accessions -->
{{#if:{{{show_map|}}}|
    <tr>
{{!}} 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>
      <th style="text-align: left; padding: 0.6em; background: #eaecf0; width: 45%; font-weight: bold;">Total Accessions</th>
{{!}}-
      <td style="padding: 0.6em; border-left: 1px solid #a2a9b1;">
}}
        {{#ask: [[Category:Accessions]] [[Has growing region::{{PAGENAME}}]]
|-
        |format=count
! class="lw-infobox__label" | Location
        |default=0
| class="lw-infobox__value" |
        }}
{{#if:{{{location|}}}|
      </td>
{{{location}}}
    </tr>
| {{#arraymap:{{{country|}}}|, |x|[[x]]|, }}
   
}}
    <!-- Elevation Range -->
|-
    <tr>
{{#if:{{{coordinates|}}}|
      <th style="text-align: left; padding: 0.6em; background: #eaecf0; font-weight: bold;">Elevation Range</th>
! class="lw-infobox__label" {{!}} Coordinates
      <td style="padding: 0.6em; border-left: 1px solid #a2a9b1;">
{{!}} class="lw-infobox__value" {{!}} {{{coordinates}}}
        {{#ask: [[Category:Accessions]] [[Has growing region::{{PAGENAME}}]]
{{!}}-
        |?Has elevation
}}
        |format=min
{{#if:{{{gene_pool|}}}|
        |default=—
! class="lw-infobox__label" {{!}} Gene Pool
        }} {{#ask: [[Category:Accessions]] [[Has growing region::{{PAGENAME}}]]
{{!}} class="lw-infobox__value" {{!}} [[{{{gene_pool}}}]]
        |?Has elevation
{{!}}-
        |format=max
}}
        |default=—
{{#if:{{{regional_complex|}}}|
        }} m
! class="lw-infobox__label" {{!}} Regional Complex
      </td>
{{!}} class="lw-infobox__value" {{!}} [[{{{regional_complex}}}]]
    </tr>
{{!}}-
   
}}
    <!-- Collection Date Range -->
{{#if:{{{country|}}}|
    <tr>
! class="lw-infobox__label" {{!}} Country
      <th style="text-align: left; padding: 0.6em; background: #eaecf0; font-weight: bold;">Collection Span</th>
{{!}} class="lw-infobox__value" {{!}} {{#arraymap:{{{country|}}}|, |x|[[x]]|, }}
      <td style="padding: 0.6em; border-left: 1px solid #a2a9b1;">
{{!}}-
        {{#ask: [[Category:Accessions]] [[Has growing region::{{PAGENAME}}]]
}}
        |?Has collection date
{{#if:{{{provinces|}}}|
        |sort=Has collection date
! class="lw-infobox__label" {{!}} Provinces/States
        |order=ascending
{{!}} class="lw-infobox__value" {{!}} {{#arraymap:{{{provinces|}}}|, |x|[[x]]|, }}
        |limit=1
{{!}}-
        |format=list
}}
        |link=none
{{#if:{{{elevation_range|}}}|
        |default=—
! class="lw-infobox__label" {{!}} Elevation Range
        }} to {{#ask: [[Category:Accessions]] [[Has growing region::{{PAGENAME}}]]
{{!}} class="lw-infobox__value" {{!}} {{{elevation_range}}}
        |?Has collection date
{{!}}-
        |sort=Has collection date
}}
        |order=descending
{{#if:{{{area_extent|}}}|
        |limit=1
! class="lw-infobox__label" {{!}} Area
        |format=list
{{!}} class="lw-infobox__value" {{!}} {{{area_extent}}}
        |link=none
{{!}}-
        |default=—
}}
        }}
{{#if:{{{climate|}}}|
      </td>
! class="lw-infobox__label" {{!}} Climate
    </tr>
{{!}} class="lw-infobox__value" {{!}} {{{climate}}}
   
{{!}}-
    <!-- Growing Areas -->
}}
    <tr>
{{#if:{{{primary_river|}}}|
      <th style="text-align: left; padding: 0.6em; background: #eaecf0; font-weight: bold;">Growing Areas</th>
! class="lw-infobox__label" {{!}} Primary Rivers
      <td style="padding: 0.6em; border-left: 1px solid #a2a9b1;">
{{!}} class="lw-infobox__value" {{!}} {{#arraymap:{{{primary_river|}}}|, |x|[[x]]|, }}
        {{#ask: [[Category:Accessions]] [[Has growing region::{{PAGENAME}}]]
{{!}}-
        |?Has growing area
}}
        |format=list
{{#if:{{{primary_mountains|}}}|
        |link=all
! class="lw-infobox__label" {{!}} Primary Mountains
        |sep=,
{{!}} class="lw-infobox__value" {{!}} {{#arraymap:{{{primary_mountains|}}}|, |x|[[x]]|, }}
        |default=None documented yet
{{!}}-
        }}
}}
      </td>
{{#if:{{{status|}}}|
    </tr>
! class="lw-infobox__label" {{!}} Conservation Status
   
{{!}} class="lw-infobox__value lw-infobox__status" {{!}} {{{status}}}
    <!-- Manual Geographic Context (if provided) -->
{{!}}-
    {{#if:{{{gene_pool|}}}|
}}
    <tr>
|}
      <th style="text-align: left; padding: 0.6em; background: #eaecf0; font-weight: bold;">Gene Pool</th>
      <td style="padding: 0.6em; border-left: 1px solid #a2a9b1;">{{{gene_pool}}}</td>
    </tr>
    }}
   
    {{#if:{{{regional_complex|}}}|
    <tr>
      <th style="text-align: left; padding: 0.6em; background: #eaecf0; font-weight: bold;">Regional Complex</th>
      <td style="padding: 0.6em; border-left: 1px solid #a2a9b1;">{{{regional_complex}}}</td>
    </tr>
    }}
   
    {{#if:{{{country|}}}|
    <tr>
      <th style="text-align: left; padding: 0.6em; background: #eaecf0; font-weight: bold;">Country</th>
      <td style="padding: 0.6em; border-left: 1px solid #a2a9b1;">{{{country}}}</td>
    </tr>
    }}
   
  </table>
 
  <!-- Documentation Breakdown -->
  <div style="background: #eaecf0; padding: 0.8em; margin-top: 0.5em; font-weight: bold;">
    Documentation Status
  </div>
  <table style="width: 100%; border-collapse: collapse; font-size: 0.9em;">
    <tr>
      <td style="padding: 0.5em;">Tier 1 (Complete):</td>
      <td style="padding: 0.5em; text-align: right; font-weight: bold;">
        {{#ask: [[Category:Accessions]] [[Has growing region::{{PAGENAME}}]] [[Has documentation status::Tier 1]]
        |format=count
        |default=0
        }}
      </td>
    </tr>
    <tr>
      <td style="padding: 0.5em; background: #f8f9fa;">Tier 2 (Core):</td>
      <td style="padding: 0.5em; text-align: right; font-weight: bold; background: #f8f9fa;">
        {{#ask: [[Category:Accessions]] [[Has growing region::{{PAGENAME}}]] [[Has documentation status::Tier 2]]
        |format=count
        |default=0
        }}
      </td>
    </tr>
    <tr>
      <td style="padding: 0.5em;">Tier 3 (Basic):</td>
      <td style="padding: 0.5em; text-align: right; font-weight: bold;">
        {{#ask: [[Category:Accessions]] [[Has growing region::{{PAGENAME}}]] [[Has documentation status::Tier 3]]
        |format=count
        |default=0
        }}
      </td>
    </tr>
  </table>
 
  <!-- Conservation Status Breakdown -->
  <div style="background: #eaecf0; padding: 0.8em; margin-top: 0.5em; font-weight: bold;">
    Conservation Status
  </div>
  <table style="width: 100%; border-collapse: collapse; font-size: 0.9em;">
    <tr>
      <td style="padding: 0.5em;">Active/Cultivated:</td>
      <td style="padding: 0.5em; text-align: right; font-weight: bold;">
        {{#ask: [[Category:Accessions]] [[Has growing region::{{PAGENAME}}]] [[Has current status::Active/Cultivated]]
        |format=count
        |default=0
        }}
      </td>
    </tr>
    <tr>
      <td style="padding: 0.5em; background: #f8f9fa;">Eradications Ongoing:</td>
      <td style="padding: 0.5em; text-align: right; font-weight: bold; background: #f8f9fa;">
        {{#ask: [[Category:Accessions]] [[Has growing region::{{PAGENAME}}]] [[Has current status::Eradications Ongoing]]
        |format=count
        |default=0
        }}
      </td>
    </tr>
    <tr>
      <td style="padding: 0.5em;">Conservation Concern:</td>
      <td style="padding: 0.5em; text-align: right; font-weight: bold;">
        {{#ask: [[Category:Accessions]] [[Has growing region::{{PAGENAME}}]] [[Has current status::Conservation Concern]]
        |format=count
        |default=0
        }}
      </td>
    </tr>
    <tr>
      <td style="padding: 0.5em; background: #f8f9fa;">Status Unknown:</td>
      <td style="padding: 0.5em; text-align: right; font-weight: bold; background: #f8f9fa;">
        {{#ask: [[Category:Accessions]] [[Has growing region::{{PAGENAME}}]] [[Has current status::Status Unknown]]
        |format=count
        |default=0
        }}
      </td>
    </tr>
  </table>
 
  <!-- View All Accessions Link -->
  <div style="text-align: center; padding: 0.8em; background: #f0f0f0; margin-top: 0.5em;">
    '''[[Special:Ask/-5B-5BCategory:Accessions-5D-5D-20-5B-5BHas-20growing-20region::{{PAGENAME}}-5D-5D/format%3Dbroadtable/link%3Dall/headers%3Dshow/searchlabel%3DView-20all-20accessions/class%3Dsortable-20wikitable-20smwtable|View All Accessions →]]'''
  </div>
 
</div>


<!-- Semantic Properties (hidden but indexed) -->
[[Category:Growing Regions]]
[[Category:Growing Regions]]
{{#if:{{{gene_pool|}}}|[[Has gene pool::{{{gene_pool}}}]]}}
{{#if:{{{regional_complex|}}}|[[Has regional complex::{{{regional_complex}}}]]}}
{{#if:{{{country|}}}|[[Has country::{{{country}}}]]}}


</includeonly><noinclude>
{{#set:
|Has region name={{{region_name|}}}
|Has alternate name={{{other_name|}}}
|Has image={{{image|}}}
|Has image caption={{{image_caption|}}}
|Has coordinates={{{coordinates|}}}
|Has gene pool={{{gene_pool|}}}
|Has regional complex={{{regional_complex|}}}
|Has elevation range={{{elevation_range|}}}
|Has area extent={{{area_extent|}}}
|Has climate={{{climate|}}}
|Has conservation status={{{status|}}}
|Has description={{{description|}}}
}}


{{#arraymap:{{{country|}}}|, |x|{{#set:|Has country=x}}|}}
{{#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>
<noinclude>
Documentation goes here.
</noinclude>
</noinclude>

Latest revision as of 23:33, 19 January 2026


Documentation goes here.