|
|
| (56 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">
| |
|
| |
|
| <!-- ===== SCIENTIFIC RESEARCH DATABASE HEADER ===== -->
| | * Populated by [[Form:Accession]] (or future accession forms). |
| <div class="hero-header">
| | * Renders the infobox via {{Infobox accession}}. |
| <div class="hero-top">
| | * Sets core SemanticMediaWiki properties via {{#set}}. |
| <h1 class="hero-title">{{PAGENAME}}</h1>
| | </noinclude> |
|
| |
| <!-- Technical data badges -->
| |
| <div style="margin-top: 0.75rem;">
| |
| <div class="hero-subtitle" style="display: inline-block; margin-right: 0.75rem;">{{#show: {{{1}}} | ?Has accession ID | default=—}}</div>
| |
| {{#if: {{#show: {{{1}}} | ?Has current status}} |
| |
| <div class="hero-subtitle" style="display: inline-block; margin-right: 0.75rem;">{{#show: {{{1}}} | ?Has current status}}</div> }}
| |
| {{#if: {{#show: {{{1}}} | ?Has documentation status}} |
| |
| <div class="hero-subtitle" style="display: inline-block; margin-right: 0.75rem;">{{#show: {{{1}}} | ?Has documentation status}}</div> }}
| |
| {{#if: {{#show: {{{1}}} | ?Has conservation priority}} |
| |
| <div class="hero-subtitle" style="display: inline-block; margin-right: 0.75rem;">{{#show: {{{1}}} | ?Has conservation priority}}</div> }}
| |
| </div>
| |
|
| |
|
| <!-- Scientific geographic hierarchy -->
| | {{Infobox accession |
| <div style="margin-top: 0.75rem;">
| | | descriptive_name = {{{descriptive_name|{{PAGENAME}}}}} |
| {{#if: {{#show: {{{1}}} | ?Has regional complex}} |
| | | image = {{{image|}}} |
| <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem; background: rgba(5, 150, 105, 0.1); color: #10b981; border: 1px solid rgba(5, 150, 105, 0.2);">{{#show: {{{1}}} | ?Has regional complex}}</div> }}
| | | image_alt = {{{image_alt|}}} |
| {{#if: {{#show: {{{1}}} | ?Has growing region}} |
| | | image_caption = {{{image_caption|}}} |
| <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem; background: rgba(5, 150, 105, 0.1); color: #10b981; border: 1px solid rgba(5, 150, 105, 0.2);">{{#show: {{{1}}} | ?Has growing region}}</div> }}
| |
| {{#if: {{#show: {{{1}}} | ?Has growing area}} |
| |
| <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem; background: rgba(5, 150, 105, 0.1); color: #10b981; border: 1px solid rgba(5, 150, 105, 0.2);">{{#show: {{{1}}} | ?Has growing area}}</div> }}
| |
| {{#if: {{#show: {{{1}}} | ?Has appellation}} |
| |
| <div class="hero-subtitle" style="display: inline-block; margin-right: 0.5rem; background: rgba(5, 150, 105, 0.1); color: #10b981; border: 1px solid rgba(5, 150, 105, 0.2);">{{#show: {{{1}}} | ?Has appellation}}</div> }}
| |
| </div>
| |
|
| |
|
| <!-- Research status indicators -->
| | | accession_id = {{{accession_id|}}} |
| <div class="hero-badges">
| | | classification = {{{classification|}}} |
| {{#if: {{#show: {{{1}}} | ?Has current status}} |
| | | collection_type = {{{collection_type|}}} |
| {{#ifeq: {{#show: {{{1}}} | ?Has current status}} | Active/Cultivated |
| | | sourcing_type = {{{sourcing_type|}}} |
| <div class="hero-badge badge-active">ACTIVE</div> |
| | | documentation_status = {{{documentation_status|}}} |
| <div class="hero-badge">{{#show: {{{1}}} | ?Has current status}}</div> }}
| |
| }}
| |
| {{#if: {{#show: {{{1}}} | ?Has documentation status}} |
| |
| {{#ifeq: {{#show: {{{1}}} | ?Has documentation status}} | Tier 1 |
| |
| <div class="hero-badge badge-tier1">TIER-1</div> |
| |
| <div class="hero-badge">{{#show: {{{1}}} | ?Has documentation status}}</div> }} | |
| }}
| |
| {{#if: {{#show: {{{1}}} | ?Has conservation priority}} |
| |
| {{#ifeq: {{#show: {{{1}}} | ?Has conservation priority}} | High (action needed within 5 years) |
| |
| <div class="hero-badge badge-priority">HIGH-PRI</div> |
| |
| <div class="hero-badge">{{#show: {{{1}}} | ?Has conservation priority}}</div> }}
| |
| }}
| |
| </div>
| |
| </div>
| |
|
| |
|
| <!-- ===== RESEARCH DATA VISUALIZATION ===== -->
| | | gene_pool = {{{gene_pool|}}} |
| <div class="hero-split">
| | | regional_complex = {{{regional_complex|}}} |
| <!-- Morphological Documentation -->
| | | growing_region = {{{growing_region|}}} |
| <div class="hero-image">
| | | growing_area = {{{growing_area|}}} |
| {{#if: {{#show: {{{1}}} | ?Has habitat photo filename}} |
| | | appellation = {{{appellation|}}} |
| [[File:{{#show: {{{1}}} | ?Has habitat photo filename}}|600x420px|{{PAGENAME}} morphological documentation|class=hero-img|link=]]
| | | field = {{{field|}}} |
| |{{#if: {{#show: {{{1}}} | ?Has whole plant photo filename}} |
| |
| [[File:{{#show: {{{1}}} | ?Has whole plant photo filename}}|600x420px|{{PAGENAME}} phenotype documentation|class=hero-img|link=]]
| |
| |{{#if: {{#show: {{{1}}} | ?Has landscape photo filename}} |
| |
| [[File:{{#show: {{{1}}} | ?Has landscape photo filename}}|600x420px|{{PAGENAME}} habitat analysis|class=hero-img|link=]]
| |
| |
| |
| <div class="photo-placeholder">
| |
| <div class="placeholder-content">
| |
| <div class="placeholder-title">Morphological Documentation Protocol</div>
| |
| <div class="placeholder-subtitle">Standardized phenotypic characterization and habitat documentation preserves critical genetic heritage data for conservation analysis.</div>
| |
| <div class="placeholder-instruction">UPLOAD: Habitat documentation → Set "Has habitat photo filename"</div>
| |
| </div>
| |
| </div>
| |
| }}}}}}
| |
|
| |
|
| <div class="image-overlay">
| | | country = {{{country|}}} |
| <p class="image-caption">
| | | province = {{{province|}}} |
| [ACCESSION: {{PAGENAME}}] — In-situ cultivation documentation — Elevation: {{#show: {{{1}}} | ?Has elevation | default=DATA_MISSING}}
| | | district = {{{district|}}} |
| </p>
| | | locality = {{{locality|}}} |
| </div>
| |
| </div>
| |
|
| |
|
| <!-- Geographic Information System -->
| | | gps_coordinates = {{{gps_coordinates|}}} |
| <div class="hero-map">
| | | elevation = {{{elevation|}}} |
| <div class="map-container">
| |
| {{#if: {{#show: {{{1}}} | ?Has GPS coordinates}} |
| |
| <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: 420px; width: 100%;">
| |
| </div> | |
|
| |
| <!-- Research Data Overlay -->
| |
| <div class="map-legend">
| |
| <div class="legend-section">
| |
| <div class="legend-title">LOCATION</div>
| |
| <div class="legend-primary">{{#show: {{{1}}} | ?Has locality}}{{#if: {{#show: {{{1}}} | ?Has district}} |, {{#show: {{{1}}} | ?Has district}} }}</div>
| |
| <div class="legend-secondary">{{#show: {{{1}}} | ?Has province}}, {{#show: {{{1}}} | ?Has country}}</div>
| |
| </div>
| |
|
| |
| <div class="legend-section">
| |
| <div class="legend-title">COORDINATES</div>
| |
| <div class="legend-coords">{{#show: {{{1}}} | ?Has GPS coordinates}}</div>
| |
| </div>
| |
| </div>
| |
| |
| |
| <div style="color: #64748b; font-family: 'JetBrains Mono', monospace;">
| |
| [GIS_SYSTEM_OFFLINE]<br><small>GPS coordinates required for mapping</small>
| |
| </div>
| |
| }}
| |
| </div>
| |
| </div>
| |
| </div>
| |
|
| |
|
| <!-- ===== RESEARCH METADATA STRIP ===== -->
| | | primary_local_name = {{{primary_local_name|}}} |
| <div class="hero-details">
| | | vernacular_translation = {{{vernacular_translation|}}} |
| <div class="detail-group">
| |
| <div class="detail-label">COLLECTION_DATE</div>
| |
| <div class="detail-value">{{#show: {{{1}}} | ?Has collection date | default=NULL}}</div>
| |
| </div>
| |
|
| |
|
| <div class="detail-group">
| | | collection_date = {{{collection_date|}}} |
| <div class="detail-label">SAMPLE_TYPE</div>
| | | collector = {{{collector|}}} |
| <div class="detail-value">{{#show: {{{1}}} | ?Has collection type | default=NULL}}</div>
| | | collector_affiliation = {{{collector_affiliation|}}} |
| </div>
| | | collection_method = {{{collection_method|}}} |
| | | sample_size = {{{sample_size|}}} |
|
| |
|
| <div class="detail-group">
| | | cultivation_status = {{{cultivation_status|}}} |
| <div class="detail-label">CLASSIFICATION</div>
| | | conservation_priority = {{{conservation_priority|}}} |
| <div class="detail-value highlight">{{#show: {{{1}}} | ?Has classification | default=NULL}}</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">ELEVATION_MSL</div>
| | | seed_quantity = {{{seed_quantity|}}} |
| <div class="detail-value">{{#show: {{{1}}} | ?Has elevation | default=NULL}}</div>
| |
| </div>
| |
|
| |
|
| <div class="detail-group">
| | | last_updated = {{{last_updated|}}} |
| <div class="detail-label">RESEARCHER</div>
| | }} |
| <div class="detail-value">{{#show: {{{1}}} | ?Has collector | default=NULL}}</div>
| |
| </div>
| |
|
| |
|
| <div class="detail-group">
| | {{#set: |
| <div class="detail-label">INSTITUTION</div>
| | |Has accession ID={{{accession_id|}}} |
| <div class="detail-value">{{#show: {{{1}}} | ?Has collector affiliation | default=NULL}}</div>
| | |Has descriptive name={{{descriptive_name|{{PAGENAME}}}}} |
| </div>
| | |Has classification={{{classification|}}} |
| </div>
| | |Has collection type={{{collection_type|}}} |
| </div>
| | |Has sourcing type={{{sourcing_type|}}} |
| | | |Has documentation status={{{documentation_status|}}} |
| <!-- Research Documentation Sections -->
| | |Has gene pool={{{gene_pool|}}} |
| {{BotanicalDescription|{{{1}}}}}
| | |Has regional complex={{{regional_complex|}}} |
| {{EnvironmentalContext|{{{1}}}}}
| | |Has growing region={{{growing_region|}}} |
| | | |Has growing area={{{growing_area|}}} |
| </div>
| | |Has appellation={{{appellation|}}} |
| </includeonly>
| | |Has field={{{field|}}} |
| | |Has country={{{country|}}} |
| | |Has province={{{province|}}} |
| | |Has district={{{district|}}} |
| | |Has locality={{{locality|}}} |
| | |Has GPS coordinates={{{gps_coordinates|}}} |
| | |Has elevation={{{elevation|}}} |
| | |Has primary local name={{{primary_local_name|}}} |
| | |Has vernacular translation={{{vernacular_translation|}}} |
| | |Has collection date={{{collection_date|}}} |
| | |Has collector={{{collector|}}} |
| | |Has collector affiliation={{{collector_affiliation|}}} |
| | |Has collection method={{{collection_method|}}} |
| | |Has sample size={{{sample_size|}}} |
| | |Has cultivation status={{{cultivation_status|}}} |
| | |Has conservation priority={{{conservation_priority|}}} |
| | |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|}}} |
| | }} |