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
(62 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}}.
  <!-- ===== SCIENTIFIC RESEARCH DATABASE 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}}}}}
     
| image                      = {{{image|}}}
      <!-- Technical data badges -->
| image_alt                  = {{{image_alt|}}}
      <div style="margin-top: 0.75rem;">
| image_caption              = {{{image_caption|}}}
        <div class="hero-subtitle" style="display: inline-block; margin-right: 0.75rem;">{{#show: {{{1}}} | ?Has accession ID | default=—}}</div>
| show_map                    = {{{show_map|}}}
        {{#if: {{#show: {{{1}}} | ?Has current status}} |
| accession_id                = {{{accession_id|}}}
          <div class="hero-subtitle" style="display: inline-block; margin-right: 0.75rem;">{{#show: {{{1}}} | ?Has current status}}</div> }}
| landrace_type              = {{{landrace_type|}}}
        {{#if: {{#show: {{{1}}} | ?Has documentation status}} |
| chemotype                  = {{{chemotype|}}}
          <div class="hero-subtitle" style="display: inline-block; margin-right: 0.75rem;">{{#show: {{{1}}} | ?Has documentation status}}</div> }}
| thc_content                = {{{thc_content|}}}
        {{#if: {{#show: {{{1}}} | ?Has conservation priority}} |
| cbd_content                = {{{cbd_content|}}}
          <div class="hero-subtitle" style="display: inline-block; margin-right: 0.75rem;">{{#show: {{{1}}} | ?Has conservation priority}}</div> }}
| flowering_time              = {{{flowering_time|}}}
      </div>
| plant_height                = {{{plant_height|}}}
 
| terpene_profile            = {{{terpene_profile|}}}
      <!-- Scientific geographic hierarchy -->
| aroma                      = {{{aroma|}}}
      <div style="margin-top: 0.75rem;">
| growth_pattern              = {{{growth_pattern|}}}
        {{#if: {{#show: {{{1}}} | ?Has regional complex}} |
| leaf_shape                  = {{{leaf_shape|}}}
          <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem; background: rgba(5, 150, 105, 0.1); color: #10b981; border: 1px solid rgba(5, 150, 105, 0.2);">{{#show: {{{1}}} | ?Has regional complex}}</div> }}
| leaflet_count              = {{{leaflet_count|}}}
        {{#if: {{#show: {{{1}}} | ?Has growing region}} |
| photoperiod_response        = {{{photoperiod_response|}}}
          <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem; background: rgba(5, 150, 105, 0.1); color: #10b981; border: 1px solid rgba(5, 150, 105, 0.2);">{{#show: {{{1}}} | ?Has growing region}}</div> }}
| flower_structure            = {{{flower_structure|}}}
        {{#if: {{#show: {{{1}}} | ?Has growing area}} |
| gene_pool                  = {{{gene_pool|}}}
          <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem; background: rgba(5, 150, 105, 0.1); color: #10b981; border: 1px solid rgba(5, 150, 105, 0.2);">{{#show: {{{1}}} | ?Has growing area}}</div> }}
| regional_complex            = {{{regional_complex|}}}
        {{#if: {{#show: {{{1}}} | ?Has appellation}} |
| growing_region              = {{{growing_region|}}}
          <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem; background: rgba(5, 150, 105, 0.1); color: #10b981; border: 1px solid rgba(5, 150, 105, 0.2);">{{#show: {{{1}}} | ?Has appellation}}</div> }}
| growing_area                = {{{growing_area|}}}
      </div>
| appellation                = {{{appellation|}}}
 
| field                      = {{{field|}}}
      <!-- Research status indicators -->
| country                    = {{{country|}}}
      <div class="hero-badges">
| province                    = {{{province|}}}
        {{#if: {{#show: {{{1}}} | ?Has current status}} |
| district                    = {{{district|}}}
          {{#ifeq: {{#show: {{{1}}} | ?Has current status}} | Active/Cultivated |
| subdistrict                = {{{subdistrict|}}}
            <div class="hero-badge badge-active">ACTIVE</div> |
| locality                    = {{{locality|}}}
            <div class="hero-badge">{{#show: {{{1}}} | ?Has current status}}</div> }}
| gps_coordinates            = {{{gps_coordinates|}}}
        }}
| elevation                  = {{{elevation|}}}
        {{#if: {{#show: {{{1}}} | ?Has documentation status}} |
| primary_local_name          = {{{primary_local_name|}}}
          {{#ifeq: {{#show: {{{1}}} | ?Has documentation status}} | Tier 1 |
| vernacular_translation      = {{{vernacular_translation|}}}
            <div class="hero-badge badge-tier1">TIER-1</div> |
| classification              = {{{classification|}}}
            <div class="hero-badge">{{#show: {{{1}}} | ?Has documentation status}}</div> }}
| collection_type            = {{{collection_type|}}}
        }}
| sourcing_type              = {{{sourcing_type|}}}
        {{#if: {{#show: {{{1}}} | ?Has conservation priority}} |
| documentation_status        = {{{documentation_status|}}}
          {{#ifeq: {{#show: {{{1}}} | ?Has conservation priority}} | High (action needed within 5 years) |
| collection_date            = {{{collection_date|}}}
            <div class="hero-badge badge-priority">HIGH-PRI</div> |
| collector                  = {{{collector|}}}
            <div class="hero-badge">{{#show: {{{1}}} | ?Has conservation priority}}</div> }}
| collector_affiliation      = {{{collector_affiliation|}}}
        }}
| collection_method          = {{{collection_method|}}}
      </div>
| sample_size                = {{{sample_size|}}}
    </div>
| conservation_priority      = {{{conservation_priority|}}}
 
| cultivation_status          = {{{cultivation_status|}}}
    <!-- ===== RESEARCH DATA VISUALIZATION ===== -->
| population_estimate        = {{{population_estimate|}}}
    <div class="hero-split">
| perceived_introgression_level = {{{perceived_introgression_level|}}}
      <!-- Morphological Documentation -->
| legal_enforcement_threats  = {{{legal_enforcement_threats|}}}
      <div class="hero-image">
| seed_storage_location      = {{{seed_storage_location|}}}
        {{#if: {{#show: {{{1}}} | ?Has habitat photo filename}} |
| seed_quantity              = {{{seed_quantity|}}}
          [[File:{{#show: {{{1}}} | ?Has habitat photo filename}}|600x420px|{{PAGENAME}} morphological documentation|class=hero-img|link=]]
| last_updated                = {{{last_updated|}}}
        |{{#if: {{#show: {{{1}}} | ?Has whole plant photo filename}} |
}}
          [[File:{{#show: {{{1}}} | ?Has whole plant photo filename}}|600x420px|{{PAGENAME}} phenotype documentation|class=hero-img|link=]]
{{#set:
        |{{#if: {{#show: {{{1}}} | ?Has landscape photo filename}} |
|Has accession ID={{{accession_id|}}}
          [[File:{{#show: {{{1}}} | ?Has landscape photo filename}}|600x420px|{{PAGENAME}} habitat analysis|class=hero-img|link=]]
|Has descriptive name={{{descriptive_name|{{PAGENAME}}}}}
        |
|Has landrace type={{{landrace_type|}}}
          <div class="photo-placeholder">
|Has chemotype={{{chemotype|}}}
            <div class="placeholder-content">
|Has THC content={{{thc_content|}}}
              <div class="placeholder-title">Morphological Documentation Protocol</div>
|Has CBD content={{{cbd_content|}}}
              <div class="placeholder-subtitle">Standardized phenotypic characterization and habitat documentation preserves critical genetic heritage data for conservation analysis.</div>
|Has flowering time={{{flowering_time|}}}
              <div class="placeholder-instruction">UPLOAD: Habitat documentation → Set "Has habitat photo filename"</div>
|Has plant height={{{plant_height|}}}
            </div>
|Has terpene profile={{{terpene_profile|}}}
          </div>
|Has aroma={{{aroma|}}}
        }}}}}}
|Has growth pattern={{{growth_pattern|}}}
 
|Has leaf shape={{{leaf_shape|}}}
        <div class="image-overlay">
|Has leaflet count={{{leaflet_count|}}}
          <p class="image-caption">
|Has photoperiod response={{{photoperiod_response|}}}
            [ACCESSION: {{PAGENAME}}] — In-situ cultivation documentation — Elevation: {{#show: {{{1}}} | ?Has elevation | default=DATA_MISSING}}
|Has flower structure={{{flower_structure|}}}
          </p>
|Has gene pool={{{gene_pool|}}}
        </div>
|Has regional complex={{{regional_complex|}}}
      </div>
|Has growing region={{{growing_region|}}}
 
|Has growing area={{{growing_area|}}}
      <!-- Geographic Information System -->
|Has appellation={{{appellation|}}}
      <div class="hero-map">
|Has field={{{field|}}}
        <div class="map-container">
|Has country={{{country|}}}
          {{#if: {{#show: {{{1}}} | ?Has GPS coordinates}} |
|Has province={{{province|}}}
            <div class="lw-map"
|Has district={{{district|}}}
                data-accessions="https://landrace.wiki/static/geo/accessions.json"
|Has subdistrict={{{subdistrict|}}}
                data-filter-accession="{{#show: {{{1}}} | ?Has accession ID | link=none}}"
|Has locality={{{locality|}}}
                data-zoom="12"
|Has GPS coordinates={{{gps_coordinates|}}}
                style="height: 420px; width: 100%;">
|Has elevation={{{elevation|}}}
            </div>
|Has primary local name={{{primary_local_name|}}}
           
|Has vernacular translation={{{vernacular_translation|}}}
            <!-- Research Data Overlay -->
|Has classification={{{classification|}}}
            <div class="map-legend">
|Has collection type={{{collection_type|}}}
              <div class="legend-section">
|Has sourcing type={{{sourcing_type|}}}
                <div class="legend-title">LOCATION</div>
|Has documentation status={{{documentation_status|}}}
                <div class="legend-primary">{{#show: {{{1}}} | ?Has locality}}{{#if: {{#show: {{{1}}} | ?Has district}} |, {{#show: {{{1}}} | ?Has district}} }}</div>
|Has collection date={{{collection_date|}}}
                <div class="legend-secondary">{{#show: {{{1}}} | ?Has province}}, {{#show: {{{1}}} | ?Has country}}</div>
|Has collector={{{collector|}}}
              </div>
|Has collector affiliation={{{collector_affiliation|}}}
             
|Has collection method={{{collection_method|}}}
              <div class="legend-section">
|Has sample size={{{sample_size|}}}
                <div class="legend-title">COORDINATES</div>
|Has conservation priority={{{conservation_priority|}}}
                <div class="legend-coords">{{#show: {{{1}}} | ?Has GPS coordinates}}</div>
|Has cultivation status={{{cultivation_status|}}}
              </div>
|Has population estimate={{{population_estimate|}}}
            </div>
|Has perceived introgression level={{{perceived_introgression_level|}}}
          |
|Has legal enforcement threats={{{legal_enforcement_threats|}}}
            <div style="color: #64748b; font-family: 'JetBrains Mono', monospace;">
|Has seed storage location={{{seed_storage_location|}}}
              [GIS_SYSTEM_OFFLINE]<br><small>GPS coordinates required for mapping</small>
|Has seed quantity={{{seed_quantity|}}}
            </div>
|Has last updated={{{last_updated|}}}
          }}
}}
        </div>
[[Category:Accessions]]
      </div>
    </div>
 
    <!-- ===== RESEARCH METADATA STRIP ===== -->
    <div class="hero-details">
      <div class="detail-group">
        <div class="detail-label">COLLECTION_DATE</div>
        <div class="detail-value">{{#show: {{{1}}} | ?Has collection date | default=NULL}}</div>
      </div>
 
      <div class="detail-group">
        <div class="detail-label">SAMPLE_TYPE</div>
        <div class="detail-value">{{#show: {{{1}}} | ?Has collection type | default=NULL}}</div>
      </div>
 
      <div class="detail-group">
        <div class="detail-label">CLASSIFICATION</div>
        <div class="detail-value highlight">{{#show: {{{1}}} | ?Has classification | default=NULL}}</div>
      </div>
 
      <div class="detail-group">
        <div class="detail-label">ELEVATION_MSL</div>
        <div class="detail-value">{{#show: {{{1}}} | ?Has elevation | default=NULL}}</div>
      </div>
 
      <div class="detail-group">
        <div class="detail-label">RESEARCHER</div>
        <div class="detail-value">{{#show: {{{1}}} | ?Has collector | default=NULL}}</div>
      </div>
 
      <div class="detail-group">
        <div class="detail-label">INSTITUTION</div>
        <div class="detail-value">{{#show: {{{1}}} | ?Has collector affiliation | default=NULL}}</div>
      </div>
    </div>
  </div>
 
  <!-- Research Documentation 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