Toggle menu
84
103
34
3.2K
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
 
(74 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}}.
* Sets core SemanticMediaWiki properties via {{#set}}.


  <!-- ===== HERO HEADER ===== -->
Normalization rule:
  <div class="hero-header">
- Page-type fields must be plain titles (no [[...]]), multi-values separated by ", " (comma+space).
    <div class="hero-top">
</noinclude><includeonly>
      <h1 class="hero-title">{{PAGENAME}}</h1>
{{#seo:
      <div style="margin-top: 0.5rem;">
|title={{{descriptive_name|{{PAGENAME}}}}}
        <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem;">{{#show: {{{1}}} | ?Has accession ID | default=—}}</div>
|description={{{summary|Accession {{{accession_id|{{PAGENAME}}}}}. {{{locality|}}}{{#if:{{{growing_region|}}}| · {{{growing_region}}}|}}{{#if:{{{conservation_priority|}}}| · Priority: {{{conservation_priority}}}|}}}}}
        {{#if: {{#show: {{{1}}} | ?Has current status}} |
|image={{{image|}}}
          <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem;">{{#show: {{{1}}} | ?Has current status}}</div> }}
|image_alt={{{image_caption|{{{descriptive_name|{{PAGENAME}}}}}}}}
        {{#if: {{#show: {{{1}}} | ?Has documentation status}} |
|type=article
          <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem;">{{#show: {{{1}}} | ?Has documentation status}}</div> }}
}}
        {{#if: {{#show: {{{1}}} | ?Has conservation priority}} |
{{Infobox accession
          <div class="hero-subtitle" style="display: inline-block;">{{#show: {{{1}}} | ?Has conservation priority}}</div> }}
| descriptive_name              = {{{descriptive_name|{{PAGENAME}}}}}
      </div>
| image                        = {{{image|}}}
| image_alt                    = {{{image_alt|}}}
| image_caption                = {{{image_caption|}}}
| show_map                      = {{{show_map|}}}
| accession_id                  = {{{accession_id|}}}
| classification                = {{{classification|}}}
| accession_type                = {{{accession_type|}}}
| selection_type                = {{{selection_type|}}}
| sexual_characteristics        = {{{sexual_characteristics|}}}
| chemotype                    = {{{chemotype|}}}
| primary_purpose              = {{{primary_purpose|}}}
| minimum_flowering_time        = {{{minimum_flowering_time|}}}
| maximum_flowering_time        = {{{maximum_flowering_time|}}}
| minimum_height                = {{{minimum_height|}}}
| maximum_height                = {{{maximum_height|}}}
| photoperiod_response          = {{{photoperiod_response|}}}
| growth_pattern                = {{{growth_pattern|}}}
| branching                    = {{{branching|}}}
| leaf_shape                    = {{{leaf_shape|}}}
| leaflet_count                = {{{leaflet_count|}}}
| leaf_color                    = {{{leaf_color|}}}
| stem_color                    = {{{stem_color|}}}
| stigma_color                  = {{{stigma_color|}}}
| serration                    = {{{serration|}}}
| flower_structure              = {{{flower_structure|}}}
| processing_method            = {{{processing_method|}}}
| aroma                        = {{{aroma|}}}
| effects                      = {{{effects|}}}
| terpene_profile              = {{{terpene_profile|}}}


      <!-- GEOGRAPHIC BREADCRUMB - REFINED TEAL COLOR SCHEME -->
| gene_pool                    = {{{gene_pool|}}}
      <div style="margin-top: 0.75rem;">
| regional_complex              = {{{regional_complex|}}}
        {{#if: {{#show: {{{1}}} | ?Has regional complex}} |
| growing_region                = {{{growing_region|}}}
          <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> }}
| growing_area                  = {{{growing_area|}}}
        {{#if: {{#show: {{{1}}} | ?Has growing region}} |
| appellation                  = {{{appellation|}}}
          <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> }}
| field                        = {{{field|}}}
        {{#if: {{#show: {{{1}}} | ?Has growing area}} |
          <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> }}
        {{#if: {{#show: {{{1}}} | ?Has appellation}} |
          <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> }}
      </div>
    </div>


    <!-- ===== HERO SPLIT ===== -->
| country                      = {{{country|}}}
    <div class="hero-split">
| province                      = {{{province|}}}
      <!-- LEFT: PHOTO -->
| admin_2                      = {{{admin_2|}}}
      <div class="hero-image">
| admin_2_label                = {{{admin_2_label|District}}}
        {{#if: {{#show: {{{1}}} | ?Has habitat photo filename}} |
| admin_3                      = {{{admin_3|}}}
          [[File:{{#show: {{{1}}} | ?Has habitat photo filename}}|600x400px|{{PAGENAME}} in natural habitat|class=hero-img|link=]]
| admin_3_label                = {{{admin_3_label|Subdistrict}}}
        |{{#if: {{#show: {{{1}}} | ?Has whole plant photo filename}} |
| admin_4                      = {{{admin_4|}}}
          [[File:{{#show: {{{1}}} | ?Has whole plant photo filename}}|600x400px|{{PAGENAME}} whole plant|class=hero-img|link=]]
| admin_4_label                = {{{admin_4_label|}}}
        |{{#if: {{#show: {{{1}}} | ?Has landscape photo filename}} |
| locality                      = {{{locality|}}}
          [[File:{{#show: {{{1}}} | ?Has landscape photo filename}}|600x400px|{{PAGENAME}} landscape|class=hero-img|link=]]
| coordinates                  = {{{coordinates|}}}
        |
| elevation                    = {{{elevation|}}}
          <div class="photo-placeholder">
| aspect                        = {{{aspect|}}}
            <div class="placeholder-content">
              🌿
              <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 its title to <em>"Has habitat photo filename"</em></div>
            </div>
          </div>
        }}}}}}


        <div class="image-overlay">
| local_name                    = {{{local_name|}}}
          <p class="image-caption">
| pronunciation                = {{{pronunciation|}}}
            {{PAGENAME}} growing in traditional cultivation at
| vernacular_translation        = {{{vernacular_translation|}}}
            {{#show: {{{1}}} | ?Has elevation | default=unknown}} elevation
| synonyms                      = {{{synonyms|}}}
          </p>
        </div>
      </div>


      <!-- RIGHT: MAP -->
| collection_method            = {{{collection_method|}}}
      <div class="hero-map">
| sourcing_type                = {{{sourcing_type|}}}
        <div class="map-container">
| autochtonous                 = {{{autochtonous|}}}
          {{#if: {{#show: {{{1}}} | ?Has GPS coordinates}} |
| collection_date              = {{{collection_date|}}}
            <div class="lw-map"
| sample_harvest_date          = {{{sample_harvest_date|}}}
                data-accessions="https://landrace.wiki/static/geo/accessions.json"
| collector                    = {{{collector|}}}
                data-filter-accession="{{#show: {{{1}}} | ?Has accession ID | link=none}}"
| farmer_name                  = {{{farmer_name|}}}
                 data-zoom="12"
| expedition_id                 = {{{expedition_id|}}}
                style="height: 400px; width: 100%;">
            </div>
           
            <!-- Map Legend -->
            <div class="map-legend">
              <div class="legend-section">
                <div class="legend-title">Location</div>
                <div class="legend-primary">{{#show: {{{1}}} | ?Has locality}}{{#if: {{#show: {{{1}}} | ?Has district}} |, {{#show: {{{1}}} | ?Has district}} }}</div>
                <div class="legend-secondary">{{#show: {{{1}}} | ?Has province}}, {{#show: {{{1}}} | ?Has country}}</div>
              </div>
             
              <div class="legend-section">
                <div class="legend-title">Coordinates</div>
                 <div class="legend-coords">{{#show: {{{1}}} | ?Has GPS coordinates}}</div>
              </div>
            </div>
          |
            <div style="color: #64748b;">
              🗺️ Interactive Map<br><small>GPS coordinates needed</small>
            </div>
          }}
        </div>
      </div>
    </div>


     <!-- ===== DETAILS STRIP (NO MORE BREADCRUMB) ===== -->
| conservation_priority        = {{{conservation_priority|}}}
     <div class="hero-details">
| cultivation_status            = {{{cultivation_status|}}}
       <div class="detail-group">
| cultivation_system_type      = {{{cultivation_system_type|}}}
         <div class="detail-label">Collection Date</div>
| cultivation_scale            = {{{cultivation_scale|}}}
         <div class="detail-value">{{#show: {{{1}}} | ?Has collection date | default=}}</div>
| legal_enforcement_threats     = {{{legal_enforcement_threats|}}}
      </div>
| eradication_date              = {{{eradication_date|}}}
| population_estimate          = {{{population_estimate|}}}
| male_female_ratio            = {{{male_female_ratio|}}}
| population_hermaphroditism    = {{{population_hermaphroditism|}}}
| culling                      = {{{culling|}}}
| perceived_introgression_level = {{{perceived_introgression_level|}}}
| seed_sourcing                = {{{seed_sourcing|}}}
| planting_method              = {{{planting_method|}}}
| cycle_1_earliest_planting     = {{{cycle_1_earliest_planting|}}}
| cycle_1_latest_planting       = {{{cycle_1_latest_planting|}}}
| cycle_1_harvest_start         = {{{cycle_1_harvest_start|}}}
| cycle_1_harvest_end          = {{{cycle_1_harvest_end|}}}
| cycle_2_earliest_planting    = {{{cycle_2_earliest_planting|}}}
| cycle_2_latest_planting      = {{{cycle_2_latest_planting|}}}
| cycle_2_harvest_start         = {{{cycle_2_harvest_start|}}}
| cycle_2_harvest_end          = {{{cycle_2_harvest_end|}}}
| observed_soil_type            = {{{observed_soil_type|}}}
| soil_ph                      = {{{soil_ph|}}}


      <div class="detail-group">
| seed_quantity                = {{{seed_quantity|}}}
         <div class="detail-label">Type</div>
| seed_weight                  = {{{seed_weight|}}}
        <div class="detail-value">{{#show: {{{1}}} | ?Has collection type | default=}}</div>
| seed_viability                = {{{seed_viability|}}}
      </div>
| seed_storage_location         = {{{seed_storage_location|}}}
| mother_plant_id              = {{{mother_plant_id|}}}
| father_plant_id              = {{{father_plant_id|}}}
| related_accession            = {{{related_accession|}}}
| same_population_accessions    = {{{same_population_accessions|}}}
| processing_notes              = {{{processing_notes|}}}
}}


      <div class="detail-group">
{{#set:
        <div class="detail-label">Classification</div>
|Has accession ID={{{accession_id|}}}
        <div class="detail-value highlight">{{#show: {{{1}}} | ?Has classification | default=}}</div>
|Has descriptive name={{{descriptive_name|{{PAGENAME}}}}}
      </div>
|Has image={{{image|}}}
|Has image caption={{{image_caption|}}}
|Has classification={{{classification|}}}
|Has accession type={{{accession_type|}}}
|Has selection type={{{selection_type|}}}
|Has sexual characteristics={{{sexual_characteristics|}}}
|Has chemotype={{{chemotype|}}}
|Has minimum flowering time={{{minimum_flowering_time|}}}
|Has maximum flowering time={{{maximum_flowering_time|}}}
|Has minimum height={{{minimum_height|}}}
|Has maximum height={{{maximum_height|}}}
|Has photoperiod response={{{photoperiod_response|}}}
|Has growth pattern={{{growth_pattern|}}}
|Has branching={{{branching|}}}
|Has leaf shape={{{leaf_shape|}}}
|Has leaflet count={{{leaflet_count|}}}
|Has serration={{{serration|}}}
|Has processing method={{{processing_method|}}}
|Has processing notes={{{processing_notes|}}}
|Has aroma={{{aroma|}}}
|Has effects={{{effects|}}}
|Has terpene profile={{{terpene_profile|}}}
|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 admin 2={{{admin_2|}}}
|Has admin 2 label={{{admin_2_label|}}}
|Has admin 3={{{admin_3|}}}
|Has admin 3 label={{{admin_3_label|}}}
|Has admin 4={{{admin_4|}}}
|Has admin 4 label={{{admin_4_label|}}}
|Has locality={{{locality|}}}
|Has coordinates={{{coordinates|}}}
|Has elevation={{{elevation|}}}
|Has aspect={{{aspect|}}}
|Has local name={{{local_name|}}}
|Has pronunciation={{{pronunciation|}}}
|Has vernacular translation={{{vernacular_translation|}}}
|Has synonyms={{{synonyms|}}}
|Has collection method={{{collection_method|}}}
|Has sourcing type={{{sourcing_type|}}}
|Has autochtonous={{{autochtonous|}}}
|Has collection date={{{collection_date|}}}
|Has sample harvest date={{{sample_harvest_date|}}}
|Has collector={{{collector|}}}
|Has farmer name={{{farmer_name|}}}
|Has expedition ID={{{expedition_id|}}}
|Has conservation priority={{{conservation_priority|}}}
|Has cultivation status={{{cultivation_status|}}}
|Has cultivation scale={{{cultivation_scale|}}}
|Has legal enforcement threats={{{legal_enforcement_threats|}}}
|Has eradication date={{{eradication_date|}}}
|Has population estimate={{{population_estimate|}}}
|Has male female ratio={{{male_female_ratio|}}}
|Has population hermaphroditism={{{population_hermaphroditism|}}}
|Has culling={{{culling|}}}
|Has perceived introgression level={{{perceived_introgression_level|}}}
|Has planting method={{{planting_method|}}}
|Has cycle 1 earliest planting={{{cycle_1_earliest_planting|}}}
|Has cycle 1 latest planting={{{cycle_1_latest_planting|}}}
|Has cycle 1 harvest start={{{cycle_1_harvest_start|}}}
|Has cycle 1 harvest end={{{cycle_1_harvest_end|}}}
|Has cycle 2 earliest planting={{{cycle_2_earliest_planting|}}}
|Has cycle 2 latest planting={{{cycle_2_latest_planting|}}}
|Has cycle 2 harvest start={{{cycle_2_harvest_start|}}}
|Has cycle 2 harvest end={{{cycle_2_harvest_end|}}}
|Has observed soil type={{{observed_soil_type|}}}
|Has soil pH={{{soil_ph|}}}
|Has seed quantity={{{seed_quantity|}}}
|Has seed weight={{{seed_weight|}}}
|Has seed viability={{{seed_viability|}}}
|Has seed storage location={{{seed_storage_location|}}}
|Has mother plant ID={{{mother_plant_id|}}}
|Has father plant ID={{{father_plant_id|}}}
|Has related accession={{{related_accession|}}}
|Has same population accessions={{{same_population_accessions|}}}
}}
{{#arraymap:{{{primary_purpose|}}}|, |x|{{#set:|Has primary purpose=x}}|}}
{{#arraymap:{{{flower_structure|}}}|, |x|{{#set:|Has flower structure=x}}|}}
{{#arraymap:{{{cultivation_system_type|}}}|, |x|{{#set:|Has cultivation system type=x}}|}}
{{#arraymap:{{{leaf_color|}}}|, |x|{{#set:|Has leaf color=x}}|}}
{{#arraymap:{{{stem_color|}}}|, |x|{{#set:|Has stem color=x}}|}}
{{#arraymap:{{{stigma_color|}}}|, |x|{{#set:|Has stigma color=x}}|}}
{{#arraymap:{{{seed_sourcing|}}}|, |x|{{#set:|Has seed sourcing=x}}|}}


      <div class="detail-group">
[[Category:Accessions]]
        <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>
</includeonly>

Latest revision as of 15:41, 3 February 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}}.

Normalization rule: - Page-type fields must be plain titles (no ...), multi-values separated by ", " (comma+space).