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
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
```html
<noinclude>
<includeonly>
Backend template for accessions on Landrace.Wiki.
<templatestyles src="Template:Accession/styles.css" />
<div class="accession-simple">
  <div class="hero-header">
    <div class="hero-top">
      <!-- Primary Title Section -->
      <div class="title-section">
        <h1 class="hero-title">{{PAGENAME}}</h1>
       
        <!-- All badges in one compact row - FIXED -->
        <div class="header-badges-row">
          <div style="display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;">
            <!-- Use only existing status-badge class -->
            <div class="status-badge">{{{accession_id|{{#show:{{PAGENAME}}|?Has accession ID|default=ZOM-2023-IN-HP-015}}}}}</div>
            <div class="status-badge">{{{appellation|{{#show:{{PAGENAME}}|?Has appellation|default=Malana Valley}}}}}</div>
            <div class="status-badge">{{{growing_area|{{#show:{{PAGENAME}}|?Has growing area|default=Parvati Valley}}}}}</div>
            <div class="status-badge status-active">{{{current_status|{{#show:{{PAGENAME}}|?Has current status|default=Active}}}}}</div>
            <div class="status-badge status-tier1">{{{documentation_status|{{#show:{{PAGENAME}}|?Has documentation status|default=Tier 1}}}}}</div>
          </div>
        </div>
      </div>
    </div>


    <div class="hero-split">
* Populated by [[Form:Accession]] (or future accession forms).
      <div class="hero-image">
* Renders the infobox via {{Infobox accession}}.
        <div class="photo-placeholder">
* Sets core SemanticMediaWiki properties via {{#set}}.
          <div class="placeholder-content">
</noinclude>
            <div class="placeholder-title">Morphological Documentation</div>
            <div class="placeholder-subtitle">Standardized phenotypic characterization and habitat documentation preserves critical genetic heritage data for conservation analysis and research applications.</div>
          </div>
        </div>
        <div class="image-overlay">
          <p class="image-caption">
            [ACCESSION: {{{accession_id|{{#show:{{PAGENAME}}|?Has accession ID|default=2023 Atolang General Population}}}}}] — In-situ cultivation documentation — Elevation: {{{elevation|{{#show:{{PAGENAME}}|?Has elevation|default=2,800}}}}} m
          </p>
        </div>
      </div>
      <div class="hero-map">
        <div class="map-container">
          <div style="color: #64748b; font-family: monospace;">
            [Geographic mapping unavailable]<br><small>GPS coordinates required</small>
          </div>
        </div>
      </div>
    </div>


    <div class="hero-details">
{{Infobox accession
      <div class="detail-group">
| descriptive_name            = {{{descriptive_name|{{PAGENAME}}}}}
        <div class="detail-label">Collection date</div>
| image                      = {{{image|}}}
        <div class="detail-value">
| image_alt                  = {{{image_alt|}}}
          {{{collection_date|{{#show:{{PAGENAME}}|?Has collection date|default=10 Oct 2023}}}}}
| image_caption              = {{{image_caption|}}}
        </div>
      </div>
      <div class="detail-group">
        <div class="detail-label">Sample type</div>
        <div class="detail-value">
          {{{collection_type|{{#show:{{PAGENAME}}|?Has collection type|default=General Population}}}}}
        </div>
      </div>
      <div class="detail-group">
        <div class="detail-label">Classification</div>
        <div class="detail-value highlight">
          {{{classification|{{#show:{{PAGENAME}}|?Has classification|default=Landrace}}}}}
        </div>
      </div>
      <div class="detail-group">
        <div class="detail-label">Elevation</div>
        <div class="detail-value">
          {{{elevation|{{#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">
          {{{collector|{{#show:{{PAGENAME}}|?Has collector|default=Eloise}}}}}
        </div>
      </div>
      <div class="detail-group">
        <div class="detail-label">Institution</div>
        <div class="detail-value">
          {{{collector_affiliation|{{#show:{{PAGENAME}}|?Has collector affiliation|default=Zomia Collective}}}}}
        </div>
      </div>
      <div class="detail-group">
        <div class="detail-label">Location</div>
        <div class="detail-value">
          {{{locality|{{#show:{{PAGENAME}}|?Has locality|default=Atolang}}}}}, {{{province|{{#show:{{PAGENAME}}|?Has province|default=HP}}}}}
        </div>
      </div>
    </div>
  </div>
</div>
</includeonly>


<!-- ===== TIER 1: ESSENTIAL DATA (RUDIMENTARY RENDER) ===== -->
| accession_id                = {{{accession_id|}}}
<div class="tier1">
| classification              = {{{classification|}}}
| collection_type            = {{{collection_type|}}}
| sourcing_type              = {{{sourcing_type|}}}
| documentation_status        = {{{documentation_status|}}}


  <h2>Tier 1: Essential Data</h2>
| gene_pool                  = {{{gene_pool|}}}
| regional_complex            = {{{regional_complex|}}}
| growing_region              = {{{growing_region|}}}
| growing_area                = {{{growing_area|}}}
| appellation                = {{{appellation|}}}
| field                      = {{{field|}}}


  <!-- Geographic Hierarchy -->
| country                    = {{{country|}}}
  <h3>Geographic Hierarchy</h3>
| province                    = {{{province|}}}
  {{#if: {{{growing_region|{{#show:{{PAGENAME}}|?Has growing region}}}}} |
| district                    = {{{district|}}}
    <div><span class="detail-label">Growing Region</span> <span class="detail-value">{{{growing_region|{{#show:{{PAGENAME}}|?Has growing region}}}}}</span></div>
| locality                    = {{{locality|}}}
  }}
  {{#if: {{{appellation|{{#show:{{PAGENAME}}|?Has appellation}}}}} |
    <div><span class="detail-label">Appellation</span> <span class="detail-value">{{{appellation|{{#show:{{PAGENAME}}|?Has appellation}}}}}</span></div>
  }}
  {{#if: {{{field|{{#show:{{PAGENAME}}|?Has field}}}}} |
    <div><span class="detail-label">Field</span> <span class="detail-value">{{{field|{{#show:{{PAGENAME}}|?Has field}}}}}</span></div>
  }}


  <!-- Primary Identification -->
| gps_coordinates            = {{{gps_coordinates|}}}
  <h3>Primary Identification</h3>
| elevation                  = {{{elevation|}}}
  {{#if: {{{accession_id|{{#show:{{PAGENAME}}|?Has accession ID}}}}} |
    <div><span class="detail-label">Accession ID</span> <span class="detail-value">{{{accession_id|{{#show:{{PAGENAME}}|?Has accession ID}}}}}</span></div>
  }}
  {{#if: {{{collection_date|{{#show:{{PAGENAME}}|?Has collection date}}}}} |
    <div><span class="detail-label">Collection Date</span> <span class="detail-value">{{{collection_date|{{#show:{{PAGENAME}}|?Has collection date}}}}}</span></div>
  }}
  {{#if: {{{collection_type|{{#show:{{PAGENAME}}|?Has collection type}}}}} |
    <div><span class="detail-label">Collection Type</span> <span class="detail-value">{{{collection_type|{{#show:{{PAGENAME}}|?Has collection type}}}}}</span></div>
  }}
  {{#if: {{{documentation_status|{{#show:{{PAGENAME}}|?Has documentation status}}}}} |
    <div><span class="detail-label">Documentation Status</span> <span class="detail-value">{{{documentation_status|{{#show:{{PAGENAME}}|?Has documentation status}}}}}</span></div>
  }}
  {{#if: {{{classification|{{#show:{{PAGENAME}}|?Has classification}}}}} |
    <div><span class="detail-label">Classification</span> <span class="detail-value">{{{classification|{{#show:{{PAGENAME}}|?Has classification}}}}}</span></div>
  }}


  <!-- Geographic Data -->
| primary_local_name          = {{{primary_local_name|}}}
  <h3>Geographic Data</h3>
| vernacular_translation      = {{{vernacular_translation|}}}
  {{#if: {{{country|{{#show:{{PAGENAME}}|?Has country}}}}} |
    <div><span class="detail-label">Country</span> <span class="detail-value">{{{country|{{#show:{{PAGENAME}}|?Has country}}}}}</span></div>
  }}
  {{#if: {{{province|{{#show:{{PAGENAME}}|?Has province}}}}} |
    <div><span class="detail-label">Province/State</span> <span class="detail-value">{{{province|{{#show:{{PAGENAME}}|?Has province}}}}}</span></div>
  }}
  {{#if: {{{locality|{{#show:{{PAGENAME}}|?Has locality}}}}} |
    <div><span class="detail-label">Locality/Village</span> <span class="detail-value">{{{locality|{{#show:{{PAGENAME}}|?Has locality}}}}}</span></div>
  }}
  {{#if: {{{gps_coordinates|{{#show:{{PAGENAME}}|?Has GPS coordinates}}}}} |
    <div><span class="detail-label">GPS Coordinates</span> <span class="detail-value">{{{gps_coordinates|{{#show:{{PAGENAME}}|?Has GPS coordinates}}}}}</span></div>
  }}
  {{#if: {{{elevation|{{#show:{{PAGENAME}}|?Has elevation}}}}} |
    <div><span class="detail-label">Elevation (meters)</span> <span class="detail-value">{{{elevation|{{#show:{{PAGENAME}}|?Has elevation}}}}}</span></div>
  }}
  {{#if: {{{descriptive_name|{{#show:{{PAGENAME}}|?Has descriptive name}}}}} |
    <div><span class="detail-label">Descriptive Name</span> <span class="detail-value">{{{descriptive_name|{{#show:{{PAGENAME}}|?Has descriptive name}}}}}</span></div>
  }}


  <!-- Traditional Nomenclature -->
| collection_date            = {{{collection_date|}}}
  <h3>Traditional Nomenclature</h3>
| collector                  = {{{collector|}}}
  {{#if: {{{primary_local_name|{{#show:{{PAGENAME}}|?Has primary local name}}}}} |
| collector_affiliation      = {{{collector_affiliation|}}}
    <div><span class="detail-label">Primary Local Name</span> <span class="detail-value">{{{primary_local_name|{{#show:{{PAGENAME}}|?Has primary local name}}}}}</span></div>
| collection_method          = {{{collection_method|}}}
  }}
| sample_size                = {{{sample_size|}}}
  {{#if: {{{vernacular_translation|{{#show:{{PAGENAME}}|?Has vernacular translation}}}}} |
    <div><span class="detail-label">Vernacular Translation</span> <span class="detail-value">{{{vernacular_translation|{{#show:{{PAGENAME}}|?Has vernacular translation}}}}}</span></div>
  }}


  <!-- Collection Details -->
| cultivation_status          = {{{cultivation_status|}}}
  <h3>Collection Details</h3>
| conservation_priority      = {{{conservation_priority|}}}
  {{#if: {{{collector|{{#show:{{PAGENAME}}|?Has collector}}}}} |
| population_estimate        = {{{population_estimate|}}}
    <div><span class="detail-label">Collector</span> <span class="detail-value">{{{collector|{{#show:{{PAGENAME}}|?Has collector}}}}}</span></div>
| perceived_introgression_level = {{{perceived_introgression_level|}}}
  }}
| legal_enforcement_threats   = {{{legal_enforcement_threats|}}}
  {{#if: {{{collection_method|{{#show:{{PAGENAME}}|?Has collection method}}}}} |
    <div><span class="detail-label">Collection Method</span> <span class="detail-value">{{{collection_method|{{#show:{{PAGENAME}}|?Has collection method}}}}}</span></div>
  }}
  {{#if: {{{sample_size|{{#show:{{PAGENAME}}|?Has sample size}}}}} |
    <div><span class="detail-label">Sample Size</span> <span class="detail-value">{{{sample_size|{{#show:{{PAGENAME}}|?Has sample size}}}}}</span></div>
  }}
  {{#if: {{{sourcing_type|{{#show:{{PAGENAME}}|?Has sourcing type}}}}} |
    <div><span class="detail-label">Sourcing Type</span> <span class="detail-value">{{{sourcing_type|{{#show:{{PAGENAME}}|?Has sourcing type}}}}}</span></div>
   }}
  {{#if: {{{planting_method|{{#show:{{PAGENAME}}|?Has planting method}}}}} |
    <div><span class="detail-label">Planting Method</span> <span class="detail-value">{{{planting_method|{{#show:{{PAGENAME}}|?Has planting method}}}}}</span></div>
  }}


  <!-- Conservation Assessment -->
| seed_storage_location      = {{{seed_storage_location|}}}
  <h3>Conservation Assessment</h3>
| seed_quantity              = {{{seed_quantity|}}}
  {{#if: {{{cultivation_status|{{#show:{{PAGENAME}}|?Has cultivation status}}}}} |
    <div><span class="detail-label">Cultivation Status</span> <span class="detail-value">{{{cultivation_status|{{#show:{{PAGENAME}}|?Has cultivation status}}}}}</span></div>
  }}
  {{#if: {{{population_estimate|{{#show:{{PAGENAME}}|?Has population estimate}}}}} |
    <div><span class="detail-label">Population Estimate</span> <span class="detail-value">{{{population_estimate|{{#show:{{PAGENAME}}|?Has population estimate}}}}}</span></div>
  }}
  {{#if: {{{perceived_introgression_level|{{#show:{{PAGENAME}}|?Has perceived introgression level}}}}} |
    <div><span class="detail-label">Perceived Introgression Level</span> <span class="detail-value">{{{perceived_introgression_level|{{#show:{{PAGENAME}}|?Has perceived introgression level}}}}}</span></div>
  }}
  {{#if: {{{legal_enforcement_threats|{{#show:{{PAGENAME}}|?Has legal enforcement threats}}}}} |
    <div><span class="detail-label">Legal Enforcement Threats</span> <span class="detail-value">{{{legal_enforcement_threats|{{#show:{{PAGENAME}}|?Has legal enforcement threats}}}}}</span></div>
  }}
  {{#if: {{{conservation_priority|{{#show:{{PAGENAME}}|?Has conservation priority}}}}} |
    <div><span class="detail-label">Conservation Priority</span> <span class="detail-value">{{{conservation_priority|{{#show:{{PAGENAME}}|?Has conservation priority}}}}}</span></div>
  }}


  <!-- Photo Documentation (booleans emit a pill when true) -->
| last_updated                = {{{last_updated|}}}
  <h3>Photo Documentation</h3>
}}
  <div style="display:flex;flex-wrap:wrap;gap:.5rem;">
    {{#if: {{{whole_plant_photo|{{#show:{{PAGENAME}}|?Has whole plant in habitat photo}}}}} | <div class="status-badge">Whole plant in habitat photo</div> }}
    {{#if: {{{inflorescences_photo|{{#show:{{PAGENAME}}|?Has close-up inflorescences photo}}}}} | <div class="status-badge">Close-up inflorescences photo</div> }}
    {{#if: {{{habitat_overview_photo|{{#show:{{PAGENAME}}|?Has habitat overview photo}}}}} | <div class="status-badge">Habitat overview photo</div> }}
    {{#if: {{{flowering_branches_photo|{{#show:{{PAGENAME}}|?Has flowering branches photo}}}}} | <div class="status-badge">Flowering branches photo</div> }}
    {{#if: {{{harvest_photo|{{#show:{{PAGENAME}}|?Has harvest photo}}}}} | <div class="status-badge">Harvest photo</div> }}
    {{#if: {{{point_origin_doc|{{#show:{{PAGENAME}}|?Has point of origin documentation}}}}} | <div class="status-badge">Point of origin documented</div> }}
    {{#if: {{{geographic_hierarchy_recorded|{{#show:{{PAGENAME}}|?Has geographic hierarchy recorded}}}}} | <div class="status-badge">Geographic hierarchy recorded</div> }}
    {{#if: {{{gps_verified|{{#show:{{PAGENAME}}|?Has GPS coordinates verified}}}}} | <div class="status-badge">GPS coordinates verified</div> }}
    {{#if: {{{traditional_names_doc|{{#show:{{PAGENAME}}|?Has traditional names documented}}}}} | <div class="status-badge">Traditional names documented</div> }}
    {{#if: {{{conservation_status_assessed|{{#show:{{PAGENAME}}|?Has conservation status assessed}}}}} | <div class="status-badge">Conservation status assessed</div> }}
  </div>


  <!-- Preservation Status -->
{{#set:
  <h3>Preservation Status</h3>
|Has accession ID={{{accession_id|}}}
  {{#if: {{{seed_storage_location|{{#show:{{PAGENAME}}|?Has seed storage location}}}}} |
|Has descriptive name={{{descriptive_name|{{PAGENAME}}}}}
    <div><span class="detail-label">Seed Storage Location</span> <span class="detail-value">{{{seed_storage_location|{{#show:{{PAGENAME}}|?Has seed storage location}}}}}</span></div>
|Has classification={{{classification|}}}
  }}
|Has collection type={{{collection_type|}}}
  {{#if: {{{seed_quantity|{{#show:{{PAGENAME}}|?Has seed quantity}}}}} |
|Has sourcing type={{{sourcing_type|}}}
    <div><span class="detail-label">Seed Quantity</span> <span class="detail-value">{{{seed_quantity|{{#show:{{PAGENAME}}|?Has seed quantity}}}}}</span></div>
|Has documentation status={{{documentation_status|}}}
  }}
|Has gene pool={{{gene_pool|}}}
  {{#if: {{{shared_community|{{#show:{{PAGENAME}}|?Has shared with community seed libraries}}}}} |
|Has regional complex={{{regional_complex|}}}
    <div><span class="detail-label">Shared with Community</span> <span class="detail-value">Yes</span></div>
|Has growing region={{{growing_region|}}}
  }}
|Has growing area={{{growing_area|}}}
  {{#if: {{{shared_preservationists|{{#show:{{PAGENAME}}|?Has shared with private preservationists}}}}} |
|Has appellation={{{appellation|}}}
    <div><span class="detail-label">Shared with Preservationists</span> <span class="detail-value">Yes</span></div>
|Has field={{{field|}}}
  }}
|Has country={{{country|}}}
 
|Has province={{{province|}}}
  <!-- Field Management -->
|Has district={{{district|}}}
  <h3>Field Management</h3>
|Has locality={{{locality|}}}
  {{#if: {{{conservation_action_needed|{{#show:{{PAGENAME}}|?Has conservation action needed}}}}} |
|Has GPS coordinates={{{gps_coordinates|}}}
    <div><span class="detail-label">Conservation Action Needed</span> <span class="detail-value">Yes</span></div>
|Has elevation={{{elevation|}}}
  }}
|Has primary local name={{{primary_local_name|}}}
  {{#if: {{{need_broader_sample|{{#show:{{PAGENAME}}|?Has need broader population sample}}}}} |
|Has vernacular translation={{{vernacular_translation|}}}
    <div><span class="detail-label">Need Broader Population Sample</span> <span class="detail-value">Yes</span></div>
|Has collection date={{{collection_date|}}}
  }}
|Has collector={{{collector|}}}
  {{#if: {{{morphological_study_needed|{{#show:{{PAGENAME}}|?Has morphological study needed}}}}} |
|Has collector affiliation={{{collector_affiliation|}}}
    <div><span class="detail-label">Morphological Study Needed</span> <span class="detail-value">Yes</span></div>
|Has collection method={{{collection_method|}}}
  }}
|Has sample size={{{sample_size|}}}
  {{#if: {{{location_sensitivity|{{#show:{{PAGENAME}}|?Has location sensitivity}}}}} |
|Has cultivation status={{{cultivation_status|}}}
    <div><span class="detail-label">Location Sensitivity</span> <span class="detail-value">{{{location_sensitivity|{{#show:{{PAGENAME}}|?Has location sensitivity}}}}}</span></div>
|Has conservation priority={{{conservation_priority|}}}
  }}
|Has population estimate={{{population_estimate|}}}
  {{#if: {{{cultural_restrictions|{{#show:{{PAGENAME}}|?Has cultural restrictions}}}}} |
|Has perceived introgression level={{{perceived_introgression_level|}}}
    <div><span class="detail-label">Cultural Restrictions</span> <span class="detail-value">{{{cultural_restrictions|{{#show:{{PAGENAME}}|?Has cultural restrictions}}}}}</span></div>
|Has legal enforcement threats={{{legal_enforcement_threats|}}}
  }}
|Has seed storage location={{{seed_storage_location|}}}
  {{#if: {{{legal_considerations|{{#show:{{PAGENAME}}|?Has legal considerations}}}}} |
|Has seed quantity={{{seed_quantity|}}}
    <div><span class="detail-label">Legal Considerations</span> <span class="detail-value">{{{legal_considerations|{{#show:{{PAGENAME}}|?Has legal considerations}}}}}</span></div>
|Has last updated={{{last_updated|}}}
  }}
}}
 
</div>
<!-- ===== /TIER 1 ===== -->
```

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.