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
(82 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 improved 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 class="photo-placeholder">
| growing_area                = {{{growing_area|}}}
          <div class="placeholder-content">
| appellation                = {{{appellation|}}}
             <span class="placeholder-icon">🌿</span>
| field                      = {{{field|}}}
            <div class="placeholder-title">Genetic Heritage Documentation</div>
| country                    = {{{country|}}}
            <div class="placeholder-subtitle">Visual documentation preserves the morphology and cultivation context of this landrace population</div>
| province                    = {{{province|}}}
            <div class="placeholder-instruction">Upload habitat photo → Add filename to "Has habitat photo filename"</div>
| district                    = {{{district|}}}
          </div>
| subdistrict                = {{{subdistrict|}}}
        </div>
| locality                    = {{{locality|}}}
      }}}}}}
| gps_coordinates            = {{{gps_coordinates|}}}
        
| elevation                  = {{{elevation|}}}
      <div class="image-overlay">
| primary_local_name          = {{{primary_local_name|}}}
         <p class="image-caption">{{PAGENAME}} growing in traditional cultivation at {{#show: {{{1}}} | ?Has elevation}}m elevation</p>
| vernacular_translation      = {{{vernacular_translation|}}}
       </div>
| classification              = {{{classification|}}}
    </div>
| collection_type            = {{{collection_type|}}}
   
| sourcing_type              = {{{sourcing_type|}}}
    <!-- Right: Map -->
| documentation_status        = {{{documentation_status|}}}
    <div class="hero-map">
| collection_date             = {{{collection_date|}}}
      <div class="map-container">
| collector                  = {{{collector|}}}
        <!-- Placeholder for interactive map -->
| collector_affiliation      = {{{collector_affiliation|}}}
        🗺️ Interactive Map
| collection_method          = {{{collection_method|}}}
      </div>
| sample_size                = {{{sample_size|}}}
     
| conservation_priority       = {{{conservation_priority|}}}
      <!-- Location overlay -->
| cultivation_status          = {{{cultivation_status|}}}
      <div class="map-overlay">
| population_estimate         = {{{population_estimate|}}}
        <h4>Location</h4>
| perceived_introgression_level = {{{perceived_introgression_level|}}}
        <div class="location-hierarchy">
| legal_enforcement_threats  = {{{legal_enforcement_threats|}}}
          <div class="location-primary">{{#show: {{{1}}} | ?Has locality}}, {{#show: {{{1}}} | ?Has district}}</div>
| seed_storage_location       = {{{seed_storage_location|}}}
          <div class="location-secondary">{{#show: {{{1}}} | ?Has province}}, {{#show: {{{1}}} | ?Has country}}</div>
| seed_quantity              = {{{seed_quantity|}}}
        </div>
| last_updated                = {{{last_updated|}}}
      </div>
}}
     
{{#set:
      <!-- Coordinates -->
|Has accession ID={{{accession_id|}}}
      <div class="coordinates">
|Has descriptive name={{{descriptive_name|{{PAGENAME}}}}}
        {{#show: {{{1}}} | ?Has GPS coordinates}}
|Has landrace type={{{landrace_type|}}}
      </div>
|Has chemotype={{{chemotype|}}}
    </div>
|Has THC content={{{thc_content|}}}
  </div>
|Has CBD content={{{cbd_content|}}}
 
|Has flowering time={{{flowering_time|}}}
  <!-- Bottom details strip -->
|Has plant height={{{plant_height|}}}
  <div class="hero-details">
|Has terpene profile={{{terpene_profile|}}}
    <div class="detail-group">
|Has aroma={{{aroma|}}}
      <div class="detail-label">Collection Date</div>
|Has growth pattern={{{growth_pattern|}}}
      <div class="detail-value">{{#show: {{{1}}} | ?Has collection date}}</div>
|Has leaf shape={{{leaf_shape|}}}
    </div>
|Has leaflet count={{{leaflet_count|}}}
   
|Has photoperiod response={{{photoperiod_response|}}}
    <div class="detail-group">
|Has flower structure={{{flower_structure|}}}
      <div class="detail-label">Type</div>
|Has gene pool={{{gene_pool|}}}
      <div class="detail-value">{{#show: {{{1}}} | ?Has collection type}}</div>
|Has regional complex={{{regional_complex|}}}
    </div>
|Has growing region={{{growing_region|}}}
   
|Has growing area={{{growing_area|}}}
    <div class="detail-group">
|Has appellation={{{appellation|}}}
      <div class="detail-label">Classification</div>
|Has field={{{field|}}}
      <div class="detail-value highlight">{{#show: {{{1}}} | ?Has classification}}</div>
|Has country={{{country|}}}
    </div>
|Has province={{{province|}}}
   
|Has district={{{district|}}}
    <div class="detail-group">
|Has subdistrict={{{subdistrict|}}}
      <div class="detail-label">Elevation</div>
|Has locality={{{locality|}}}
      <div class="detail-value">{{#show: {{{1}}} | ?Has elevation}}m</div>
|Has GPS coordinates={{{gps_coordinates|}}}
    </div>
|Has elevation={{{elevation|}}}
   
|Has primary local name={{{primary_local_name|}}}
    <div class="detail-group">
|Has vernacular translation={{{vernacular_translation|}}}
      <div class="detail-label">Collector</div>
|Has classification={{{classification|}}}
      <div class="detail-value">{{#show: {{{1}}} | ?Has collector}}</div>
|Has collection type={{{collection_type|}}}
    </div>
|Has sourcing type={{{sourcing_type|}}}
   
|Has documentation status={{{documentation_status|}}}
    <!-- Geographic hierarchy breadcrumb -->
|Has collection date={{{collection_date|}}}
    <div class="geographic-path">
|Has collector={{{collector|}}}
      <h4>Geographic Hierarchy</h4>
|Has collector affiliation={{{collector_affiliation|}}}
      <div class="breadcrumb">
|Has collection method={{{collection_method|}}}
        <span class="level">{{#show: {{{1}}} | ?Has regional complex}}</span>
|Has sample size={{{sample_size|}}}
        <span class="separator">→</span>
|Has conservation priority={{{conservation_priority|}}}
        <span class="level">{{#show: {{{1}}} | ?Has growing region}}</span>
|Has cultivation status={{{cultivation_status|}}}
        <span class="separator">→</span>
|Has population estimate={{{population_estimate|}}}
        <span class="level">{{#show: {{{1}}} | ?Has growing area}}</span>
|Has perceived introgression level={{{perceived_introgression_level|}}}
        <span class="separator">→</span>
|Has legal enforcement threats={{{legal_enforcement_threats|}}}
        <span class="level">{{#show: {{{1}}} | ?Has appellation}}</span>
|Has seed storage location={{{seed_storage_location|}}}
      </div>
|Has seed quantity={{{seed_quantity|}}}
    </div>
|Has last updated={{{last_updated|}}}
  </div>
}}
</div>
[[Category:Accessions]]
 
<!-- 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