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
(84 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-badges">
| image_caption              = {{{image_caption|}}}
      <span class="hero-badge badge-active">{{#show: {{{1}}} | ?Has current status}}</span>
| show_map                    = {{{show_map|}}}
      <span class="hero-badge badge-tier1">{{#show: {{{1}}} | ?Has documentation status}}</span>
| accession_id                = {{{accession_id|}}}
      <span class="hero-badge badge-priority">{{#show: {{{1}}} | ?Has conservation priority}}</span>
| landrace_type              = {{{landrace_type|}}}
    </div>
| chemotype                  = {{{chemotype|}}}
  </div>
| thc_content                = {{{thc_content|}}}
 
| cbd_content                = {{{cbd_content|}}}
  <!-- Split layout section -->
| flowering_time              = {{{flowering_time|}}}
  <div class="hero-split">
| plant_height                = {{{plant_height|}}}
    <!-- Left: Plant Photography -->
| terpene_profile            = {{{terpene_profile|}}}
    <div class="hero-image">
| aroma                      = {{{aroma|}}}
      <!-- Main habitat photo with fallback -->
| growth_pattern              = {{{growth_pattern|}}}
      {{#if: {{#show: {{{1}}} | ?Has habitat photo filename}} |
| leaf_shape                  = {{{leaf_shape|}}}
        [[File:{{#show: {{{1}}} | ?Has habitat photo filename}}|600x400px|{{PAGENAME}} in natural habitat]]
| leaflet_count              = {{{leaflet_count|}}}
      |{{#if: {{#show: {{{1}}} | ?Has whole plant photo filename}} |
| photoperiod_response        = {{{photoperiod_response|}}}
        [[File:{{#show: {{{1}}} | ?Has whole plant photo filename}}|600x400px|{{PAGENAME}} whole plant]]
| flower_structure            = {{{flower_structure|}}}
      |{{#if: {{#show: {{{1}}} | ?Has landscape photo filename}} |
| gene_pool                  = {{{gene_pool|}}}
        [[File:{{#show: {{{1}}} | ?Has landscape photo filename}}|600x400px|{{PAGENAME}} landscape]]
| regional_complex            = {{{regional_complex|}}}
      |
| growing_region              = {{{growing_region|}}}
        <div style="width:100%; height:400px; background:#f1f5f9; display:table-cell; vertical-align:middle; text-align:center; color:#64748b;">
| growing_area                = {{{growing_area|}}}
          📸 No habitat photo available<br>
| appellation                = {{{appellation|}}}
          <small>Upload photo and add filename to<br>"Has habitat photo filename" property</small>
| field                      = {{{field|}}}
        </div>
| country                    = {{{country|}}}
      }}}}}}
| province                    = {{{province|}}}
     
| district                    = {{{district|}}}
      <div class="image-overlay">
| subdistrict                = {{{subdistrict|}}}
        <p class="image-caption">{{PAGENAME}} growing in traditional cultivation at {{#show: {{{1}}} | ?Has elevation}}m elevation</p>
| locality                    = {{{locality|}}}
       </div>
| gps_coordinates            = {{{gps_coordinates|}}}
    </div>
| elevation                  = {{{elevation|}}}
   
| primary_local_name          = {{{primary_local_name|}}}
    <!-- Right: Map -->
| vernacular_translation      = {{{vernacular_translation|}}}
    <div class="hero-map">
| classification              = {{{classification|}}}
      <div class="map-container">
| collection_type            = {{{collection_type|}}}
         <!-- Placeholder for interactive map -->
| sourcing_type              = {{{sourcing_type|}}}
        🗺️ Interactive Map<br>
| documentation_status        = {{{documentation_status|}}}
        <small>GPS: {{#show: {{{1}}} | ?Has GPS coordinates}}</small>
| collection_date            = {{{collection_date|}}}
       </div>
| collector                  = {{{collector|}}}
     
| collector_affiliation      = {{{collector_affiliation|}}}
      <!-- Location overlay -->
| collection_method          = {{{collection_method|}}}
      <div class="map-overlay">
| sample_size                = {{{sample_size|}}}
        <h4>Location</h4>
| conservation_priority       = {{{conservation_priority|}}}
        <div class="location-hierarchy">
| cultivation_status          = {{{cultivation_status|}}}
          <div class="location-primary">{{#show: {{{1}}} | ?Has locality}}, {{#show: {{{1}}} | ?Has district}}</div>
| population_estimate         = {{{population_estimate|}}}
          <div class="location-secondary">{{#show: {{{1}}} | ?Has province}}, {{#show: {{{1}}} | ?Has country}}</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|}}}
      <!-- Coordinates -->
| last_updated                = {{{last_updated|}}}
      <div class="coordinates">
}}
        {{#show: {{{1}}} | ?Has GPS coordinates}}
{{#set:
      </div>
|Has accession ID={{{accession_id|}}}
    </div>
|Has descriptive name={{{descriptive_name|{{PAGENAME}}}}}
  </div>
|Has landrace type={{{landrace_type|}}}
 
|Has chemotype={{{chemotype|}}}
  <!-- Bottom details strip -->
|Has THC content={{{thc_content|}}}
  <div class="hero-details">
|Has CBD content={{{cbd_content|}}}
    <div class="detail-group">
|Has flowering time={{{flowering_time|}}}
      <div class="detail-label">Collection Date</div>
|Has plant height={{{plant_height|}}}
      <div class="detail-value">{{#show: {{{1}}} | ?Has collection date}}</div>
|Has terpene profile={{{terpene_profile|}}}
    </div>
|Has aroma={{{aroma|}}}
   
|Has growth pattern={{{growth_pattern|}}}
    <div class="detail-group">
|Has leaf shape={{{leaf_shape|}}}
      <div class="detail-label">Type</div>
|Has leaflet count={{{leaflet_count|}}}
      <div class="detail-value">{{#show: {{{1}}} | ?Has collection type}}</div>
|Has photoperiod response={{{photoperiod_response|}}}
    </div>
|Has flower structure={{{flower_structure|}}}
   
|Has gene pool={{{gene_pool|}}}
    <div class="detail-group">
|Has regional complex={{{regional_complex|}}}
      <div class="detail-label">Classification</div>
|Has growing region={{{growing_region|}}}
      <div class="detail-value highlight">{{#show: {{{1}}} | ?Has classification}}</div>
|Has growing area={{{growing_area|}}}
    </div>
|Has appellation={{{appellation|}}}
   
|Has field={{{field|}}}
    <div class="detail-group">
|Has country={{{country|}}}
      <div class="detail-label">Elevation</div>
|Has province={{{province|}}}
      <div class="detail-value">{{#show: {{{1}}} | ?Has elevation}}m</div>
|Has district={{{district|}}}
    </div>
|Has subdistrict={{{subdistrict|}}}
   
|Has locality={{{locality|}}}
    <div class="detail-group">
|Has GPS coordinates={{{gps_coordinates|}}}
      <div class="detail-label">Collector</div>
|Has elevation={{{elevation|}}}
      <div class="detail-value">{{#show: {{{1}}} | ?Has collector}}</div>
|Has primary local name={{{primary_local_name|}}}
    </div>
|Has vernacular translation={{{vernacular_translation|}}}
   
|Has classification={{{classification|}}}
    <!-- Geographic hierarchy breadcrumb -->
|Has collection type={{{collection_type|}}}
    <div class="geographic-path">
|Has sourcing type={{{sourcing_type|}}}
      <h4>Geographic Hierarchy</h4>
|Has documentation status={{{documentation_status|}}}
      <div class="breadcrumb">
|Has collection date={{{collection_date|}}}
        <span class="level">{{#show: {{{1}}} | ?Has regional complex}}</span>
|Has collector={{{collector|}}}
        <span class="separator">→</span>
|Has collector affiliation={{{collector_affiliation|}}}
        <span class="level">{{#show: {{{1}}} | ?Has growing region}}</span>
|Has collection method={{{collection_method|}}}
        <span class="separator">→</span>
|Has sample size={{{sample_size|}}}
        <span class="level">{{#show: {{{1}}} | ?Has growing area}}</span>
|Has conservation priority={{{conservation_priority|}}}
        <span class="separator">→</span>
|Has cultivation status={{{cultivation_status|}}}
        <span class="level">{{#show: {{{1}}} | ?Has appellation}}</span>
|Has population estimate={{{population_estimate|}}}
      </div>
|Has perceived introgression level={{{perceived_introgression_level|}}}
    </div>
|Has legal enforcement threats={{{legal_enforcement_threats|}}}
  </div>
|Has seed storage location={{{seed_storage_location|}}}
</div>
|Has seed quantity={{{seed_quantity|}}}
 
|Has last updated={{{last_updated|}}}
<!-- Content sections -->
}}
{{BotanicalDescription|{{{1}}}}}
[[Category:Accessions]]
{{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