Toggle menu
46
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
(81 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).
 
* Renders the infobox via {{Infobox accession}}.
<div class="hero-header">
* Sets core SemanticMediaWiki properties via {{#set}}.
  <!-- Top section with title and badges -->
</noinclude>
  <div class="hero-top">
{{Infobox accession
    <h1 class="hero-title">{{PAGENAME}}</h1>
| descriptive_name            = {{{descriptive_name|{{PAGENAME}}}}}
    <div class="hero-subtitle">{{#show: {{{1}}} | ?Has accession ID}}</div>
| image                      = {{{image|}}}
   
| image_alt                  = {{{image_alt|}}}
    <div class="hero-pills">
| image_caption              = {{{image_caption|}}}
      <div class="hero-pill">
| show_map                    = {{{show_map|}}}
        <span class="pill-label">STATUS:</span>{{#show: {{{1}}} | ?Has current status}}
| accession_id                = {{{accession_id|}}}
      </div>
| landrace_type              = {{{landrace_type|}}}
      <div class="hero-pill">
| chemotype                  = {{{chemotype|}}}
        <span class="pill-label">TIER:</span>{{#show: {{{1}}} | ?Has documentation status}}
| thc_content                = {{{thc_content|}}}
      </div>
| cbd_content                = {{{cbd_content|}}}
      <div class="hero-pill">
| flowering_time              = {{{flowering_time|}}}
        <span class="pill-label">PRIORITY:</span>{{#show: {{{1}}} | ?Has conservation priority}}
| plant_height                = {{{plant_height|}}}
      </div>
| terpene_profile            = {{{terpene_profile|}}}
    </div>
| aroma                      = {{{aroma|}}}
  </div>
| growth_pattern              = {{{growth_pattern|}}}
 
| leaf_shape                  = {{{leaf_shape|}}}
  <!-- Split layout section -->
| leaflet_count              = {{{leaflet_count|}}}
  <div class="hero-split">
| photoperiod_response        = {{{photoperiod_response|}}}
    <!-- Left: Plant Photography -->
| flower_structure            = {{{flower_structure|}}}
    <div class="hero-image">
| gene_pool                  = {{{gene_pool|}}}
      <!-- Main habitat photo with improved fallback -->
| regional_complex            = {{{regional_complex|}}}
      {{#if: {{#show: {{{1}}} | ?Has habitat photo filename}} |
| growing_region              = {{{growing_region|}}}
        [[File:{{#show: {{{1}}} | ?Has habitat photo filename}}|600x400px|{{PAGENAME}} in natural habitat]]
| growing_area                = {{{growing_area|}}}
      |{{#if: {{#show: {{{1}}} | ?Has whole plant photo filename}} |
| appellation                = {{{appellation|}}}
        [[File:{{#show: {{{1}}} | ?Has whole plant photo filename}}|600x400px|{{PAGENAME}} whole plant]]
| field                      = {{{field|}}}
      |{{#if: {{#show: {{{1}}} | ?Has landscape photo filename}} |
| country                    = {{{country|}}}
        [[File:{{#show: {{{1}}} | ?Has landscape photo filename}}|600x400px|{{PAGENAME}} landscape]]
| province                    = {{{province|}}}
      |
| district                    = {{{district|}}}
        <div class="photo-placeholder">
| subdistrict                = {{{subdistrict|}}}
          <div class="placeholder-content">
| locality                    = {{{locality|}}}
             <span class="placeholder-icon">🌿</span>
| gps_coordinates            = {{{gps_coordinates|}}}
            <div class="placeholder-title">Genetic Heritage Documentation</div>
| elevation                  = {{{elevation|}}}
            <div class="placeholder-subtitle">Visual documentation preserves the morphology and cultivation context of this landrace population</div>
| primary_local_name          = {{{primary_local_name|}}}
            <div class="placeholder-instruction">Upload habitat photo → Add filename to "Has habitat photo filename"</div>
| vernacular_translation      = {{{vernacular_translation|}}}
          </div>
| classification              = {{{classification|}}}
        </div>
| collection_type            = {{{collection_type|}}}
      }}}}}}
| sourcing_type              = {{{sourcing_type|}}}
        
| documentation_status        = {{{documentation_status|}}}
      <div class="image-overlay">
| collection_date             = {{{collection_date|}}}
         <p class="image-caption">{{PAGENAME}} growing in traditional cultivation at {{#show: {{{1}}} | ?Has elevation}}m elevation</p>
| collector                  = {{{collector|}}}
       </div>
| collector_affiliation      = {{{collector_affiliation|}}}
    </div>
| collection_method          = {{{collection_method|}}}
   
| sample_size                = {{{sample_size|}}}
    <!-- Right: Map -->
| conservation_priority       = {{{conservation_priority|}}}
    <div class="hero-map">
| cultivation_status          = {{{cultivation_status|}}}
      <div class="map-container">
| population_estimate         = {{{population_estimate|}}}
        <!-- Placeholder for interactive map -->
| perceived_introgression_level = {{{perceived_introgression_level|}}}
        🗺️ Interactive Map
| legal_enforcement_threats  = {{{legal_enforcement_threats|}}}
      </div>
| seed_storage_location       = {{{seed_storage_location|}}}
     
| seed_quantity              = {{{seed_quantity|}}}
      <!-- Location overlay -->
| last_updated                = {{{last_updated|}}}
      <div class="map-overlay">
}}
        <h4>Location</h4>
{{#set:
        <div class="location-hierarchy">
|Has accession ID={{{accession_id|}}}
          <div class="location-primary">{{#show: {{{1}}} | ?Has locality}}, {{#show: {{{1}}} | ?Has district}}</div>
|Has descriptive name={{{descriptive_name|{{PAGENAME}}}}}
          <div class="location-secondary">{{#show: {{{1}}} | ?Has province}}, {{#show: {{{1}}} | ?Has country}}</div>
|Has landrace type={{{landrace_type|}}}
        </div>
|Has chemotype={{{chemotype|}}}
      </div>
|Has THC content={{{thc_content|}}}
     
|Has CBD content={{{cbd_content|}}}
      <!-- Coordinates -->
|Has flowering time={{{flowering_time|}}}
      <div class="coordinates">
|Has plant height={{{plant_height|}}}
        {{#show: {{{1}}} | ?Has GPS coordinates}}
|Has terpene profile={{{terpene_profile|}}}
      </div>
|Has aroma={{{aroma|}}}
    </div>
|Has growth pattern={{{growth_pattern|}}}
  </div>
|Has leaf shape={{{leaf_shape|}}}
 
|Has leaflet count={{{leaflet_count|}}}
  <!-- Bottom details strip -->
|Has photoperiod response={{{photoperiod_response|}}}
  <div class="hero-details">
|Has flower structure={{{flower_structure|}}}
    <div class="detail-group">
|Has gene pool={{{gene_pool|}}}
      <div class="detail-label">Collection Date</div>
|Has regional complex={{{regional_complex|}}}
      <div class="detail-value">{{#show: {{{1}}} | ?Has collection date}}</div>
|Has growing region={{{growing_region|}}}
    </div>
|Has growing area={{{growing_area|}}}
   
|Has appellation={{{appellation|}}}
    <div class="detail-group">
|Has field={{{field|}}}
      <div class="detail-label">Type</div>
|Has country={{{country|}}}
      <div class="detail-value">{{#show: {{{1}}} | ?Has collection type}}</div>
|Has province={{{province|}}}
    </div>
|Has district={{{district|}}}
   
|Has subdistrict={{{subdistrict|}}}
    <div class="detail-group">
|Has locality={{{locality|}}}
      <div class="detail-label">Classification</div>
|Has GPS coordinates={{{gps_coordinates|}}}
      <div class="detail-value highlight">{{#show: {{{1}}} | ?Has classification}}</div>
|Has elevation={{{elevation|}}}
    </div>
|Has primary local name={{{primary_local_name|}}}
   
|Has vernacular translation={{{vernacular_translation|}}}
    <div class="detail-group">
|Has classification={{{classification|}}}
      <div class="detail-label">Elevation</div>
|Has collection type={{{collection_type|}}}
      <div class="detail-value">{{#show: {{{1}}} | ?Has elevation}}m</div>
|Has sourcing type={{{sourcing_type|}}}
    </div>
|Has documentation status={{{documentation_status|}}}
   
|Has collection date={{{collection_date|}}}
    <div class="detail-group">
|Has collector={{{collector|}}}
      <div class="detail-label">Collector</div>
|Has collector affiliation={{{collector_affiliation|}}}
      <div class="detail-value">{{#show: {{{1}}} | ?Has collector}}</div>
|Has collection method={{{collection_method|}}}
    </div>
|Has sample size={{{sample_size|}}}
   
|Has conservation priority={{{conservation_priority|}}}
    <!-- Geographic hierarchy breadcrumb -->
|Has cultivation status={{{cultivation_status|}}}
    <div class="geographic-path">
|Has population estimate={{{population_estimate|}}}
      <h4>Geographic Hierarchy</h4>
|Has perceived introgression level={{{perceived_introgression_level|}}}
      <div class="breadcrumb">
|Has legal enforcement threats={{{legal_enforcement_threats|}}}
        <span class="level">{{#show: {{{1}}} | ?Has regional complex}}</span>
|Has seed storage location={{{seed_storage_location|}}}
        <span class="separator">→</span>
|Has seed quantity={{{seed_quantity|}}}
        <span class="level">{{#show: {{{1}}} | ?Has growing region}}</span>
|Has last updated={{{last_updated|}}}
        <span class="separator">→</span>
}}
        <span class="level">{{#show: {{{1}}} | ?Has growing area}}</span>
[[Category:Accessions]]
        <span class="separator">→</span>
        <span class="level">{{#show: {{{1}}} | ?Has appellation}}</span>
      </div>
    </div>
  </div>
</div>
 
<!-- Content sections -->
{{BotanicalDescription|{{{1}}}}}
{{EnvironmentalContext|{{{1}}}}}
 
</div>
</includeonly>

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