Toggle menu
4
19
13
1.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
 
(72 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<templatestyles src="Template:Accession/styles.css" />
<templatestyles src="Template:Accession/styles.css" />
<div class="accession-simple">
<div class="accession-simple">
    
   <div class="hero-header">
  <!-- Header Section -->
    <div class="hero-top">
  <div class="simple-header">
      <!-- Primary Title Section -->
    <h1 class="simple-title">{{PAGENAME}}</h1>
      <div class="title-section">
    <div class="simple-subtitle">{{#show: {{{1}}} | ?Has accession ID}}</div>
        <h1 class="hero-title">{{PAGENAME}}</h1>
  </div>
       
        <!-- 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>


  <!-- Basic Information Grid -->
    <div class="hero-split">
  <div class="simple-grid">
      <div class="hero-image">
   
        <div class="photo-placeholder">
    <div class="simple-card">
          <div class="placeholder-content">
      <h3>Collection Information</h3>
            <div class="placeholder-title">Morphological Documentation</div>
      <p><strong>Date:</strong> {{#show: {{{1}}} | ?Has collection date}}</p>
            <div class="placeholder-subtitle">Standardized phenotypic characterization and habitat documentation preserves critical genetic heritage data for conservation analysis and research applications.</div>
      <p><strong>Type:</strong> {{#show: {{{1}}} | ?Has collection type}}</p>
          </div>
       <p><strong>Collector:</strong> {{#show: {{{1}}} | ?Has collector}}</p>
        </div>
      <p><strong>Status:</strong> {{#show: {{{1}}} | ?Has documentation status}}</p>
        <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>


     <div class="simple-card">
     <div class="hero-details">
       <h3>Location</h3>
       <div class="detail-group">
       <p><strong>Country:</strong> {{#show: {{{1}}} | ?Has country}}</p>
        <div class="detail-label">Collection date</div>
       <p><strong>Province:</strong> {{#show: {{{1}}} | ?Has province}}</p>
        <div class="detail-value">
       <p><strong>Locality:</strong> {{#show: {{{1}}} | ?Has locality}}</p>
          {{{collection_date|{{#show:{{PAGENAME}}|?Has collection date|default=10 Oct 2023}}}}}
       <p><strong>Elevation:</strong> {{#show: {{{1}}} | ?Has elevation}}m</p>
        </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>
</div>
</includeonly>


    <div class="simple-card">
<!-- ===== TIER 1: ESSENTIAL DATA (RUDIMENTARY RENDER) ===== -->
      <h3>Geographic Hierarchy</h3>
<div class="tier1">
      <p><strong>Region:</strong> {{#show: {{{1}}} | ?Has growing region}}</p>
 
      <p><strong>Area:</strong> {{#show: {{{1}}} | ?Has growing area}}</p>
  <h2>Tier 1: Essential Data</h2>
      <p><strong>Appellation:</strong> {{#show: {{{1}}} | ?Has appellation}}</p>
      <p><strong>Field:</strong> {{#show: {{{1}}} | ?Has field}}</p>
    </div>


    <div class="simple-card">
  <!-- Geographic Hierarchy -->
      <h3>Conservation</h3>
  <h3>Geographic Hierarchy</h3>
      <p><strong>Priority:</strong> {{#show: {{{1}}} | ?Has conservation priority}}</p>
  {{#if: {{{growing_region|{{#show:{{PAGENAME}}|?Has growing region}}}}} |
      <p><strong>Status:</strong> {{#show: {{{1}}} | ?Has cultivation status}}</p>
    <div><span class="detail-label">Growing Region</span> <span class="detail-value">{{{growing_region|{{#show:{{PAGENAME}}|?Has growing region}}}}}</span></div>
      <p><strong>Current:</strong> {{#show: {{{1}}} | ?Has current status}}</p>
  }}
    </div>
  {{#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>
  }}


   </div>
   <!-- Primary Identification -->
  <h3>Primary Identification</h3>
  {{#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>
  }}


   <!-- Coordinates Section -->
   <!-- Geographic Data -->
   <div class="simple-coords">
   <h3>Geographic Data</h3>
     <h3>Coordinates</h3>
  {{#if: {{{country|{{#show:{{PAGENAME}}|?Has country}}}}} |
     <p>{{#show: {{{1}}} | ?Has GPS coordinates}}</p>
    <div><span class="detail-label">Country</span> <span class="detail-value">{{{country|{{#show:{{PAGENAME}}|?Has country}}}}}</span></div>
   </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>
  }}


</div>
  <!-- Traditional Nomenclature -->
  <h3>Traditional Nomenclature</h3>
  {{#if: {{{primary_local_name|{{#show:{{PAGENAME}}|?Has primary local name}}}}} |
    <div><span class="detail-label">Primary Local Name</span> <span class="detail-value">{{{primary_local_name|{{#show:{{PAGENAME}}|?Has primary local name}}}}}</span></div>
  }}
  {{#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>
  }}


<!-- Categorization -->
  <!-- Collection Details -->
[[Category:Accessions]]
  <h3>Collection Details</h3>
  {{#if: {{{collector|{{#show:{{PAGENAME}}|?Has collector}}}}} |
    <div><span class="detail-label">Collector</span> <span class="detail-value">{{{collector|{{#show:{{PAGENAME}}|?Has collector}}}}}</span></div>
  }}
  {{#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>
  }}


<noinclude>
  <!-- Conservation Assessment -->
== Minimal Accession Template ==
  <h3>Conservation Assessment</h3>
  {{#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>
  }}


This is a simplified template for testing semantic property display.
  <!-- Photo Documentation (booleans emit a pill when true) -->
  <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>


=== Usage ===
  <!-- Preservation Status -->
<pre>{{Accession|{{PAGENAME}}}}</pre>
  <h3>Preservation Status</h3>
  {{#if: {{{seed_storage_location|{{#show:{{PAGENAME}}|?Has seed storage location}}}}} |
    <div><span class="detail-label">Seed Storage Location</span> <span class="detail-value">{{{seed_storage_location|{{#show:{{PAGENAME}}|?Has seed storage location}}}}}</span></div>
  }}
  {{#if: {{{seed_quantity|{{#show:{{PAGENAME}}|?Has seed quantity}}}}} |
    <div><span class="detail-label">Seed Quantity</span> <span class="detail-value">{{{seed_quantity|{{#show:{{PAGENAME}}|?Has seed quantity}}}}}</span></div>
  }}
  {{#if: {{{shared_community|{{#show:{{PAGENAME}}|?Has shared with community seed libraries}}}}} |
    <div><span class="detail-label">Shared with Community</span> <span class="detail-value">Yes</span></div>
  }}
  {{#if: {{{shared_preservationists|{{#show:{{PAGENAME}}|?Has shared with private preservationists}}}}} |
    <div><span class="detail-label">Shared with Preservationists</span> <span class="detail-value">Yes</span></div>
  }}


=== Purpose ===
  <!-- Field Management -->
This template uses only basic MediaWiki functions to ensure proper parsing and display of semantic properties.
  <h3>Field Management</h3>
  {{#if: {{{conservation_action_needed|{{#show:{{PAGENAME}}|?Has conservation action needed}}}}} |
    <div><span class="detail-label">Conservation Action Needed</span> <span class="detail-value">Yes</span></div>
  }}
  {{#if: {{{need_broader_sample|{{#show:{{PAGENAME}}|?Has need broader population sample}}}}} |
    <div><span class="detail-label">Need Broader Population Sample</span> <span class="detail-value">Yes</span></div>
  }}
  {{#if: {{{morphological_study_needed|{{#show:{{PAGENAME}}|?Has morphological study needed}}}}} |
    <div><span class="detail-label">Morphological Study Needed</span> <span class="detail-value">Yes</span></div>
  }}
  {{#if: {{{location_sensitivity|{{#show:{{PAGENAME}}|?Has location sensitivity}}}}} |
    <div><span class="detail-label">Location Sensitivity</span> <span class="detail-value">{{{location_sensitivity|{{#show:{{PAGENAME}}|?Has location sensitivity}}}}}</span></div>
  }}
  {{#if: {{{cultural_restrictions|{{#show:{{PAGENAME}}|?Has cultural restrictions}}}}} |
    <div><span class="detail-label">Cultural Restrictions</span> <span class="detail-value">{{{cultural_restrictions|{{#show:{{PAGENAME}}|?Has cultural restrictions}}}}}</span></div>
  }}
  {{#if: {{{legal_considerations|{{#show:{{PAGENAME}}|?Has legal considerations}}}}} |
    <div><span class="detail-label">Legal Considerations</span> <span class="detail-value">{{{legal_considerations|{{#show:{{PAGENAME}}|?Has legal considerations}}}}}</span></div>
  }}


[[Category:Templates]]
</div>
</noinclude>
<!-- ===== /TIER 1 ===== -->
```

Latest revision as of 13:37, 19 September 2025


Tier 1: Essential Data

Geographic Hierarchy



Primary Identification




Geographic Data




Traditional Nomenclature


Collection Details




Conservation Assessment




Photo Documentation






Preservation Status



Field Management




```