Toggle menu
47
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
Tag: Reverted
No edit summary
(79 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:Accession/styles.css" />
<div class="accession-simple">
  <!-- ===== HERO HEADER ===== -->
  <div class="hero-header">
    <div class="hero-top">
      <h1 class="hero-title">{{PAGENAME}}</h1>
      <div class="hero-subtitle">{{#show: {{{1}}} | ?Has accession ID | default=—}}</div>
      <div class="hero-badges">
        {{#if: {{#show: {{{1}}} | ?Has current status}} |
          <span class="hero-badge badge-active">{{#show: {{{1}}} | ?Has current status}}</span> }}
        {{#if: {{#show: {{{1}}} | ?Has documentation status}} |
          <span class="hero-badge badge-tier">{{#show: {{{1}}} | ?Has documentation status}}</span> }}
        {{#if: {{#show: {{{1}}} | ?Has conservation priority}} |
          <span class="hero-badge badge-priority">{{#show: {{{1}}} | ?Has conservation priority}}</span> }}
      </div>
    </div>
  </div>
  <!-- ===== HERO SPLIT (GRID) ===== -->
  <div class="hero-split hero-split--grid">
    <!-- LEFT: PHOTO -->
    <div class="hero-image">
      {{#vardefine:hab|{{#show: {{{1}}} | ?Has habitat photo filename | link=none}}}}
      {{#vardefine:whole|{{#show: {{{1}}} | ?Has whole plant photo filename | link=none}}}}
      {{#vardefine:land|{{#show: {{{1}}} | ?Has landscape photo filename | link=none}}}}
      {{#if: {{#var:hab}}{{#var:whole}}{{#var:land}} |
        {{#if: {{#var:hab}} |
          [[File:{{#var:hab}}|600x400px|class=hero-img|link=]]
        | {{#if: {{#var:whole}} |
            [[File:{{#var:whole}}|600x400px|class=hero-img|link=]]
          | [[File:{{#var:land}}|600x400px|class=hero-img|link=]] }} }}
      |
        <div class="photo-placeholder">
          <div class="placeholder-content">
            <span class="placeholder-icon">🌿</span>
            <div class="placeholder-title">Genetic Heritage Documentation</div>
            <div class="placeholder-subtitle">Visual documentation preserves morphology and cultivation context.</div>
            <div class="placeholder-instruction">Upload habitat photo → add its title to <em>Has habitat photo filename</em></div>
          </div>
        </div>
      }}
      <!-- Image caption -->
      <div class="image-overlay">
        <p class="image-caption">
          {{PAGENAME}} growing in traditional cultivation at
          {{#show: {{{1}}} | ?Has elevation | default=unknown}} elevation
        </p>
      </div>
    </div>
    <!-- RIGHT: MAP CARD -->
    <div class="hero-map">
      <div class="map-container">🗺️ Interactive Map</div>
      <!-- Location overlay -->
      <div class="map-overlay">
        <h4>Location</h4>
        <div class="location-hierarchy">
          <div class="location-primary">
            {{#show: {{{1}}} | ?Has locality | default=—}}{{#if: {{#show: {{{1}}}|?Has district}} |, }} {{#show: {{{1}}} | ?Has district }}
          </div>
          <div class="location-secondary">
            {{#show: {{{1}}} | ?Has province | default=—}}, {{#show: {{{1}}} | ?Has country | default=—}}
          </div>
        </div>
      </div>
      <!-- Coordinates chip -->
      <div class="coordinates">
        {{#if: {{#show: {{{1}}} | ?Has GPS coordinates | link=none}} |
          {{#coordinates:{{#show: {{{1}}} | ?Has GPS coordinates | link=none}} | format=dd | directional=yes}}
        | }}
      </div>
    </div>
  </div>
  <!-- ===== DETAILS 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=—}}</div>
    </div>
    <div class="detail-group">
      <div class="detail-label">Type</div>
      <div class="detail-value">{{#show: {{{1}}} | ?Has collection type | default=—}}</div>
    </div>
    <div class="detail-group">
      <div class="detail-label">Classification</div>
      <div class="detail-value highlight">{{#show: {{{1}}} | ?Has classification | default=—}}</div>
    </div>
    <div class="detail-group">
      <div class="detail-label">Elevation</div>
      <div class="detail-value">
        {{#if: {{#show: {{{1}}} | ?Has elevation | link=none}} |
          {{#show: {{{1}}} | ?Has elevation | link=none}}
        | —}}
      </div>
    </div>
    <div class="detail-group">
      <div class="detail-label">Collector</div>
      <div class="detail-value">{{#show: {{{1}}} | ?Has collector | default=—}}</div>
    </div>
  </div>
  <!-- ===== GEO BREADCRUMB ===== -->
  <div class="geographic-path">
    <h4>Geographic Hierarchy</h4>
    <div class="breadcrumb">
      {{#if: {{#show: {{{1}}} | ?Has regional complex}} |
        <span class="level">{{#show: {{{1}}} | ?Has regional complex}}</span> }}
      {{#if: {{#show: {{{1}}} | ?Has growing region}} |
        <span class="separator">→</span><span class="level">{{#show: {{{1}}} | ?Has growing region}}</span> }}
      {{#if: {{#show: {{{1}}} | ?Has growing area}} |
        <span class="separator">→</span><span class="level">{{#show: {{{1}}} | ?Has growing area}}</span> }}
      {{#if: {{#show: {{{1}}} | ?Has appellation}} |
        <span class="separator">→</span><span class="level">{{#show: {{{1}}} | ?Has appellation}}</span> }}
    </div>
  </div>
  <!-- ===== DOC CHECKS (plain text, no frames) ===== -->
  <div class="doc-checks">
    {{#ifeq: {{#show: {{{1}}} | ?Has point of origin documentation | link=none}} | true | ✓ | ✗}} Origin
    • {{#ifeq: {{#show: {{{1}}} | ?Has photographic metadata preserved | link=none}} | true | ✓ | ✗}} Photos
    • {{#ifeq: {{#show: {{{1}}} | ?Has chain of custody maintained | link=none}} | true | ✓ | ✗}} Custody
  </div>
</div>
<!-- Optional content sections -->
{{BotanicalDescription|{{{1}}}}}
{{EnvironmentalContext|{{{1}}}}}
<noinclude>
<noinclude>
== Usage ==
Backend template for accessions on Landrace.Wiki.
<pre>{{Accession|{{PAGENAME}}}}</pre>
* Populated by [[Form:Accession]] (or future accession forms).
Requires [[Template:Accession/styles.css]].
* Renders the infobox via {{Infobox accession}}.
[[Category:Templates]]
* Sets core SemanticMediaWiki properties via {{#set}}.
</noinclude>
</noinclude>
{{Infobox accession
| descriptive_name            = {{{descriptive_name|{{PAGENAME}}}}}
| image                      = {{{image|}}}
| image_alt                  = {{{image_alt|}}}
| image_caption              = {{{image_caption|}}}
| show_map                    = {{{show_map|}}}
| accession_id                = {{{accession_id|}}}
| landrace_type              = {{{landrace_type|}}}
| chemotype                  = {{{chemotype|}}}
| thc_content                = {{{thc_content|}}}
| cbd_content                = {{{cbd_content|}}}
| flowering_time              = {{{flowering_time|}}}
| plant_height                = {{{plant_height|}}}
| terpene_profile            = {{{terpene_profile|}}}
| aroma                      = {{{aroma|}}}
| growth_pattern              = {{{growth_pattern|}}}
| leaf_shape                  = {{{leaf_shape|}}}
| leaflet_count              = {{{leaflet_count|}}}
| photoperiod_response        = {{{photoperiod_response|}}}
| flower_structure            = {{{flower_structure|}}}
| gene_pool                  = {{{gene_pool|}}}
| regional_complex            = {{{regional_complex|}}}
| growing_region              = {{{growing_region|}}}
| growing_area                = {{{growing_area|}}}
| appellation                = {{{appellation|}}}
| field                      = {{{field|}}}
| country                    = {{{country|}}}
| province                    = {{{province|}}}
| district                    = {{{district|}}}
| subdistrict                = {{{subdistrict|}}}
| locality                    = {{{locality|}}}
| gps_coordinates            = {{{gps_coordinates|}}}
| elevation                  = {{{elevation|}}}
| primary_local_name          = {{{primary_local_name|}}}
| vernacular_translation      = {{{vernacular_translation|}}}
| classification              = {{{classification|}}}
| collection_type            = {{{collection_type|}}}
| sourcing_type              = {{{sourcing_type|}}}
| documentation_status        = {{{documentation_status|}}}
| collection_date            = {{{collection_date|}}}
| collector                  = {{{collector|}}}
| collector_affiliation      = {{{collector_affiliation|}}}
| collection_method          = {{{collection_method|}}}
| sample_size                = {{{sample_size|}}}
| conservation_priority      = {{{conservation_priority|}}}
| cultivation_status          = {{{cultivation_status|}}}
| population_estimate        = {{{population_estimate|}}}
| perceived_introgression_level = {{{perceived_introgression_level|}}}
| legal_enforcement_threats  = {{{legal_enforcement_threats|}}}
| seed_storage_location      = {{{seed_storage_location|}}}
| seed_quantity              = {{{seed_quantity|}}}
| last_updated                = {{{last_updated|}}}
}}
{{#set:
|Has accession ID={{{accession_id|}}}
|Has descriptive name={{{descriptive_name|{{PAGENAME}}}}}
|Has landrace type={{{landrace_type|}}}
|Has chemotype={{{chemotype|}}}
|Has THC content={{{thc_content|}}}
|Has CBD content={{{cbd_content|}}}
|Has flowering time={{{flowering_time|}}}
|Has plant height={{{plant_height|}}}
|Has terpene profile={{{terpene_profile|}}}
|Has aroma={{{aroma|}}}
|Has growth pattern={{{growth_pattern|}}}
|Has leaf shape={{{leaf_shape|}}}
|Has leaflet count={{{leaflet_count|}}}
|Has photoperiod response={{{photoperiod_response|}}}
|Has flower structure={{{flower_structure|}}}
|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 subdistrict={{{subdistrict|}}}
|Has locality={{{locality|}}}
|Has GPS coordinates={{{gps_coordinates|}}}
|Has elevation={{{elevation|}}}
|Has primary local name={{{primary_local_name|}}}
|Has vernacular translation={{{vernacular_translation|}}}
|Has classification={{{classification|}}}
|Has collection type={{{collection_type|}}}
|Has sourcing type={{{sourcing_type|}}}
|Has documentation status={{{documentation_status|}}}
|Has collection date={{{collection_date|}}}
|Has collector={{{collector|}}}
|Has collector affiliation={{{collector_affiliation|}}}
|Has collection method={{{collection_method|}}}
|Has sample size={{{sample_size|}}}
|Has conservation priority={{{conservation_priority|}}}
|Has cultivation status={{{cultivation_status|}}}
|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|}}}
}}
[[Category:Accessions]]

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