Toggle menu
17
24
14
1.7K
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
 
(59 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">


  <!-- ===== HERO HEADER ===== -->
* Populated by [[Form:Accession]] (or future accession forms).
  <div class="hero-header">
* Renders the infobox via {{Infobox accession}}.
    <div class="hero-top">
* Sets core SemanticMediaWiki properties via {{#set}}.
      <h1 class="hero-title">{{PAGENAME}}</h1>
</noinclude>
      <div style="margin-top: 0.5rem;">
        <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem;">{{#show: {{{1}}} | ?Has accession ID | default=—}}</div>
        {{#if: {{#show: {{{1}}} | ?Has current status}} |
          <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem;">{{#show: {{{1}}} | ?Has current status}}</div> }}
        {{#if: {{#show: {{{1}}} | ?Has documentation status}} |
          <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem;">{{#show: {{{1}}} | ?Has documentation status}}</div> }}
        {{#if: {{#show: {{{1}}} | ?Has conservation priority}} |
          <div class="hero-subtitle" style="display: inline-block;">{{#show: {{{1}}} | ?Has conservation priority}}</div> }}
      </div>


      <!-- GEOGRAPHIC BREADCRUMB MOVED HERE -->
{{Infobox accession
      <div class="hero-breadcrumb">
| descriptive_name            = {{{descriptive_name|{{PAGENAME}}}}}
        <div class="hero-breadcrumb-label">Geographic Location</div>
| image                      = {{{image|}}}
        {{#if: {{#show: {{{1}}} | ?Has regional complex}} |
| image_alt                  = {{{image_alt|}}}
          <span class="level">{{#show: {{{1}}} | ?Has regional complex}}</span>
| image_caption              = {{{image_caption|}}}
          <span class="separator">→</span> }}
        {{#if: {{#show: {{{1}}} | ?Has growing region}} |
          <span class="level">{{#show: {{{1}}} | ?Has growing region}}</span>
          <span class="separator">→</span> }}
        {{#if: {{#show: {{{1}}} | ?Has growing area}} |
          <span class="level">{{#show: {{{1}}} | ?Has growing area}}</span>
          <span class="separator">→</span> }}
        {{#if: {{#show: {{{1}}} | ?Has appellation}} |
          <span class="level">{{#show: {{{1}}} | ?Has appellation}}</span> }}
      </div>
    </div>


    <!-- ===== HERO SPLIT ===== -->
| accession_id                = {{{accession_id|}}}
    <div class="hero-split">
| classification              = {{{classification|}}}
      <!-- LEFT: PHOTO -->
| collection_type            = {{{collection_type|}}}
      <div class="hero-image">
| sourcing_type              = {{{sourcing_type|}}}
        {{#if: {{#show: {{{1}}} | ?Has habitat photo filename}} |
| documentation_status        = {{{documentation_status|}}}
          [[File:{{#show: {{{1}}} | ?Has habitat photo filename}}|600x400px|{{PAGENAME}} in natural habitat|class=hero-img|link=]]
        |{{#if: {{#show: {{{1}}} | ?Has whole plant photo filename}} |
          [[File:{{#show: {{{1}}} | ?Has whole plant photo filename}}|600x400px|{{PAGENAME}} whole plant|class=hero-img|link=]]
        |{{#if: {{#show: {{{1}}} | ?Has landscape photo filename}} |
          [[File:{{#show: {{{1}}} | ?Has landscape photo filename}}|600x400px|{{PAGENAME}} landscape|class=hero-img|link=]]
        |
          <div class="photo-placeholder">
            <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">
| gene_pool                  = {{{gene_pool|}}}
          <p class="image-caption">
| regional_complex            = {{{regional_complex|}}}
            {{PAGENAME}} growing in traditional cultivation at
| growing_region              = {{{growing_region|}}}
            {{#show: {{{1}}} | ?Has elevation | default=unknown}} elevation
| growing_area                = {{{growing_area|}}}
          </p>
| appellation                = {{{appellation|}}}
        </div>
| field                      = {{{field|}}}
      </div>


      <!-- RIGHT: MAP -->
| country                    = {{{country|}}}
      <div class="hero-map">
| province                    = {{{province|}}}
        <div class="map-container">
| district                   = {{{district|}}}
          {{#if: {{#show: {{{1}}} | ?Has GPS coordinates}} |
| locality                    = {{{locality|}}}
            <div class="lw-map"
                data-accessions="https://landrace.wiki/static/geo/accessions.json"
                data-filter-accession="{{#show: {{{1}}} | ?Has accession ID | link=none}}"
                data-zoom="12"
                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) ===== -->
| gps_coordinates            = {{{gps_coordinates|}}}
    <div class="hero-details">
| elevation                  = {{{elevation|}}}
      <div class="detail-group">
        <div class="detail-label">Collection Date</div>
        <div class="detail-value">{{#show: {{{1}}} | ?Has collection date | default=—}}</div>
      </div>


      <div class="detail-group">
| primary_local_name          = {{{primary_local_name|}}}
        <div class="detail-label">Type</div>
| vernacular_translation      = {{{vernacular_translation|}}}
        <div class="detail-value">{{#show: {{{1}}} | ?Has collection type | default=—}}</div>
      </div>


      <div class="detail-group">
| collection_date            = {{{collection_date|}}}
        <div class="detail-label">Classification</div>
| collector                  = {{{collector|}}}
        <div class="detail-value highlight">{{#show: {{{1}}} | ?Has classification | default=—}}</div>
| collector_affiliation      = {{{collector_affiliation|}}}
      </div>
| collection_method          = {{{collection_method|}}}
| sample_size                = {{{sample_size|}}}


      <div class="detail-group">
| cultivation_status          = {{{cultivation_status|}}}
        <div class="detail-label">Elevation</div>
| conservation_priority      = {{{conservation_priority|}}}
         <div class="detail-value">{{#show: {{{1}}} | ?Has elevation | default=—}}</div>
| population_estimate         = {{{population_estimate|}}}
      </div>
| perceived_introgression_level = {{{perceived_introgression_level|}}}
| legal_enforcement_threats  = {{{legal_enforcement_threats|}}}


       <div class="detail-group">
| seed_storage_location       = {{{seed_storage_location|}}}
        <div class="detail-label">Collector</div>
| seed_quantity              = {{{seed_quantity|}}}
        <div class="detail-value">{{#show: {{{1}}} | ?Has collector | default=—}}</div>
      </div>


      <div class="detail-group">
| last_updated                = {{{last_updated|}}}
        <div class="detail-label">Organisation</div>
}}
        <div class="detail-value">{{#show: {{{1}}} | ?Has collector affiliation | default=—}}</div>
      </div>
    </div>
  </div>


  <!-- Content sections -->
{{#set:
  {{BotanicalDescription|{{{1}}}}}
|Has accession ID={{{accession_id|}}}
  {{EnvironmentalContext|{{{1}}}}}
|Has descriptive name={{{descriptive_name|{{PAGENAME}}}}}
 
|Has classification={{{classification|}}}
</div>
|Has collection type={{{collection_type|}}}
</includeonly>
|Has sourcing type={{{sourcing_type|}}}
|Has documentation status={{{documentation_status|}}}
|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 district={{{district|}}}
|Has locality={{{locality|}}}
|Has GPS coordinates={{{gps_coordinates|}}}
|Has elevation={{{elevation|}}}
|Has primary local name={{{primary_local_name|}}}
|Has vernacular translation={{{vernacular_translation|}}}
|Has collection date={{{collection_date|}}}
|Has collector={{{collector|}}}
|Has collector affiliation={{{collector_affiliation|}}}
|Has collection method={{{collection_method|}}}
|Has sample size={{{sample_size|}}}
|Has cultivation status={{{cultivation_status|}}}
|Has conservation priority={{{conservation_priority|}}}
|Has population estimate={{{population_estimate|}}}
|Has perceived introgression level={{{perceived_introgression_level|}}}
|Has legal enforcement threats={{{legal_enforcement_threats|}}}
|Has seed storage location={{{seed_storage_location|}}}
|Has seed quantity={{{seed_quantity|}}}
|Has last updated={{{last_updated|}}}
}}

Latest revision as of 08:56, 22 November 2025

Backend template for accessions on Landrace.Wiki.

  • Populated by Form:Accession (or future accession forms).
  • Renders the infobox via This is the visual infobox for accession pages on Landrace.Wiki.

Do not call it directly; use Accession on accession pages..

  • Sets core SemanticMediaWiki properties via {{#set}}.


This is the visual infobox for accession pages on Landrace.Wiki. Do not call it directly; use Accession on accession pages.