|
|
| (6 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| <includeonly>
| | <templatestyles src="Template:Home/FeaturedRegionCard/styles.css" /> |
| <templatestyles src="Template:Infobox Growing Region/styles.css" /> | | <div class="fa-card"> |
| {| class="infobox lw-infobox lw-infobox--growing-region"
| | <div class="fa-media"> |
| |-
| | {{#if:{{{HeroImage|}}}| |
| ! colspan="2" class="lw-infobox__title" | {{{region_name|{{PAGENAME}}}}}
| | {{#ifexist:File:{{{HeroImage}}}| |
| |-
| | <span class="fa-img">[[File:{{{HeroImage}}}|640x360px|link=|alt={{{RegionName|{{{Page|Untitled region}}}}}}}]]</span> |
| {{#if:{{{other_name|}}}| | | | <span class="fa-img fa-img--placeholder">No image</span>}} |
| ! colspan="2" class="lw-infobox__subtitle" {{!}} {{{other_name}}}
| | | <span class="fa-img fa-img--placeholder">No image</span>}} |
| {{!}}-
| | </div> |
| }}
| | <div class="fa-body"> |
| {{#if:{{{image|}}}| | | <h3 class="fa-title"> |
| {{!}} colspan="2" class="lw-infobox__media" {{!}} [[File:{{{image}}}|320px|{{{image_caption|View of {{{region_name|{{PAGENAME}}}}}}}}]]
| | {{#ifexist:{{{Page|}}}| |
| {{!}}-
| | [[{{{Page}}}|{{{RegionName|{{{Page}}}}}}]] |
| {{#if:{{{image_caption|}}}|
| | | {{{RegionName|Untitled region}}} }} |
| {{!}} colspan="2" class="lw-infobox__caption" {{!}} {{{image_caption}}}
| | </h3> |
| {{!}}-
| | |
| }}
| | {{#if:{{{GPName|}}}| |
| }}
| | <p class="fa-kicker"><span class="k-item">{{{GPName}}}{{#if:{{{RegionalComplex|}}}| - {{{RegionalComplex}}}}}</span></p> |
| {{#if:{{{show_map|}}}|
| | }} |
| {{!}} 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>
| | |
| {{!}}-
| | {{#if:{{{Hook|}}}|<p class="fa-hook">{{{Hook}}}</p>}} |
| }}
| | |
| |-
| | <div class="fa-foot"> |
| ! class="lw-infobox__label" | Location
| | <p class="fa-statusline"> |
| | class="lw-infobox__value" | {{{location|{{{country|}}}}}}
| | <span class="status-pill sp--{{lc:{{{Status|unknown}}}}}" aria-label="Conservation status"> |
| |- | | <span class="pill-dot"></span> |
| {{#if:{{{coordinates|}}}|
| | <span class="pill-text">{{ucfirst:{{lc:{{{Status|Unknown}}}}}}}</span> |
| ! class="lw-infobox__label" {{!}} Coordinates
| | </span> |
| {{!}} class="lw-infobox__value" {{!}} {{{coordinates}}} | | <span class="pill pill--access" aria-label="Documented accessions"> |
| {{!}}-
| | <span class="pill-num">{{#ask:[[Category:Accessions]][[Has growing region::{{{Page|}}}]]|format=count}}</span> |
| }} | | <span class="pill-label">accessions</span> |
| {{#if:{{{gene_pool|}}}|
| | </span> |
| ! class="lw-infobox__label" {{!}} Gene Pool
| | </p> |
| {{!}} class="lw-infobox__value" {{!}} {{{gene_pool}}}
| | <div class="fa-foot-sep" role="presentation"></div> |
| {{!}}-
| | <p class="fa-cta"> |
| }}
| | {{#ifexist:{{{Page|}}}| |
| {{#if:{{{regional_complex|}}}| | | [[{{{Page}}}|→ View region]] |
| ! class="lw-infobox__label" {{!}} Regional Complex
| | | <span class="fa-missing">Profile coming soon</span> }} |
| {{!}} class="lw-infobox__value" {{!}} {{{regional_complex}}}
| | </p> |
| {{!}}-
| | </div> |
| }}
| | </div> |
| {{#if:{{{country|}}}| | | </div> |
| ! class="lw-infobox__label" {{!}} Country
| |
| {{!}} class="lw-infobox__value" {{!}} {{{country}}} | |
| {{!}}-
| |
| }}
| |
| {{#if:{{{provinces|}}}| | |
| ! class="lw-infobox__label" {{!}} Provinces/States
| |
| {{!}} class="lw-infobox__value" {{!}} {{{provinces}}} | |
| {{!}}-
| |
| }}
| |
| {{#if:{{{elevation_range|}}}|
| |
| ! class="lw-infobox__label" {{!}} Elevation Range
| |
| {{!}} class="lw-infobox__value" {{!}} {{{elevation_range}}}
| |
| {{!}}-
| |
| }}
| |
| {{#if:{{{area_extent|}}}|
| |
| ! class="lw-infobox__label" {{!}} Area
| |
| {{!}} class="lw-infobox__value" {{!}} {{{area_extent}}}
| |
| {{!}}-
| |
| }}
| |
| {{#if:{{{climate|}}}| | |
| ! class="lw-infobox__label" {{!}} Climate
| |
| {{!}} 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> | |