Template:Accession: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) No edit summary |
Eloise Zomia (talk | contribs) No edit summary |
||
| Line 20: | Line 20: | ||
<!-- Left: Plant Photography --> | <!-- Left: Plant Photography --> | ||
<div class="hero-image"> | <div class="hero-image"> | ||
<!-- | <!-- Main habitat photo with fallback --> | ||
{{#if: {{#show: {{{1}}} | ?Has habitat photo filename}} | | |||
[[File:{{#show: {{{1}}} | ?Has habitat photo filename}}|600x400px|{{PAGENAME}} in natural habitat]] | |||
|{{#if: {{#show: {{{1}}} | ?Has whole plant photo filename}} | | |||
[[File:{{#show: {{{1}}} | ?Has whole plant photo filename}}|600x400px|{{PAGENAME}} whole plant]] | |||
|{{#if: {{#show: {{{1}}} | ?Has landscape photo filename}} | | |||
[[File:{{#show: {{{1}}} | ?Has landscape photo filename}}|600x400px|{{PAGENAME}} landscape]] | |||
| | |||
<div style="width:100%; height:400px; background:#f1f5f9; display:table-cell; vertical-align:middle; text-align:center; color:#64748b;"> | |||
📸 No habitat photo available<br> | |||
<small>Upload photo and add filename to<br>"Has habitat photo filename" property</small> | |||
</div> | |||
}}}}}} | |||
<div class="image-overlay"> | <div class="image-overlay"> | ||
<p class="image-caption">{{PAGENAME}} growing in traditional cultivation at {{#show: {{{1}}} | ?Has elevation}}m elevation</p> | <p class="image-caption">{{PAGENAME}} growing in traditional cultivation at {{#show: {{{1}}} | ?Has elevation}}m elevation</p> | ||