|
|
| (63 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">
| |
|
| |
|
| <div class="hero-header">
| | * Populated by [[Form:Accession]] (or future accession forms). |
| <includeonly>
| | * Renders the infobox via {{Infobox accession}}. |
| <templatestyles src="Template:Accession/styles.css" />
| | * Sets core SemanticMediaWiki properties via {{#set}}. |
| <div class="accession-simple"> | | </noinclude> |
|
| |
|
| <!-- ===== HERO HEADER ===== -->
| | {{Infobox accession |
| <div class="hero-header">
| | | descriptive_name = {{{descriptive_name|{{PAGENAME}}}}} |
| <div class="hero-top">
| | | image = {{{image|}}} |
| <h1 class="hero-title">{{PAGENAME}}</h1>
| | | image_alt = {{{image_alt|}}} |
| <div style="margin-top: 0.5rem;">
| | | image_caption = {{{image_caption|}}} |
| <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>
| |
| </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>
| |
| |
| |
| <div style="display: table-cell; vertical-align: middle; text-align: center; height: 400px; color: #64748b;">
| |
| 🗺️ Interactive Map<br><small>GPS coordinates needed</small>
| |
| </div>
| |
| }}
| |
| </div>
| |
|
| |
|
| <div class="map-overlay">
| | | gps_coordinates = {{{gps_coordinates|}}} |
| <h4>Location</h4>
| | | elevation = {{{elevation|}}} |
| <div class="location-hierarchy">
| |
| <div class="location-primary"> | |
| {{#show: {{{1}}} | ?Has locality}}{{#if: {{#show: {{{1}}} | ?Has district}} |, {{#show: {{{1}}} | ?Has district}} }}
| |
| </div>
| |
| <div class="location-secondary">
| |
| {{#show: {{{1}}} | ?Has province}}{{#if: {{#show: {{{1}}} | ?Has country}} |, {{#show: {{{1}}} | ?Has country}} }}
| |
| </div>
| |
| </div>
| |
| </div>
| |
|
| |
|
| <div class="coordinates">
| | | primary_local_name = {{{primary_local_name|}}} |
| {{#show: {{{1}}} | ?Has GPS coordinates}}
| | | vernacular_translation = {{{vernacular_translation|}}} |
| </div>
| |
| </div>
| |
| </div>
| |
|
| |
|
| <!-- ===== DETAILS STRIP ===== -->
| | | collection_date = {{{collection_date|}}} |
| <div class="hero-details">
| | | collector = {{{collector|}}} |
| <div class="detail-group"> | | | collector_affiliation = {{{collector_affiliation|}}} |
| <div class="detail-label">Collection Date</div>
| | | collection_method = {{{collection_method|}}} |
| <div class="detail-value">{{#show: {{{1}}} | ?Has collection date | default=—}}</div>
| | | sample_size = {{{sample_size|}}} |
| </div>
| |
|
| |
|
| <div class="detail-group">
| | | cultivation_status = {{{cultivation_status|}}} |
| <div class="detail-label">Type</div>
| | | conservation_priority = {{{conservation_priority|}}} |
| <div class="detail-value">{{#show: {{{1}}} | ?Has collection type | 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">Classification</div>
| | | seed_quantity = {{{seed_quantity|}}} |
| <div class="detail-value highlight">{{#show: {{{1}}} | ?Has classification | default=—}}</div>
| |
| </div>
| |
|
| |
|
| <div class="detail-group">
| | | last_updated = {{{last_updated|}}} |
| <div class="detail-label">Elevation</div>
| | }} |
| <div class="detail-value">{{#show: {{{1}}} | ?Has elevation | default=—}}</div>
| |
| </div>
| |
|
| |
|
| <div class="detail-group">
| | {{#set: |
| <div class="detail-label">Collector</div>
| | |Has accession ID={{{accession_id|}}} |
| <div class="detail-value">{{#show: {{{1}}} | ?Has collector | default=—}}</div>
| | |Has descriptive name={{{descriptive_name|{{PAGENAME}}}}} |
| </div>
| | |Has classification={{{classification|}}} |
| | | |Has collection type={{{collection_type|}}} |
| <div class="detail-group">
| | |Has sourcing type={{{sourcing_type|}}} |
| <div class="detail-label">Organisation</div>
| | |Has documentation status={{{documentation_status|}}} |
| <div class="detail-value">{{#show: {{{1}}} | ?Has collector affiliation | default=—}}</div>
| | |Has gene pool={{{gene_pool|}}} |
| </div>
| | |Has regional complex={{{regional_complex|}}} |
| | | |Has growing region={{{growing_region|}}} |
| <!-- GEO BREADCRUMB -->
| | |Has growing area={{{growing_area|}}} |
| <div class="geographic-path">
| | |Has appellation={{{appellation|}}} |
| <h4>Geographic Hierarchy</h4>
| | |Has field={{{field|}}} |
| <div class="breadcrumb">
| | |Has country={{{country|}}} |
| {{#if: {{#show: {{{1}}} | ?Has regional complex}} |
| | |Has province={{{province|}}} |
| <span class="level">{{#show: {{{1}}} | ?Has regional complex}}</span> }}
| | |Has district={{{district|}}} |
| {{#if: {{#show: {{{1}}} | ?Has growing region}} |
| | |Has locality={{{locality|}}} |
| <span class="separator">→</span><span class="level">{{#show: {{{1}}} | ?Has growing region}}</span> }}
| | |Has GPS coordinates={{{gps_coordinates|}}} |
| {{#if: {{#show: {{{1}}} | ?Has growing area}} |
| | |Has elevation={{{elevation|}}} |
| <span class="separator">→</span><span class="level">{{#show: {{{1}}} | ?Has growing area}}</span> }}
| | |Has primary local name={{{primary_local_name|}}} |
| {{#if: {{#show: {{{1}}} | ?Has appellation}} |
| | |Has vernacular translation={{{vernacular_translation|}}} |
| <span class="separator">→</span><span class="level">{{#show: {{{1}}} | ?Has appellation}}</span> }}
| | |Has collection date={{{collection_date|}}} |
| </div>
| | |Has collector={{{collector|}}} |
| </div>
| | |Has collector affiliation={{{collector_affiliation|}}} |
| </div>
| | |Has collection method={{{collection_method|}}} |
| </div>
| | |Has sample size={{{sample_size|}}} |
| | | |Has cultivation status={{{cultivation_status|}}} |
| <!-- Content sections -->
| | |Has conservation priority={{{conservation_priority|}}} |
| {{BotanicalDescription|{{{1}}}}}
| | |Has population estimate={{{population_estimate|}}} |
| {{EnvironmentalContext|{{{1}}}}}
| | |Has perceived introgression level={{{perceived_introgression_level|}}} |
| | | |Has legal enforcement threats={{{legal_enforcement_threats|}}} |
| </div>
| | |Has seed storage location={{{seed_storage_location|}}} |
| </includeonly>
| | |Has seed quantity={{{seed_quantity|}}} |
| | | |Has last updated={{{last_updated|}}} |
| <!-- Split layout section -->
| | }} |
| <div class="hero-split">
| |
| <!-- Left: Plant Photography -->
| |
| <div class="hero-image">
| |
| <!-- Main habitat photo with improved 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 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 the morphology and cultivation context of this landrace population</div>
| |
| <div class="placeholder-instruction">Upload habitat photo → Add filename to "Has habitat photo filename"</div>
| |
| </div>
| |
| </div>
| |
| }}}}}}
| |
|
| |
| <div class="image-overlay">
| |
| <p class="image-caption">{{PAGENAME}} growing in traditional cultivation at {{#show: {{{1}}} | ?Has elevation}}m elevation</p>
| |
| </div>
| |
| </div>
| |
|
| |
| <!-- Right: Map -->
| |
| <div class="hero-map">
| |
| <div class="map-container">
| |
| <!-- Placeholder for interactive map -->
| |
| 🗺️ Interactive Map
| |
| </div>
| |
|
| |
| <!-- Location overlay -->
| |
| <div class="map-overlay">
| |
| <h4>Location</h4>
| |
| <div class="location-hierarchy">
| |
| <div class="location-primary">{{#show: {{{1}}} | ?Has locality}}, {{#show: {{{1}}} | ?Has district}}</div>
| |
| <div class="location-secondary">{{#show: {{{1}}} | ?Has province}}, {{#show: {{{1}}} | ?Has country}}</div>
| |
| </div>
| |
| </div>
| |
|
| |
| <!-- Coordinates -->
| |
| <div class="coordinates">
| |
| {{#show: {{{1}}} | ?Has GPS coordinates}}
| |
| </div>
| |
| </div>
| |
| </div>
| |
| | |
| <!-- Bottom 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}}</div>
| |
| </div>
| |
|
| |
| <div class="detail-group">
| |
| <div class="detail-label">Type</div>
| |
| <div class="detail-value">{{#show: {{{1}}} | ?Has collection type}}</div>
| |
| </div>
| |
|
| |
| <div class="detail-group">
| |
| <div class="detail-label">Classification</div>
| |
| <div class="detail-value highlight">{{#show: {{{1}}} | ?Has classification}}</div>
| |
| </div>
| |
|
| |
| <div class="detail-group">
| |
| <div class="detail-label">Elevation</div>
| |
| <div class="detail-value">{{#show: {{{1}}} | ?Has elevation}}m</div>
| |
| </div>
| |
|
| |
| <div class="detail-group">
| |
| <div class="detail-label">Collector</div>
| |
| <div class="detail-value">{{#show: {{{1}}} | ?Has collector}}</div>
| |
| </div>
| |
|
| |
| <!-- Geographic hierarchy breadcrumb -->
| |
| <div class="geographic-path">
| |
| <h4>Geographic Hierarchy</h4>
| |
| <div class="breadcrumb">
| |
| <span class="level">{{#show: {{{1}}} | ?Has regional complex}}</span>
| |
| <span class="separator">→</span>
| |
| <span class="level">{{#show: {{{1}}} | ?Has growing region}}</span>
| |
| <span class="separator">→</span>
| |
| <span class="level">{{#show: {{{1}}} | ?Has growing area}}</span>
| |
| <span class="separator">→</span>
| |
| <span class="level">{{#show: {{{1}}} | ?Has appellation}}</span>
| |
| </div>
| |
| </div>
| |
| </div>
| |
| </div>
| |
| | |
| <!-- Content sections -->
| |
| {{BotanicalDescription|{{{1}}}}} | |
| {{EnvironmentalContext|{{{1}}}}}
| |
| | |
| </div>
| |
| </includeonly>
| |