Template:Species: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (12 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#template_params:}} | {{#template_params: | ||
{{#cargo_declare:_table=Species}} | |hasID={{{hasID|}}} | ||
</noinclude><includeonly>{{#cargo_store:_table=Species}} | |hasURL={{{hasURL|}}} | ||
{{# | |hasName={{{hasName|}}} | ||
|hasBinomialName={{{hasBinomialName}}} | |||
|hasAlias={{{hasAlias|}}} | |||
|hasDescription={{{hasDescription|}}} | |||
|hasSpeciesType={{{hasSpeciesType|}}} | |||
|hasSpeciesTaxonomy={{{hasSpeciesTaxonomy|}}} | |||
|interactsWith={{{interactsWith|}}} | |||
|isPartOf={{{isPartOf|}}} | |||
|hasPart={{{hasPart|}}} | |||
|supports={{{supports|}}} | |||
|hasGeography={{{hasGeography|}}} | |||
|hasRange={{{hasRange|}}} | |||
|hasFootprint={{{hasFootprint|}}} | |||
|hasPart={{{hasPart|}}} | |||
|impacts={{{impacts|}}} | |||
|impactedBy={{{impactedBy|}}} | |||
}} | |||
{{#cargo_declare:_table=Species | |||
|hasID=String | |||
|hasURL=URL | |||
|hasName=String | |||
|hasBinomialName=String | |||
|hasAlias=List (,) of String | |||
|hasDescription=Text | |||
|hasSpeciesType=String | |||
|hasSpeciesTaxonomy= Page (hierarchy) | |||
|interactsWith= List (,) of Page | |||
|isPartOf=List (,) of Page | |||
|hasPart=List (,) of Page | |||
|supports=List (,) of Page | |||
|hasGeography=List (,) of Page | |||
|hasRange=Page | |||
|hasFootprint=Page | |||
|impacts=List (;) of Page | |||
|impactedBy=List (;) of Page | |||
}} | |||
</noinclude><includeonly> | |||
{{#cargo_store:_table=Species | |||
|hasID={{{hasID|}}} | |||
|hasURL={{{hasURL|}}} | |||
|hasName={{{hasName|}}} | |||
|hasBinomialName={{{hasBinomialName}}} | |||
|hasAlias={{{hasAlias|}}} | |||
|hasDescription={{{hasDescription|}}} | |||
|hasSpeciesType={{{hasSpeciesType|}}} | |||
|hasSpeciesTaxonomy={{{hasSpeciesTaxonomy|}}} | |||
|interactsWith={{{interactsWith|}}} | |||
|isPartOf={{{isPartOf|}}} | |||
|hasPart={{{hasPart|}}} | |||
|supports={{{supports|}}} | |||
|hasGeography={{{hasGeography|}}} | |||
|hasRange={{{hasRange|}}} | |||
|hasFootprint={{{hasFootprint|}}} | |||
|hasPart={{{hasPart|}}} | |||
|impacts={{{impacts|}}} | |||
|impactedBy={{{impactedBy|}}} | |||
}} | |||
{{#vardefine:range|{{{hasRange|}}}}} | |||
<!---- Main Div ----> | |||
<div style="overflow: hidden;"> | |||
<!-- Right column: Information table --> | |||
<div style="float: right; width: 33%; margin-left: 20px;"> | |||
<h1>Species Data</h1> | |||
<div> | |||
{| class="wikitable" style="width:100%" | |||
|+'''{{{hasName}}}''' - ''{{{hasBinomialName}}}'' | |||
|- | |||
! Range | |||
|- | |||
| {{#display_map:center={{#var:footprint}}|geojson={{#var:footprint}}|defzoom=20|width=300px}} | |||
|- | |||
! Taxonomy | |||
|- | |||
| {{#invoke:Taxonomy|renderTreeUL|{{{hasSpeciesTaxonomy|}}}|form=Species}} | |||
|- | |||
! Geography | |||
|- | |||
| {{#invoke:TrimArray|links|{{{hasGeography|}}}|alt_forms=Region, Topology, Geography}} | |||
|- | |||
! Hydrography | |||
|- | |||
| {{#invoke:TrimArray|links|{{{hasGeography|}}}|form=Hydrography}} | |||
|} | |||
</div> | |||
</div> | |||
<div style="max width: 100%;"> | |||
<h1>Description</h1> | |||
{{{hasDescription|}}} | |||
</div> | |||
</div> | |||
[[Category:Species]] | [[Category:Species]] | ||
{{#invoke:Cats|addCats | |||
|hasType={{{|hasType}}} | |||
|hasSpeciesType={{{hasSpeciesType}}} | |||
|hasClass={{{hasClass}}} | |||
|hasCategory={{{hasCategory}}} | |||
}} | |||
</includeonly> | </includeonly> | ||
Latest revision as of 17:26, 30 November 2025
This is the "Species" template.
It should be called in the following format:
{{Species
|hasID==
|hasURL==
|hasName==
|hasBinomialName={{{hasBinomialName}}}=
|hasAlias==
|hasDescription==
|hasSpeciesType==
|hasSpeciesTaxonomy==
|interactsWith==
|isPartOf==
|hasPart==
|supports==
|hasGeography==
|hasRange==
|hasFootprint==
|impacts==
|impactedBy==
}}
Edit the page to see the template text.
This template defines the table "Species". View table.