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
 
(75 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">


<div class="hero-header">
* Populated by [[Form:Accession]] (or future accession forms).
  <!-- Top section with title and badges -->
* Renders the infobox via {{Infobox accession}}.
  <div class="hero-top">
* Sets core SemanticMediaWiki properties via {{#set}}.
    <h1 class="hero-title">{{PAGENAME}}</h1>
</noinclude>
    <div class="hero-subtitle">{{#show: {{{1}}} | ?Has accession ID}}</div>
   
    <div class="hero-pills">
      <div class="hero-pill">
        <span class="pill-label">STATUS:</span>{{#show: {{{1}}} | ?Has current status}}
      </div>
      <div class="hero-pill">
        <span class="pill-label">TIER:</span>{{#show: {{{1}}} | ?Has documentation status}}
      </div>
      <div class="hero-pill">
        <span class="pill-label">PRIORITY:</span>{{#show: {{{1}}} | ?Has conservation priority}}
      </div>
    </div>
  </div>


  <!-- Split layout section -->
{{Infobox accession
  <div class="hero-split">
| descriptive_name            = {{{descriptive_name|{{PAGENAME}}}}}
    <!-- Left: Plant Photography -->
| image                       = {{{image|}}}
    <div class="hero-image">
| image_alt                  = {{{image_alt|}}}
      <!-- Main habitat photo with improved fallback -->
| image_caption              = {{{image_caption|}}}
      {{#if: {{#show: {{{1}}} | ?Has habitat photo filename}} |
        [[File:{{#show: {{{1}}} | ?Has habitat photo filename}}|600x400px|{{PAGENAME}} in natural habitat]]
      |{{#if: {{#show: {{{1}}} | ?Has whole plant photo filename}} |
        [[File:{{#show: {{{1}}} | ?Has whole plant photo filename}}|600x400px|{{PAGENAME}} whole plant]]
      |{{#if: {{#show: {{{1}}} | ?Has landscape photo filename}} |
        [[File:{{#show: {{{1}}} | ?Has landscape photo filename}}|600x400px|{{PAGENAME}} landscape]]
      |
        <div class="photo-placeholder">
          <div class="placeholder-content">
            <span class="placeholder-icon">🌿</span>
            <div class="placeholder-title">Genetic Heritage Documentation</div>
            <div class="placeholder-subtitle">Visual documentation preserves the morphology and cultivation context of this landrace population</div>
            <div class="placeholder-instruction">Upload habitat photo → Add filename to "Has habitat photo filename"</div>
          </div>
        </div>
      }}}}}}
     
      <div class="image-overlay">
        <p class="image-caption">{{PAGENAME}} growing in traditional cultivation at {{#show: {{{1}}} | ?Has elevation}}m elevation</p>
      </div>
    </div>
   
    <!-- Right: Map -->
    <div class="hero-map">
      <div class="map-container">
        <!-- Placeholder for interactive map -->
        🗺️ Interactive Map
      </div>
     
      <!-- Location overlay -->
      <div class="map-overlay">
        <h4>Location</h4>
        <div class="location-hierarchy">
          <div class="location-primary">{{#show: {{{1}}} | ?Has locality}}, {{#show: {{{1}}} | ?Has district}}</div>
          <div class="location-secondary">{{#show: {{{1}}} | ?Has province}}, {{#show: {{{1}}} | ?Has country}}</div>
        </div>
      </div>
     
      <!-- Coordinates -->
      <div class="coordinates">
        {{#show: {{{1}}} | ?Has GPS coordinates}}
      </div>
    </div>
  </div>


  <!-- Bottom details strip -->
| accession_id                = {{{accession_id|}}}
  <div class="hero-details">
| classification             = {{{classification|}}}
    <div class="detail-group">
| collection_type            = {{{collection_type|}}}
      <div class="detail-label">Collection Date</div>
| sourcing_type              = {{{sourcing_type|}}}
      <div class="detail-value">{{#show: {{{1}}} | ?Has collection date}}</div>
| documentation_status        = {{{documentation_status|}}}
    </div>
   
    <div class="detail-group">
      <div class="detail-label">Type</div>
      <div class="detail-value">{{#show: {{{1}}} | ?Has collection type}}</div>
    </div>
   
    <div class="detail-group">
      <div class="detail-label">Classification</div>
      <div class="detail-value highlight">{{#show: {{{1}}} | ?Has classification}}</div>
    </div>
   
    <div class="detail-group">
      <div class="detail-label">Elevation</div>
      <div class="detail-value">{{#show: {{{1}}} | ?Has elevation}}m</div>
    </div>
   
    <div class="detail-group">
      <div class="detail-label">Collector</div>
      <div class="detail-value">{{#show: {{{1}}} | ?Has collector}}</div>
    </div>
   
    <!-- Geographic hierarchy breadcrumb -->
    <div class="geographic-path">
      <h4>Geographic Hierarchy</h4>
      <div class="breadcrumb">
        <span class="level">{{#show: {{{1}}} | ?Has regional complex}}</span>
        <span class="separator">→</span>
        <span class="level">{{#show: {{{1}}} | ?Has growing region}}</span>
        <span class="separator">→</span>
        <span class="level">{{#show: {{{1}}} | ?Has growing area}}</span>
        <span class="separator">→</span>
        <span class="level">{{#show: {{{1}}} | ?Has appellation}}</span>
      </div>
    </div>
  </div>
</div>


<!-- Content sections -->
| gene_pool                  = {{{gene_pool|}}}
{{BotanicalDescription|{{{1}}}}}
| regional_complex            = {{{regional_complex|}}}
{{EnvironmentalContext|{{{1}}}}}
| growing_region              = {{{growing_region|}}}
| growing_area                = {{{growing_area|}}}
| appellation                = {{{appellation|}}}
| field                      = {{{field|}}}


</div>
| country                    = {{{country|}}}
</includeonly>
| province                    = {{{province|}}}
| district                    = {{{district|}}}
| locality                    = {{{locality|}}}
 
| gps_coordinates            = {{{gps_coordinates|}}}
| elevation                  = {{{elevation|}}}
 
| primary_local_name          = {{{primary_local_name|}}}
| vernacular_translation      = {{{vernacular_translation|}}}
 
| collection_date            = {{{collection_date|}}}
| collector                  = {{{collector|}}}
| collector_affiliation      = {{{collector_affiliation|}}}
| collection_method          = {{{collection_method|}}}
| sample_size                = {{{sample_size|}}}
 
| cultivation_status          = {{{cultivation_status|}}}
| conservation_priority      = {{{conservation_priority|}}}
| population_estimate        = {{{population_estimate|}}}
| perceived_introgression_level = {{{perceived_introgression_level|}}}
| legal_enforcement_threats  = {{{legal_enforcement_threats|}}}
 
| seed_storage_location      = {{{seed_storage_location|}}}
| seed_quantity              = {{{seed_quantity|}}}
 
| last_updated                = {{{last_updated|}}}
}}
 
{{#set:
|Has accession ID={{{accession_id|}}}
|Has descriptive name={{{descriptive_name|{{PAGENAME}}}}}
|Has classification={{{classification|}}}
|Has collection type={{{collection_type|}}}
|Has sourcing type={{{sourcing_type|}}}
|Has documentation status={{{documentation_status|}}}
|Has gene pool={{{gene_pool|}}}
|Has regional complex={{{regional_complex|}}}
|Has growing region={{{growing_region|}}}
|Has growing area={{{growing_area|}}}
|Has appellation={{{appellation|}}}
|Has field={{{field|}}}
|Has country={{{country|}}}
|Has province={{{province|}}}
|Has district={{{district|}}}
|Has locality={{{locality|}}}
|Has GPS coordinates={{{gps_coordinates|}}}
|Has elevation={{{elevation|}}}
|Has primary local name={{{primary_local_name|}}}
|Has vernacular translation={{{vernacular_translation|}}}
|Has collection date={{{collection_date|}}}
|Has collector={{{collector|}}}
|Has collector affiliation={{{collector_affiliation|}}}
|Has collection method={{{collection_method|}}}
|Has sample size={{{sample_size|}}}
|Has cultivation status={{{cultivation_status|}}}
|Has conservation priority={{{conservation_priority|}}}
|Has population estimate={{{population_estimate|}}}
|Has perceived introgression level={{{perceived_introgression_level|}}}
|Has legal enforcement threats={{{legal_enforcement_threats|}}}
|Has seed storage location={{{seed_storage_location|}}}
|Has seed quantity={{{seed_quantity|}}}
|Has last updated={{{last_updated|}}}
}}

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.