Toggle menu
49
33
34
2.1K
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
 
(107 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.
<!-- Beautiful Hero Section -->
* Populated by [[Form:Accession]] (or future accession forms).
<div class="accession-hero">
* Renders the infobox via {{Infobox accession}}.
 
* Sets core SemanticMediaWiki properties via {{#set}}.
  <!-- Photo Gallery Section -->
</noinclude><includeonly>
  <div class="hero-gallery">
{{Infobox accession
    <div class="gallery-main">
| descriptive_name            = {{{descriptive_name|{{PAGENAME}}}}}
      <!-- Primary hero image -->
| image                      = {{{image|}}}
      <div class="hero-image">
| image_alt                  = {{{image_alt|}}}
        {{#if: {{#show: {{{1}}} | ?Has whole plant in habitat photo}} |  
| image_caption              = {{{image_caption|}}}
          <img src="/images/placeholder-plant.jpg" alt="{{PAGENAME}} in habitat" class="hero-img">
| show_map                    = {{{show_map|}}}
        |  
| accession_id                = {{{accession_id|}}}
          <div class="hero-placeholder">
| landrace_type              = {{{landrace_type|}}}
            <div class="placeholder-icon">🌿</div>
| chemotype                  = {{{chemotype|}}}
            <div class="placeholder-text">No primary image available</div>
| thc_content                = {{{thc_content|}}}
          </div>
| cbd_content                = {{{cbd_content|}}}
        }}
| flowering_time              = {{{flowering_time|}}}
       
| plant_height                = {{{plant_height|}}}
        <!-- Image overlay with key info -->
| terpene_profile            = {{{terpene_profile|}}}
        <div class="hero-overlay">
| aroma                      = {{{aroma|}}}
          <div class="hero-title">{{PAGENAME}}</div>
| growth_pattern              = {{{growth_pattern|}}}
          <div class="hero-subtitle">{{#show: {{{1}}} | ?Has accession ID | default=Accession ID not specified}}</div>
| leaf_shape                  = {{{leaf_shape|}}}
          <div class="hero-location">
| leaflet_count              = {{{leaflet_count|}}}
            {{#show: {{{1}}} | ?Has locality}}, {{#show: {{{1}}} | ?Has province}} • {{#show: {{{1}}} | ?Has collection date}}
| photoperiod_response        = {{{photoperiod_response|}}}
          </div>
| flower_structure            = {{{flower_structure|}}}
        </div>
| gene_pool                  = {{{gene_pool|}}}
      </div>
| regional_complex            = {{{regional_complex|}}}
    </div>
| growing_region              = {{{growing_region|}}}
   
| growing_area                = {{{growing_area|}}}
    <!-- Gallery thumbnails -->
| appellation                = {{{appellation|}}}
    <div class="gallery-thumbs">
| field                      = {{{field|}}}
      {{#if: {{#show: {{{1}}} | ?Has flowering branches photo}} |
| country                    = {{{country|}}}
        <div class="thumb active">
| province                    = {{{province|}}}
          <img src="/images/placeholder-flowering.jpg" alt="Flowering branches">
| district                    = {{{district|}}}
          <span class="thumb-label">Flowering</span>
| subdistrict                = {{{subdistrict|}}}
        </div>
| locality                    = {{{locality|}}}
      }}
| gps_coordinates            = {{{gps_coordinates|}}}
      {{#if: {{#show: {{{1}}} | ?Has close-up inflorescences photo}} |  
| elevation                  = {{{elevation|}}}
        <div class="thumb">
| primary_local_name          = {{{primary_local_name|}}}
          <img src="/images/placeholder-closeup.jpg" alt="Close-up inflorescences">
| vernacular_translation      = {{{vernacular_translation|}}}
          <span class="thumb-label">Close-up</span>
| classification              = {{{classification|}}}
        </div>
| collection_type            = {{{collection_type|}}}
      }}
| sourcing_type              = {{{sourcing_type|}}}
      {{#if: {{#show: {{{1}}} | ?Has habitat overview photo}} |  
| documentation_status        = {{{documentation_status|}}}
        <div class="thumb">
| collection_date            = {{{collection_date|}}}
          <img src="/images/placeholder-habitat.jpg" alt="Habitat overview">
| collector                  = {{{collector|}}}
          <span class="thumb-label">Habitat</span>
  | collector_affiliation       = {{{collector_affiliation|}}}
        </div>
| collection_method          = {{{collection_method|}}}
      }}
| sample_size                = {{{sample_size|}}}
      {{#if: {{#show: {{{1}}} | ?Has farmer grower portraits}} |  
| conservation_priority      = {{{conservation_priority|}}}
        <div class="thumb">
| cultivation_status          = {{{cultivation_status|}}}
          <img src="/images/placeholder-farmer.jpg" alt="Farmer portrait">
| population_estimate         = {{{population_estimate|}}}
          <span class="thumb-label">Farmer</span>
| perceived_introgression_level = {{{perceived_introgression_level|}}}
        </div>
| legal_enforcement_threats  = {{{legal_enforcement_threats|}}}
      }}
| seed_storage_location       = {{{seed_storage_location|}}}
    </div>
| seed_quantity              = {{{seed_quantity|}}}
  </div>
| last_updated                = {{{last_updated|}}}
 
}}
  <!-- Key Stats Dashboard -->
{{#set:
  <div class="hero-stats">
|Has accession ID={{{accession_id|}}}
   
|Has descriptive name={{{descriptive_name|{{PAGENAME}}}}}
    <!-- Conservation Status Card -->
|Has landrace type={{{landrace_type|}}}
    <div class="stat-card status-card {{#switch: {{#show: {{{1}}} | ?Has conservation priority | link=none}}  
|Has chemotype={{{chemotype|}}}
      | Critical = critical
|Has THC content={{{thc_content|}}}
      | High = high  
|Has CBD content={{{cbd_content|}}}
      | Medium = medium
|Has flowering time={{{flowering_time|}}}
       | Low = low
|Has plant height={{{plant_height|}}}
      | #default = unknown
|Has terpene profile={{{terpene_profile|}}}
    }}">
|Has aroma={{{aroma|}}}
      <div class="stat-icon">🛡️</div>
|Has growth pattern={{{growth_pattern|}}}
      <div class="stat-content">
|Has leaf shape={{{leaf_shape|}}}
        <div class="stat-label">Conservation Status</div>
|Has leaflet count={{{leaflet_count|}}}
        <div class="stat-value">{{#show: {{{1}}} | ?Has conservation priority | default=Unknown}}</div>
|Has photoperiod response={{{photoperiod_response|}}}
         <div class="stat-detail">{{#show: {{{1}}} | ?Has cultivation status | default=Status unknown}}</div>
|Has flower structure={{{flower_structure|}}}
       </div>
|Has gene pool={{{gene_pool|}}}
    </div>
|Has regional complex={{{regional_complex|}}}
 
|Has growing region={{{growing_region|}}}
    <!-- Collection Info Card -->
|Has growing area={{{growing_area|}}}
    <div class="stat-card collection-card">
|Has appellation={{{appellation|}}}
      <div class="stat-icon">📅</div>
|Has field={{{field|}}}
      <div class="stat-content">
|Has country={{{country|}}}
        <div class="stat-label">Collection</div>
|Has province={{{province|}}}
        <div class="stat-value">{{#show: {{{1}}} | ?Has collection date | default=Date unknown}}</div>
|Has district={{{district|}}}
        <div class="stat-detail">{{#show: {{{1}}} | ?Has collection type | default=Type unknown}} • {{#show: {{{1}}} | ?Has collector | default=Collector unknown}}</div>
|Has subdistrict={{{subdistrict|}}}
      </div>
|Has locality={{{locality|}}}
    </div>
|Has GPS coordinates={{{gps_coordinates|}}}
 
|Has elevation={{{elevation|}}}
    <!-- Location Card -->
|Has primary local name={{{primary_local_name|}}}
    <div class="stat-card location-card">
|Has vernacular translation={{{vernacular_translation|}}}
      <div class="stat-icon">📍</div>
|Has classification={{{classification|}}}
      <div class="stat-content">
|Has collection type={{{collection_type|}}}
        <div class="stat-label">Location</div>
|Has sourcing type={{{sourcing_type|}}}
        <div class="stat-value">{{#show: {{{1}}} | ?Has elevation | default=Unknown}}{{#if: {{#show: {{{1}}} | ?Has elevation}} | m elevation | }}</div>
|Has documentation status={{{documentation_status|}}}
        <div class="stat-detail">{{#show: {{{1}}} | ?Has GPS coordinates | default=Coordinates not specified}}</div>
|Has collection date={{{collection_date|}}}
      </div>
|Has collector={{{collector|}}}
    </div>
|Has collector affiliation={{{collector_affiliation|}}}
 
|Has collection method={{{collection_method|}}}
    <!-- Documentation Quality Card -->
|Has sample size={{{sample_size|}}}
    <div class="stat-card docs-card">
|Has conservation priority={{{conservation_priority|}}}
      <div class="stat-icon">📋</div>
|Has cultivation status={{{cultivation_status|}}}
      <div class="stat-content">
|Has population estimate={{{population_estimate|}}}
        <div class="stat-label">Documentation</div>
|Has perceived introgression level={{{perceived_introgression_level|}}}
        <div class="stat-value">{{#show: {{{1}}} | ?Has documentation status | default=Unknown}}</div>
|Has legal enforcement threats={{{legal_enforcement_threats|}}}
        <div class="stat-detail">
|Has seed storage location={{{seed_storage_location|}}}
          {{#if: {{#show: {{{1}}} | ?Has point of origin documentation}} | ✓ | ✗}} Origin •
|Has seed quantity={{{seed_quantity|}}}
          {{#if: {{#show: {{{1}}} | ?Has photographic metadata preserved}} | ✓ | ✗}} Photos •
|Has last updated={{{last_updated|}}}
          {{#if: {{#show: {{{1}}} | ?Has chain of custody maintained}} | ✓ | ✗}} Custody
}}
        </div>
      </div>
    </div>
 
  </div>
 
  <!-- Geographic Hierarchy Breadcrumb -->
  <div class="hero-breadcrumb">
    <div class="breadcrumb-container">
      <div class="breadcrumb-item">
        <span class="breadcrumb-icon">🌍</span>
        <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 -->
  <div class="hero-map">
    <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>
 
<!-- Temporary placeholder for detailed sections -->
<div class="coming-soon">
  <div class="coming-soon-content">
    <h3>📋 Detailed Information</h3>
    <p>Additional sections (botanical description, cultural context, conservation details) will be added here with beautiful, scannable design.</p>
    <p><em>For now, all essential information is displayed in the hero section above.</em></p>
  </div>
</div>
 
<!-- Auto-categorization -->
{{#show: {{{1}}} | ?Has country | template=Category link | link=none | sep= }}
{{#show: {{{1}}} | ?Has growing region | template=Category link | link=none | sep= }}
{{#show: {{{1}}} | ?Has documentation status | template=Category link | link=none | sep= }}
{{#show: {{{1}}} | ?Has conservation priority | template=Category link | link=none | sep= }}
[[Category:Accessions]]
[[Category:Accessions]]
 
<includeonly>
<noinclude>
== Complete Accession Template ==
 
This template displays a beautiful hero section for landrace cannabis accessions with proper CSS styling.
 
=== Usage ===
<pre>{{Accession|{{PAGENAME}}}}</pre>
 
=== Requirements ===
* CSS file must exist at Template:Accession/styles.css
* Semantic properties must be properly configured
 
=== Features ===
* Photo gallery with thumbnails
* Statistics dashboard with conservation status
* Geographic breadcrumb navigation
* Interactive map section
* Mobile-responsive design
 
[[Category:Templates]]
</noinclude>

Latest revision as of 02:20, 14 January 2026

Backend template for accessions on Landrace.Wiki.

  • Populated by Form:Accession (or future accession forms).
  • Renders the infobox via
Accession

.

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