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:Home/FeaturedRegionCard: Difference between revisions

Template page
No edit summary
Tag: Reverted
Undo revision 2665 by Eloise Zomia (talk)
Tag: Undo
Line 1: Line 1:
<includeonly>
<templatestyles src="Template:Home/FeaturedRegionCard/styles.css" />
<templatestyles src="Template:Infobox Growing Region/styles.css" />
 
{| class="infobox lw-infobox lw-infobox--growing-region"
<div class="fa-card">
|-
<div class="fa-media">
! colspan="2" class="lw-infobox__title" | {{{region_name|{{PAGENAME}}}}}
{{#if:{{{HeroImage|}}}|
|-
{{#ifexist:File:{{{HeroImage}}}|
{{#if:{{{other_name|}}}|
<span class="fa-img">[[File:{{{HeroImage}}}|link=|alt={{{HeroAlt|{{{RegionName|{{{Page|Untitled region}}}}}}}}}]]</span>
! colspan="2" class="lw-infobox__subtitle" {{!}} {{{other_name}}}
| <span class="fa-img fa-img--placeholder">No image</span>}}
{{!}}-
| <span class="fa-img fa-img--placeholder">No image</span>}}
}}
</div>
{{#if:{{{image|}}}|
 
{{!}} colspan="2" class="lw-infobox__media" {{!}} [[File:{{{image}}}|320px|{{{image_caption|View of {{{region_name|{{PAGENAME}}}}}}}}]]
  <div class="fa-body">
{{!}}-
 
{{#if:{{{image_caption|}}}|
  <!-- Title -->
{{!}} colspan="2" class="lw-infobox__caption" {{!}} {{{image_caption}}}
  <h3 class="fa-title">
{{!}}-
    {{#ifexist:{{{Page|}}}|
}}
      [[{{{Page}}}|{{{RegionName|{{{Page}}}}}}]]
}}
    | {{{RegionName|Untitled region}}} }}
{{#if:{{{show_map|}}}|
  </h3>
{{!}} colspan="2" class="lw-infobox__map-container" {{!}} <div class="lw-infobox__map lw-map" data-smw-query="[[Has growing region::{{PAGENAME}}]]{{!}}?Has GPS coordinates{{!}}?Has descriptive name{{!}}?Has conservation priority{{!}}?Has accession ID"></div><div class="lw-infobox__map-expand" title="Expand map"></div>
 
{{!}}-
  <!-- Path/lineage under title -->
}}
  {{#if:{{{Path|{{{GPName|}}}}}}|
|-
    <p class="fa-kicker"><span class="k-item">{{{Path|{{{GPName|}}}}}}</span></p>
! class="lw-infobox__label" | Location
  }}
| class="lw-infobox__value" | {{{location|{{{country|}}}}}}
 
|-
  <!-- One-line pitch: only render if provided -->
{{#if:{{{coordinates|}}}|
  {{#if:{{{Hook|}}}|<p class="fa-hook">{{{Hook}}}</p>}}
! class="lw-infobox__label" {{!}} Coordinates
 
{{!}} class="lw-infobox__value" {{!}} {{{coordinates}}}
  <!-- Footer: status + growing area + accessions + CTA -->
{{!}}-
  <div class="fa-foot">
}}
    <p class="fa-statusline">
{{#if:{{{gene_pool|}}}|
      <!-- Conservation status (colored) -->
! class="lw-infobox__label" {{!}} Gene Pool
      <span class="status-pill sp--{{lc:{{{Status|unknown}}}}}"
{{!}} class="lw-infobox__value" {{!}} {{{gene_pool}}}
            aria-label="Conservation status: {{ucfirst:{{lc:{{{Status|Unknown}}}}}}}">
{{!}}-
        <span class="pill-dot"></span>
}}
        <span class="pill-text">{{ucfirst:{{lc:{{{Status|Unknown}}}}}}}</span>
{{#if:{{{regional_complex|}}}|
      </span>
! class="lw-infobox__label" {{!}} Regional Complex
 
{{!}} class="lw-infobox__value" {{!}} {{{regional_complex}}}
      <!-- Growing areas count -->
{{!}}-
      {{#if:{{{Areas|}}}|<span class="pill pill--area" aria-label="Growing areas"><span class="pill-num">{{{Areas}}}</span><span class="pill-label">areas</span></span>}}
}}
        </span>
{{#if:{{{country|}}}|
      </span>
! class="lw-infobox__label" {{!}} Country
 
{{!}} class="lw-infobox__value" {{!}} {{{country}}}
      <!-- Accessions (neutral number + label) -->
{{!}}-
      {{#if:{{{Accessions|}}}|
}}
        <span class="pill pill--access" aria-label="Documented accessions">
{{#if:{{{provinces|}}}|
          <span class="pill-num">{{{Accessions}}}</span>
! class="lw-infobox__label" {{!}} Provinces/States
          <span class="pill-label">accessions</span>
{{!}} class="lw-infobox__value" {{!}} {{{provinces}}}
        </span>
{{!}}-
      }}
}}
    </p>
{{#if:{{{elevation_range|}}}|
 
! class="lw-infobox__label" {{!}} Elevation Range
    <div class="fa-foot-sep" role="presentation"></div>
{{!}} class="lw-infobox__value" {{!}} {{{elevation_range}}}
 
{{!}}-
    <p class="fa-cta">
}}
      {{#ifexist:{{{Page|}}}|
{{#if:{{{area_extent|}}}|
        [[{{{Page}}}|→ View region]]
! class="lw-infobox__label" {{!}} Area
      | <span class="fa-missing">Profile coming soon</span> }}
{{!}} class="lw-infobox__value" {{!}} {{{area_extent}}}
    </p>
{{!}}-
  </div>
}}
</div>
{{#if:{{{climate|}}}|
 
! class="lw-infobox__label" {{!}} Climate
</div>
{{!}} class="lw-infobox__value" {{!}} {{{climate}}}
{{!}}-
}}
{{#if:{{{primary_river|}}}|
! class="lw-infobox__label" {{!}} Primary Rivers
{{!}} class="lw-infobox__value" {{!}} {{{primary_river}}}
{{!}}-
}}
{{#if:{{{primary_mountains|}}}|
! class="lw-infobox__label" {{!}} Primary Mountains
{{!}} class="lw-infobox__value" {{!}} {{{primary_mountains}}}
{{!}}-
}}
{{#if:{{{status|}}}|
! class="lw-infobox__label" {{!}} Conservation Status
{{!}} class="lw-infobox__value lw-infobox__status" {{!}} {{{status}}}
{{!}}-
}}
|}
<!-- Semantic properties (single-value) -->
[[Category:Growing Regions]]
{{#set:
|Has region name={{{region_name|}}}
|Has alternate name={{{other_name|}}}
|Has coordinates={{{coordinates|}}}
|Has gene pool={{{gene_pool|}}}
|Has regional complex={{{regional_complex|}}}
|Has elevation range={{{elevation_range|}}}
|Has area extent={{{area_extent|}}}
|Has climate={{{climate|}}}
|Has conservation status={{{status|}}}
}}
<!-- Semantic properties (multi-value) -->
{{#arraymap:{{{country|}}}|,|x|{{#set:|Has country=x}}|}}
{{#arraymap:{{{provinces|}}}|,|x|{{#set:|Has province=x}}|}}
{{#arraymap:{{{primary_river|}}}|,|x|{{#set:|Has primary river=x}}|}}
{{#arraymap:{{{primary_mountains|}}}|,|x|{{#set:|Has primary mountains=x}}|}}
</includeonly>
<noinclude>
Documentation goes here.
</noinclude>

Revision as of 19:17, 19 January 2026

No image

Untitled region



Unknown

Profile coming soon