Toggle menu
17
24
14
1.7K
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:Accession: Difference between revisions

Template page
No edit summary
No edit summary
 
(92 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:Accession/styles.css" />
<noinclude>
Backend template for accessions on Landrace.Wiki.


<div class="hero-image">
* Populated by [[Form:Accession]] (or future accession forms).
  {{#if: {{#show: {{{1}}} | ?Has whole plant in habitat photo | link=none}} |
* Renders the infobox via {{Infobox accession}}.
    [[{{#show: {{{1}}} | ?Has whole plant in habitat photo | link=none}}|frameless]]
* Sets core SemanticMediaWiki properties via {{#set}}.
  |
</noinclude>
    <div class="hero-placeholder">
      <div class="placeholder-icon">🌿</div>
      <div class="placeholder-text">No primary image available</div>
    </div>
  }}
 
  <!-- Image overlay with key info -->
  <div class="hero-overlay">
    <div class="hero-title">{{PAGENAME}}</div>
    <div class="hero-subtitle">{{#show: {{{1}}} | ?Has accession ID | default=Accession ID not specified}}</div>
    <div class="hero-location">
      {{#show: {{{1}}} | ?Has locality}}, {{#show: {{{1}}} | ?Has province}} • {{#show: {{{1}}} | ?Has collection date}}
    </div>
  </div>
</div>


   
{{Infobox accession
    <!-- Gallery thumbnails -->
| descriptive_name            = {{{descriptive_name|{{PAGENAME}}}}}
    <div class="gallery-thumbs">
| image                      = {{{image|}}}
  {{#if: {{#show: {{{1}}} | ?Has flowering branches photo | link=none}} |
| image_alt                  = {{{image_alt|}}}
    <div class="thumb active">
| image_caption              = {{{image_caption|}}}
      [[{{#show: {{{1}}} | ?Has flowering branches photo | link=none}}|80x60px]]
      <span class="thumb-label">Flowering</span>
    </div>
  }}
  {{#if: {{#show: {{{1}}} | ?Has close-up inflorescences photo | link=none}} |
    <div class="thumb">
      [[{{#show: {{{1}}} | ?Has close-up inflorescences photo | link=none}}|80x60px]]
      <span class="thumb-label">Close-up</span>
    </div>
  }}
  {{#if: {{#show: {{{1}}} | ?Has habitat overview photo | link=none}} |
    <div class="thumb">
      [[{{#show: {{{1}}} | ?Has habitat overview photo | link=none}}|80x60px]]
      <span class="thumb-label">Habitat</span>
    </div>
  }}
  {{#if: {{#show: {{{1}}} | ?Has farmer grower portraits | link=none}} |
    <div class="thumb">
      [[{{#show: {{{1}}} | ?Has farmer grower portraits | link=none}}|80x60px]]
      <span class="thumb-label">Farmer</span>
    </div>
  }}
</div>


| accession_id                = {{{accession_id|}}}
| classification              = {{{classification|}}}
| collection_type            = {{{collection_type|}}}
| sourcing_type              = {{{sourcing_type|}}}
| documentation_status        = {{{documentation_status|}}}


  <!-- Key Stats Dashboard -->
| gene_pool                  = {{{gene_pool|}}}
  <div class="hero-stats">
| regional_complex            = {{{regional_complex|}}}
   
  | growing_region              = {{{growing_region|}}}
    <!-- Conservation Status Card -->
| growing_area                = {{{growing_area|}}}
    <div class="stat-card status-card {{#switch: {{#show: {{{1}}} | ?Has conservation priority | link=none}}  
| appellation                = {{{appellation|}}}
      | Critical = critical
| field                      = {{{field|}}}
      | High = high  
      | Medium = medium
      | Low = low
      | #default = unknown
    }}">
      <div class="stat-icon">🛡️</div>
      <div class="stat-content">
        <div class="stat-label">Conservation Status</div>
        <div class="stat-value">{{#show: {{{1}}} | ?Has conservation priority | default=Unknown}}</div>
        <div class="stat-detail">{{#show: {{{1}}} | ?Has cultivation status | default=Status unknown}}</div>
      </div>
    </div>


    <!-- Collection Info Card -->
| country                    = {{{country|}}}
    <div class="stat-card collection-card">
| province                    = {{{province|}}}
      <div class="stat-icon">📅</div>
| district                    = {{{district|}}}
      <div class="stat-content">
| locality                    = {{{locality|}}}
        <div class="stat-label">Collection</div>
        <div class="stat-value">{{#show: {{{1}}} | ?Has collection date | default=Date unknown}}</div>
        <div class="stat-detail">{{#show: {{{1}}} | ?Has collection type | default=Type unknown}} • {{#show: {{{1}}} | ?Has collector | default=Collector unknown}}</div>
      </div>
    </div>


    <!-- Location Card -->
| gps_coordinates            = {{{gps_coordinates|}}}
    <div class="stat-card location-card">
| elevation                   = {{{elevation|}}}
      <div class="stat-icon">📍</div>
      <div class="stat-content">
        <div class="stat-label">Location</div>
        <div class="stat-value">{{#show: {{{1}}} | ?Has elevation | default=Unknown}}{{#if: {{#show: {{{1}}} | ?Has elevation}} | }}</div>
        <div class="stat-detail">{{#show: {{{1}}} | ?Has GPS coordinates | default=Coordinates not specified}}</div>
      </div>
    </div>


    <!-- Documentation Quality Card -->
| primary_local_name          = {{{primary_local_name|}}}
    <div class="stat-card docs-card">
| vernacular_translation      = {{{vernacular_translation|}}}
      <div class="stat-icon">📋</div>
      <div class="stat-content">
        <div class="stat-label">Documentation</div>
        <div class="stat-value">{{#show: {{{1}}} | ?Has documentation status | default=Unknown}}</div>
        <div class="stat-detail">
        {{#ifeq: {{#show: {{{1}}} | ?Has point of origin documentation | link=none}} | true | ✓ | ✗}} Origin •
{{#ifeq: {{#show: {{{1}}} | ?Has photographic metadata preserved | link=none}} | true | ✓ | ✗}} Photos •
{{#ifeq: {{#show: {{{1}}} | ?Has chain of custody maintained | link=none}} | true | ✓ | ✗}} Custody
        </div>
      </div>
    </div>


  </div>
| collection_date            = {{{collection_date|}}}
| collector                  = {{{collector|}}}
| collector_affiliation      = {{{collector_affiliation|}}}
| collection_method          = {{{collection_method|}}}
| sample_size                = {{{sample_size|}}}


  <!-- Geographic Hierarchy Breadcrumb -->
| cultivation_status          = {{{cultivation_status|}}}
  <div class="hero-breadcrumb">
| conservation_priority       = {{{conservation_priority|}}}
    <div class="breadcrumb-container">
| population_estimate         = {{{population_estimate|}}}
      <div class="breadcrumb-item">
| perceived_introgression_level = {{{perceived_introgression_level|}}}
        <span class="breadcrumb-icon">🌍</span>
| legal_enforcement_threats  = {{{legal_enforcement_threats|}}}
        <span class="breadcrumb-text">{{#show: {{{1}}} | ?Has country | default=Unknown Country}}</span>
      </div>
       {{#if: {{#show: {{{1}}} | ?Has growing region}} |
        <div class="breadcrumb-arrow">→</div>
        <div class="breadcrumb-item">
          <span class="breadcrumb-text">{{#show: {{{1}}} | ?Has growing region}}</span>
        </div>
      }}
      {{#if: {{#show: {{{1}}} | ?Has growing area}} |
         <div class="breadcrumb-arrow">→</div>
        <div class="breadcrumb-item">
          <span class="breadcrumb-text">{{#show: {{{1}}} | ?Has growing area}}</span>
        </div>
      }}
      {{#if: {{#show: {{{1}}} | ?Has appellation}} |  
        <div class="breadcrumb-arrow">→</div>
        <div class="breadcrumb-item">
          <span class="breadcrumb-text">{{#show: {{{1}}} | ?Has appellation}}</span>
        </div>
      }}
      {{#if: {{#show: {{{1}}} | ?Has field}} |
        <div class="breadcrumb-arrow">→</div>
        <div class="breadcrumb-item current">
          <span class="breadcrumb-text">{{#show: {{{1}}} | ?Has field}}</span>
        </div>
      }}
    </div>
  </div>


  <!-- Interactive Map Section -->
| seed_storage_location      = {{{seed_storage_location|}}}
  <div class="hero-map">
| seed_quantity              = {{{seed_quantity|}}}
    <div class="map-container">
      {{#if: {{#show: {{{1}}} | ?Has GPS coordinates}} |
        <!-- Map will be rendered here with coordinates -->
        <div class="map-placeholder">
          <div class="map-icon">🗺️</div>
          <div class="map-coords">{{#show: {{{1}}} | ?Has GPS coordinates}}</div>
          <div class="map-text">Interactive map loading...</div>
        </div>
      |  
        <div class="map-unavailable">
          <div class="map-icon">📍</div>
          <div class="map-text">Location coordinates not available</div>
        </div>
      }}
    </div>
   
    <!-- Quick Actions -->
    <div class="map-actions">
      {{#if: {{#show: {{{1}}} | ?Has GPS coordinates}} |
        <button class="action-btn primary">📍 View on Map</button>
        <button class="action-btn secondary">🔗 Share Location</button>
      }}
      <button class="action-btn secondary">📁 Download Data</button>
    </div>
  </div>


</div>
| last_updated                = {{{last_updated|}}}
}}


<!-- Temporary placeholder for detailed sections -->
{{#set:
<div class="coming-soon">
|Has accession ID={{{accession_id|}}}
  <div class="coming-soon-content">
|Has descriptive name={{{descriptive_name|{{PAGENAME}}}}}
    <h3>📋 Detailed Information</h3>
|Has classification={{{classification|}}}
    <p>Additional sections (botanical description, cultural context, conservation details) will be added here with beautiful, scannable design.</p>
|Has collection type={{{collection_type|}}}
    <p><em>For now, all essential information is displayed in the hero section above.</em></p>
|Has sourcing type={{{sourcing_type|}}}
  </div>
|Has documentation status={{{documentation_status|}}}
</div>
|Has gene pool={{{gene_pool|}}}
 
|Has regional complex={{{regional_complex|}}}
<!-- Auto-categorization -->
|Has growing region={{{growing_region|}}}
{{#if: {{#show: {{{1}}} | ?Has country | link=none}} | {{Category link|{{#show: {{{1}}} | ?Has country | link=none}}}} }}
|Has growing area={{{growing_area|}}}
{{#if: {{#show: {{{1}}} | ?Has growing region | link=none}} | {{Category link|{{#show: {{{1}}} | ?Has growing region | link=none}}}} }}
|Has appellation={{{appellation|}}}
{{#if: {{#show: {{{1}}} | ?Has documentation status | link=none}} | {{Category link|{{#show: {{{1}}} | ?Has documentation status | link=none}}}} }}
|Has field={{{field|}}}
{{#if: {{#show: {{{1}}} | ?Has conservation priority | link=none}} | {{Category link|{{#show: {{{1}}} | ?Has conservation priority | link=none}}}} }}
|Has country={{{country|}}}
 
|Has province={{{province|}}}
 
|Has district={{{district|}}}
<noinclude>
|Has locality={{{locality|}}}
== Complete Accession Template ==
|Has GPS coordinates={{{gps_coordinates|}}}
 
|Has elevation={{{elevation|}}}
This template displays a beautiful hero section for landrace cannabis accessions with proper CSS styling.
|Has primary local name={{{primary_local_name|}}}
 
|Has vernacular translation={{{vernacular_translation|}}}
=== Usage ===
|Has collection date={{{collection_date|}}}
<pre>{{Accession|{{PAGENAME}}}}</pre>
|Has collector={{{collector|}}}
 
|Has collector affiliation={{{collector_affiliation|}}}
=== Requirements ===
|Has collection method={{{collection_method|}}}
* CSS file must exist at Template:Accession/styles.css
|Has sample size={{{sample_size|}}}
* Semantic properties must be properly configured
|Has cultivation status={{{cultivation_status|}}}
 
|Has conservation priority={{{conservation_priority|}}}
=== Features ===
|Has population estimate={{{population_estimate|}}}
* Photo gallery with thumbnails
|Has perceived introgression level={{{perceived_introgression_level|}}}
* Statistics dashboard with conservation status
|Has legal enforcement threats={{{legal_enforcement_threats|}}}
* Geographic breadcrumb navigation
|Has seed storage location={{{seed_storage_location|}}}
* Interactive map section
|Has seed quantity={{{seed_quantity|}}}
* Mobile-responsive design
|Has last updated={{{last_updated|}}}
 
}}
[[Category:Templates]]
</noinclude>

Latest revision as of 08:56, 22 November 2025

Backend template for accessions on Landrace.Wiki.

  • Populated by Form:Accession (or future accession forms).
  • Renders the infobox via This is the visual infobox for accession pages on Landrace.Wiki.

Do not call it directly; use Accession on accession pages..

  • Sets core SemanticMediaWiki properties via {{#set}}.


This is the visual infobox for accession pages on Landrace.Wiki. Do not call it directly; use Accession on accession pages.