Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Home/FeaturedAccessionCard: Difference between revisions

Template page
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:
   <div class="fa-body">
   <div class="fa-body">


     <!-- Conservation badge borrowed from the POPULATION, not the accession -->
     <!-- Status (population-level) -->
     <p class="fa-kicker">
     <p class="fa-kicker">
       {{#switch:{{lc:{{{PopStatus|unknown}}}}}
       <span class="k-item">
        |stable=🟢|vulnerable=🟡|endangered=🟠|critical=🔴|extinct=⚫|unknown=⚪|#default=⚪}}
        {{#switch:{{lc:{{{PopStatus|unknown}}}}}
      <span class="fa-status">{{ucfirst:{{lc:{{{PopStatus|Unknown}}}}}}}</span>
          |stable=🟢|vulnerable=🟡|endangered=🟠|critical=🔴|extinct=⚫|unknown=⚪|#default=⚪}}
       <span class="fa-sep">•</span>
        <span class="fa-status">{{ucfirst:{{lc:{{{PopStatus|Unknown}}}}}}}</span>
      {{#if:{{{PopulationPage|}}}|[[{{{PopulationPage}}}|{{{PopulationName|Population}}}]]|{{{PopulationName|Population}}}}
      </span>
       <span class="k-item">
        {{#ifexist:{{{PopulationPage|}}}
          | [[{{{PopulationPage}}}|{{{PopulationName|Population}}}]]
          | {{{PopulationName|Population}}}
        }}
      </span>
     </p>
     </p>


     <h3 class="fa-title">
     <h3 class="fa-title">
       {{#ifexist:{{{Page|}}}|[[{{{Page}}}|{{{AccessionName|{{{GTName|Untitled accession}}}}}}]]|{{{AccessionName|{{{GTName|Untitled accession}}}}}}}}
       {{#ifexist:{{{Page|}}}|
        [[{{{Page}}}|{{{AccessionName|{{{GTName|Untitled accession}}}}}}]]
      | {{{AccessionName|{{{GTName|Untitled accession}}}}}} }}
     </h3>
     </h3>


     <p class="fa-sub">
     <p class="fa-sub">
       {{#if:{{{Path|}}}|{{{Path}}} · }}{{#if:{{{Province|}}}|{{{Province}}}, }}{{{Country|}}}
       {{#if:{{{Path|}}}|{{{Path}}} · }}
      {{#if:{{{Province|}}}|{{{Province}}},&#32;}}
      {{{Country|}}}
     </p>
     </p>


    <!-- Provenance (dot separators added via CSS, never inline) -->
     <p class="fa-provenance">
     <p class="fa-provenance">
       {{#if:{{{AccessionID|}}}|<span class="fa-id">ID: {{{AccessionID}}}</span>}}
       {{#if:{{{AccessionID|}}}|<span class="pv-item"><span class="fa-id">ID: {{{AccessionID}}}</span></span>}}
       {{#if:{{{Collector|}}}| · Collected by {{{Collector}}}{{#if:{{{CollOrg|}}}|, {{{CollOrg}}}|}}}}
       {{#if:{{{Collector|}}}|<span class="pv-item">Collected by {{{Collector}}}{{#if:{{{CollOrg|}}}|, {{{CollOrg}}}|}}}</span>}}
       {{#if:{{{CollDate|}}}| · {{#time:Y-m-d|{{{CollDate}}}}}}}
       {{#if:{{{CollDate|}}}|<span class="pv-item">{{#time:Y-m-d|{{{CollDate}}}}}</span>}}
       {{#if:{{{DocTier|}}}| · <span class="fa-badge fa-badge--tier">Tier {{{DocTier}}}</span>}}
       {{#if:{{{DocTier|}}}|<span class="pv-item"><span class="fa-badge fa-badge--tier">Tier {{{DocTier}}}</span></span>}}
       {{#if:{{{Preserved|}}}| · <span class="fa-badge fa-badge--pres">{{{Preserved}}}</span>}}
       {{#if:{{{Preserved|}}}|<span class="pv-item"><span class="fa-badge fa-badge--pres">{{{Preserved}}}</span></span>}}
     </p>
     </p>


Line 40: Line 51:


     <p class="fa-cta">
     <p class="fa-cta">
       {{#ifexist:{{{Page|}}}|[[{{{Page}}}|→ View accession]]|<span class="fa-missing">Profile coming soon</span>}}
       {{#ifexist:{{{Page|}}}|
        [[{{{Page}}}|→ View accession]]
      | <span class="fa-missing">Profile coming soon</span> }}
     </p>
     </p>
   </div>
   </div>
</div>
</div>

Latest revision as of 05:33, 24 August 2025

   No image

Unknown Population

Untitled accession

Profile coming soon