Toggle menu
44
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
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<noinclude>
<templatestyles src="Template:Accession/styles.css" />
Backend template for accessions on Landrace.Wiki.
<div class="accession-simple">
* Populated by [[Form:Accession]] (or future accession forms).
  <div class="hero-header">
* Renders the infobox via {{Infobox accession}}.
    <div class="hero-top">
* Sets core SemanticMediaWiki properties via {{#set}}.
      <!-- Primary Title Section -->
</noinclude>
      <div class="title-section">
{{Infobox accession
        <h1 class="hero-title">{{PAGENAME}}</h1>
| descriptive_name            = {{{descriptive_name|{{PAGENAME}}}}}
        <div class="accession-metadata">
| image                      = {{{image|}}}
          <div class="metadata-primary">
| image_alt                  = {{{image_alt|}}}
            <span class="accession-id">{{#show:{{PAGENAME}}|?Has accession ID|default=ZOM-2023-IN-HP-015}}</span>
| image_caption              = {{{image_caption|}}}
            <span class="collection-date">{{#show:{{PAGENAME}}|?Has collection date|default=Oct 2023}}</span>
| show_map                    = {{{show_map|}}}
          </div>
| accession_id                = {{{accession_id|}}}
          <div class="metadata-secondary">
| landrace_type              = {{{landrace_type|}}}
            <span class="collector">{{#show:{{PAGENAME}}|?Has collector|default=Eloise}}</span>
| chemotype                  = {{{chemotype|}}}
            <span class="separator">·</span>
| thc_content                = {{{thc_content|}}}
            <span class="affiliation">{{#show:{{PAGENAME}}|?Has collector affiliation|default=Zomia Collective}}</span>
| cbd_content                = {{{cbd_content|}}}
          </div>
| flowering_time              = {{{flowering_time|}}}
        </div>
| plant_height                = {{{plant_height|}}}
      </div>
| terpene_profile            = {{{terpene_profile|}}}
 
| aroma                      = {{{aroma|}}}
      <!-- Geographic Location Section -->
| growth_pattern              = {{{growth_pattern|}}}
      <div class="header-section">
| leaf_shape                  = {{{leaf_shape|}}}
        <div class="section-label geographic">Geographic location</div>
| leaflet_count              = {{{leaflet_count|}}}
        <div style="display: flex; align-items: center; flex-wrap: wrap;">
| photoperiod_response        = {{{photoperiod_response|}}}
          <div class="geographic-badge">{{#show:{{PAGENAME}}|?Has regional complex|default=Hindu Kush-Himalayas}}</div>
| flower_structure            = {{{flower_structure|}}}
          <span class="geographic-separator">›</span>
| gene_pool                  = {{{gene_pool|}}}
          <div class="geographic-badge">{{#show:{{PAGENAME}}|?Has growing region|default=Western Himalayas}}</div>
| regional_complex            = {{{regional_complex|}}}
          <span class="geographic-separator">›</span>
| growing_region              = {{{growing_region|}}}
          <div class="geographic-badge">{{#show:{{PAGENAME}}|?Has growing area|default=Parvati Valley}}</div>
| growing_area                = {{{growing_area|}}}
          <span class="geographic-separator">›</span>
| appellation                = {{{appellation|}}}
          <div class="geographic-badge geographic-current">{{#show:{{PAGENAME}}|?Has appellation|default=Malana Valley}}</div>
| field                      = {{{field|}}}
        </div>
| country                    = {{{country|}}}
      </div>
| province                    = {{{province|}}}
 
| district                    = {{{district|}}}
      <!-- Status & Classification Section -->
| subdistrict                = {{{subdistrict|}}}
      <div class="header-section">
| locality                    = {{{locality|}}}
        <div class="status-row">
| gps_coordinates            = {{{gps_coordinates|}}}
          <div class="status-group">
| elevation                  = {{{elevation|}}}
            <div class="section-label status">Conservation status</div>
| primary_local_name          = {{{primary_local_name|}}}
            <div style="display: flex; gap: 0.5rem; flex-wrap: wrap;">
| vernacular_translation      = {{{vernacular_translation|}}}
              <div class="status-badge status-active">{{#show:{{PAGENAME}}|?Has current status|default=Active}}</div>
| classification             = {{{classification|}}}
              <div class="status-badge status-tier1">{{#show:{{PAGENAME}}|?Has documentation status|default=Tier 1}}</div>
| collection_type             = {{{collection_type|}}}
              <div class="status-badge status-priority">{{#show:{{PAGENAME}}|?Has conservation priority|default=High priority}}</div>
| sourcing_type               = {{{sourcing_type|}}}
            </div>
| documentation_status        = {{{documentation_status|}}}
          </div>
| collection_date            = {{{collection_date|}}}
         
| collector                  = {{{collector|}}}
          <div class="classification-group">
| collector_affiliation       = {{{collector_affiliation|}}}
            <div class="section-label classification">Classification</div>
| collection_method          = {{{collection_method|}}}
             <div style="display: flex; gap: 0.5rem; flex-wrap: wrap;">
| sample_size                = {{{sample_size|}}}
               <div class="classification-badge classification-landrace">{{#show:{{PAGENAME}}|?Has classification|default=Landrace}}</div>
| conservation_priority      = {{{conservation_priority|}}}
              <div class="classification-badge classification-population">{{#show:{{PAGENAME}}|?Has collection type|default=General Population}}</div>
| cultivation_status          = {{{cultivation_status|}}}
            </div>
| population_estimate         = {{{population_estimate|}}}
          </div>
| perceived_introgression_level = {{{perceived_introgression_level|}}}
        </div>
| legal_enforcement_threats  = {{{legal_enforcement_threats|}}}
       </div>
| seed_storage_location       = {{{seed_storage_location|}}}
 
| seed_quantity              = {{{seed_quantity|}}}
      <!-- FIXED: Action buttons now use spans instead of buttons -->
| last_updated                = {{{last_updated|}}}
      <div class="header-actions">
}}
        <span class="action-btn action-primary">
{{#set:
          <span class="action-icon">✏️</span>
|Has accession ID={{{accession_id|}}}
          Edit Accession
|Has descriptive name={{{descriptive_name|{{PAGENAME}}}}}
        </span>
|Has landrace type={{{landrace_type|}}}
        <span class="action-btn action-secondary">
|Has chemotype={{{chemotype|}}}
          <span class="action-icon">📷</span>
|Has THC content={{{thc_content|}}}
          View Photos
|Has CBD content={{{cbd_content|}}}
         </span>
|Has flowering time={{{flowering_time|}}}
        <span class="action-btn action-secondary">
|Has plant height={{{plant_height|}}}
          <span class="action-icon">📊</span>
|Has terpene profile={{{terpene_profile|}}}
          Export Data
|Has aroma={{{aroma|}}}
        </span>
|Has growth pattern={{{growth_pattern|}}}
      </div>
|Has leaf shape={{{leaf_shape|}}}
    </div>
|Has leaflet count={{{leaflet_count|}}}
 
|Has photoperiod response={{{photoperiod_response|}}}
    <div class="hero-split">
|Has flower structure={{{flower_structure|}}}
       <div class="hero-image">
|Has gene pool={{{gene_pool|}}}
        <div class="photo-placeholder">
|Has regional complex={{{regional_complex|}}}
          <div class="placeholder-content">
|Has growing region={{{growing_region|}}}
            <div class="placeholder-title">Morphological Documentation</div>
|Has growing area={{{growing_area|}}}
            <div class="placeholder-subtitle">Standardized phenotypic characterization and habitat documentation preserves critical genetic heritage data for conservation analysis and research applications.</div>
|Has appellation={{{appellation|}}}
          </div>
|Has field={{{field|}}}
        </div>
|Has country={{{country|}}}
        <div class="image-overlay">
|Has province={{{province|}}}
          <p class="image-caption">
|Has district={{{district|}}}
            [ACCESSION: {{#show:{{PAGENAME}}|?Has accession ID|default=2023 Atolang General Population}}] — In-situ cultivation documentation — Elevation: {{#show:{{PAGENAME}}|?Has elevation|default=2,800}} m
|Has subdistrict={{{subdistrict|}}}
          </p>
|Has locality={{{locality|}}}
        </div>
|Has GPS coordinates={{{gps_coordinates|}}}
      </div>
|Has elevation={{{elevation|}}}
      <div class="hero-map">
|Has primary local name={{{primary_local_name|}}}
        <div class="map-container">
|Has vernacular translation={{{vernacular_translation|}}}
          <div style="color: #64748b; font-family: monospace;">
|Has classification={{{classification|}}}
            [Geographic mapping unavailable]<br><small>GPS coordinates required</small>
|Has collection type={{{collection_type|}}}
          </div>
|Has sourcing type={{{sourcing_type|}}}
        </div>
|Has documentation status={{{documentation_status|}}}
      </div>
|Has collection date={{{collection_date|}}}
    </div>
|Has collector={{{collector|}}}
 
|Has collector affiliation={{{collector_affiliation|}}}
    <div class="hero-details">
|Has collection method={{{collection_method|}}}
      <div class="detail-group">
|Has sample size={{{sample_size|}}}
        <div class="detail-label">Collection date</div>
|Has conservation priority={{{conservation_priority|}}}
        <div class="detail-value">{{#show:{{PAGENAME}}|?Has collection date|default=10 Oct 2023}}</div>
|Has cultivation status={{{cultivation_status|}}}
      </div>
|Has population estimate={{{population_estimate|}}}
      <div class="detail-group">
|Has perceived introgression level={{{perceived_introgression_level|}}}
        <div class="detail-label">Sample type</div>
|Has legal enforcement threats={{{legal_enforcement_threats|}}}
        <div class="detail-value">{{#show:{{PAGENAME}}|?Has collection type|default=General Population}}</div>
|Has seed storage location={{{seed_storage_location|}}}
      </div>
|Has seed quantity={{{seed_quantity|}}}
      <div class="detail-group">
|Has last updated={{{last_updated|}}}
        <div class="detail-label">Classification</div>
}}
        <div class="detail-value highlight">{{#show:{{PAGENAME}}|?Has classification|default=Landrace}}</div>
[[Category:Accessions]]
      </div>
      <div class="detail-group">
        <div class="detail-label">Elevation</div>
        <div class="detail-value">{{#show:{{PAGENAME}}|?Has elevation|default=2,800}}<span class="unit">m</span></div>
      </div>
      <div class="detail-group">
        <div class="detail-label">Researcher</div>
        <div class="detail-value">{{#show:{{PAGENAME}}|?Has collector|default=Eloise}}</div>
      </div>
      <div class="detail-group">
        <div class="detail-label">Institution</div>
        <div class="detail-value">{{#show:{{PAGENAME}}|?Has collector affiliation|default=Zomia Collective}}</div>
      </div>
      <div class="detail-group">
        <div class="detail-label">Location</div>
        <div class="detail-value">{{#show:{{PAGENAME}}|?Has locality|default=Atolang}}, {{#show:{{PAGENAME}}|?Has province|default=HP}}</div>
      </div>
    </div>
  </div>
</div>
</includeonly>

Latest revision as of 10:38, 12 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}}.


Accession