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
(63 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}}.
  <!-- ===== HERO HEADER ===== -->
* Sets core SemanticMediaWiki properties via {{#set}}.
  <div class="hero-header">
</noinclude>
    <div class="hero-top">
{{Infobox accession
      <h1 class="hero-title">{{PAGENAME}}</h1>
| descriptive_name            = {{{descriptive_name|{{PAGENAME}}}}}
      <div style="margin-top: 0.5rem;">
| image                      = {{{image|}}}
        <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem;">{{#show: {{{1}}} | ?Has accession ID | default=—}}</div>
| image_alt                  = {{{image_alt|}}}
        {{#if: {{#show: {{{1}}} | ?Has current status}} |
| image_caption              = {{{image_caption|}}}
          <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem;">{{#show: {{{1}}} | ?Has current status}}</div> }}
| show_map                    = {{{show_map|}}}
        {{#if: {{#show: {{{1}}} | ?Has documentation status}} |
| accession_id                = {{{accession_id|}}}
          <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem;">{{#show: {{{1}}} | ?Has documentation status}}</div> }}
| landrace_type              = {{{landrace_type|}}}
        {{#if: {{#show: {{{1}}} | ?Has conservation priority}} |
| chemotype                  = {{{chemotype|}}}
          <div class="hero-subtitle" style="display: inline-block;">{{#show: {{{1}}} | ?Has conservation priority}}</div> }}
| thc_content                = {{{thc_content|}}}
      </div>
| cbd_content                = {{{cbd_content|}}}
 
| flowering_time              = {{{flowering_time|}}}
      <!-- GEOGRAPHIC BREADCRUMB - REFINED TEAL COLOR SCHEME -->
| plant_height                = {{{plant_height|}}}
      <div style="margin-top: 0.75rem;">
| terpene_profile            = {{{terpene_profile|}}}
        {{#if: {{#show: {{{1}}} | ?Has regional complex}} |
| aroma                      = {{{aroma|}}}
          <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem; background: rgba(13, 148, 136, 0.12); color: #0d9488; border: 1px solid rgba(13, 148, 136, 0.2);">{{#show: {{{1}}} | ?Has regional complex}}</div> }}
| growth_pattern              = {{{growth_pattern|}}}
        {{#if: {{#show: {{{1}}} | ?Has growing region}} |
| leaf_shape                  = {{{leaf_shape|}}}
          <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem; background: rgba(13, 148, 136, 0.12); color: #0d9488; border: 1px solid rgba(13, 148, 136, 0.2);">{{#show: {{{1}}} | ?Has growing region}}</div> }}
| leaflet_count              = {{{leaflet_count|}}}
        {{#if: {{#show: {{{1}}} | ?Has growing area}} |
| photoperiod_response        = {{{photoperiod_response|}}}
          <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem; background: rgba(13, 148, 136, 0.12); color: #0d9488; border: 1px solid rgba(13, 148, 136, 0.2);">{{#show: {{{1}}} | ?Has growing area}}</div> }}
| flower_structure            = {{{flower_structure|}}}
        {{#if: {{#show: {{{1}}} | ?Has appellation}} |
| gene_pool                  = {{{gene_pool|}}}
           <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem; background: rgba(13, 148, 136, 0.12); color: #0d9488; border: 1px solid rgba(13, 148, 136, 0.2);">{{#show: {{{1}}} | ?Has appellation}}</div> }}
| regional_complex            = {{{regional_complex|}}}
       </div>
| growing_region              = {{{growing_region|}}}
    </div>
| growing_area                = {{{growing_area|}}}
 
| appellation                = {{{appellation|}}}
    <!-- ===== HERO SPLIT ===== -->
| field                      = {{{field|}}}
    <div class="hero-split">
| country                    = {{{country|}}}
      <!-- LEFT: PHOTO -->
| province                    = {{{province|}}}
      <div class="hero-image">
| district                    = {{{district|}}}
        {{#if: {{#show: {{{1}}} | ?Has habitat photo filename}} |
| subdistrict                = {{{subdistrict|}}}
          [[File:{{#show: {{{1}}} | ?Has habitat photo filename}}|600x400px|{{PAGENAME}} in natural habitat|class=hero-img|link=]]
| locality                    = {{{locality|}}}
        |{{#if: {{#show: {{{1}}} | ?Has whole plant photo filename}} |
| gps_coordinates            = {{{gps_coordinates|}}}
          [[File:{{#show: {{{1}}} | ?Has whole plant photo filename}}|600x400px|{{PAGENAME}} whole plant|class=hero-img|link=]]
| elevation                  = {{{elevation|}}}
        |{{#if: {{#show: {{{1}}} | ?Has landscape photo filename}} |
| primary_local_name          = {{{primary_local_name|}}}
          [[File:{{#show: {{{1}}} | ?Has landscape photo filename}}|600x400px|{{PAGENAME}} landscape|class=hero-img|link=]]
| vernacular_translation      = {{{vernacular_translation|}}}
        |
| classification              = {{{classification|}}}
          <div class="photo-placeholder">
| collection_type            = {{{collection_type|}}}
            <div class="placeholder-content">
| sourcing_type              = {{{sourcing_type|}}}
              🌿
| documentation_status        = {{{documentation_status|}}}
              <div class="placeholder-title">Genetic Heritage Documentation</div>
| collection_date            = {{{collection_date|}}}
              <div class="placeholder-subtitle">Visual documentation preserves the morphology and cultivation context of this landrace population.</div>
| collector                  = {{{collector|}}}
              <div class="placeholder-instruction">Upload habitat photo → add its title to <em>"Has habitat photo filename"</em></div>
| collector_affiliation      = {{{collector_affiliation|}}}
            </div>
| collection_method           = {{{collection_method|}}}
          </div>
| sample_size                = {{{sample_size|}}}
        }}}}}}
| conservation_priority       = {{{conservation_priority|}}}
 
| cultivation_status          = {{{cultivation_status|}}}
        <div class="image-overlay">
| population_estimate        = {{{population_estimate|}}}
          <p class="image-caption">
| perceived_introgression_level = {{{perceived_introgression_level|}}}
            {{PAGENAME}} growing in traditional cultivation at
| legal_enforcement_threats  = {{{legal_enforcement_threats|}}}
            {{#show: {{{1}}} | ?Has elevation | default=unknown}} elevation
| seed_storage_location      = {{{seed_storage_location|}}}
          </p>
| seed_quantity              = {{{seed_quantity|}}}
        </div>
| last_updated                = {{{last_updated|}}}
      </div>
}}
 
{{#set:
      <!-- RIGHT: MAP -->
|Has accession ID={{{accession_id|}}}
      <div class="hero-map">
|Has descriptive name={{{descriptive_name|{{PAGENAME}}}}}
        <div class="map-container">
|Has landrace type={{{landrace_type|}}}
          {{#if: {{#show: {{{1}}} | ?Has GPS coordinates}} |
|Has chemotype={{{chemotype|}}}
            <div class="lw-map"
|Has THC content={{{thc_content|}}}
                data-accessions="https://landrace.wiki/static/geo/accessions.json"
|Has CBD content={{{cbd_content|}}}
                data-filter-accession="{{#show: {{{1}}} | ?Has accession ID | link=none}}"
|Has flowering time={{{flowering_time|}}}
                data-zoom="12"
|Has plant height={{{plant_height|}}}
                style="height: 400px; width: 100%;">
|Has terpene profile={{{terpene_profile|}}}
            </div>
|Has aroma={{{aroma|}}}
           
|Has growth pattern={{{growth_pattern|}}}
            <!-- Map Legend -->
|Has leaf shape={{{leaf_shape|}}}
            <div class="map-legend">
|Has leaflet count={{{leaflet_count|}}}
              <div class="legend-section">
|Has photoperiod response={{{photoperiod_response|}}}
                <div class="legend-title">Location</div>
|Has flower structure={{{flower_structure|}}}
                <div class="legend-primary">{{#show: {{{1}}} | ?Has locality}}{{#if: {{#show: {{{1}}} | ?Has district}} |, {{#show: {{{1}}} | ?Has district}} }}</div>
|Has gene pool={{{gene_pool|}}}
                <div class="legend-secondary">{{#show: {{{1}}} | ?Has province}}, {{#show: {{{1}}} | ?Has country}}</div>
|Has regional complex={{{regional_complex|}}}
              </div>
|Has growing region={{{growing_region|}}}
             
|Has growing area={{{growing_area|}}}
              <div class="legend-section">
|Has appellation={{{appellation|}}}
                <div class="legend-title">Coordinates</div>
|Has field={{{field|}}}
                <div class="legend-coords">{{#show: {{{1}}} | ?Has GPS coordinates}}</div>
|Has country={{{country|}}}
              </div>
|Has province={{{province|}}}
            </div>
|Has district={{{district|}}}
          |  
|Has subdistrict={{{subdistrict|}}}
            <div style="color: #64748b;">
|Has locality={{{locality|}}}
              🗺️ Interactive Map<br><small>GPS coordinates needed</small>
|Has GPS coordinates={{{gps_coordinates|}}}
            </div>
|Has elevation={{{elevation|}}}
          }}
|Has primary local name={{{primary_local_name|}}}
        </div>
|Has vernacular translation={{{vernacular_translation|}}}
      </div>
|Has classification={{{classification|}}}
    </div>
|Has collection type={{{collection_type|}}}
 
|Has sourcing type={{{sourcing_type|}}}
    <!-- ===== DETAILS STRIP (NO MORE BREADCRUMB) ===== -->
|Has documentation status={{{documentation_status|}}}
    <div class="hero-details">
|Has collection date={{{collection_date|}}}
      <div class="detail-group">
|Has collector={{{collector|}}}
        <div class="detail-label">Collection Date</div>
|Has collector affiliation={{{collector_affiliation|}}}
        <div class="detail-value">{{#show: {{{1}}} | ?Has collection date | default=—}}</div>
|Has collection method={{{collection_method|}}}
      </div>
|Has sample size={{{sample_size|}}}
 
|Has conservation priority={{{conservation_priority|}}}
      <div class="detail-group">
|Has cultivation status={{{cultivation_status|}}}
        <div class="detail-label">Type</div>
|Has population estimate={{{population_estimate|}}}
        <div class="detail-value">{{#show: {{{1}}} | ?Has collection type | default=—}}</div>
|Has perceived introgression level={{{perceived_introgression_level|}}}
      </div>
|Has legal enforcement threats={{{legal_enforcement_threats|}}}
 
|Has seed storage location={{{seed_storage_location|}}}
      <div class="detail-group">
|Has seed quantity={{{seed_quantity|}}}
        <div class="detail-label">Classification</div>
|Has last updated={{{last_updated|}}}
        <div class="detail-value highlight">{{#show: {{{1}}} | ?Has classification | default=—}}</div>
}}
      </div>
[[Category:Accessions]]
 
      <div class="detail-group">
        <div class="detail-label">Elevation</div>
        <div class="detail-value">{{#show: {{{1}}} | ?Has elevation | default=—}}</div>
      </div>
 
      <div class="detail-group">
        <div class="detail-label">Collector</div>
        <div class="detail-value">{{#show: {{{1}}} | ?Has collector | default=—}}</div>
      </div>
 
      <div class="detail-group">
        <div class="detail-label">Organisation</div>
        <div class="detail-value">{{#show: {{{1}}} | ?Has collector affiliation | default=—}}</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