Jump to content

Template:Ecosystem: Difference between revisions

From PanEcoDevWiki
Created page with "<noinclude> {{#template_params:}} {{#cargo_declare:_table=Ecosystem|=Page}} </noinclude><includeonly>{{#cargo_store:_table=Ecosystem}} {{#template_display:_format=table}} Category:Ecosystems </includeonly>"
 
No edit summary
 
(48 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:}}
{{#template_params:
{{#cargo_declare:_table=Ecosystem|=Page}}
|hasName={{{hasName|}}}
</noinclude><includeonly>{{#cargo_store:_table=Ecosystem}}
|hasAlias={{{hasAlias|}}}
{{#template_display:_format=table}}
|hasID={{{hasID|}}}
|hasURL={{{hasURL|}}}
|hasEcosystemType={{{hasEcosystemType|}}}
|hasParentEcoregion={{{hasParentEcoregion|}}}
|adjoinsEcosystem={{{adjoinsEcosystem|}}}
|hasComponent={{{hasComponent|}}}
|hasSpecies={{{hasSpecies|}}}
|hasDescription={{{hasDescription|}}}
|hasSpecies={{{hasSpecies|}}}
|hasClimate={{{hasClimate|}}}
|hasSoils={{{hasSoils|}}}
|hasRangeDescription={{{hasRangeDescription|}}}
|hasGeology={{{hasGeology|}}}
|surroundsMine={{{surroundsMine|}}}
|surroundsOperation={{{surroundsOperation|}}}
|hasPopulation={{{hasPopulation|}}}
|hasGeography={{{hasGeography|}}}
|hasFootprint={{{hasFootprint|}}}
|providesResource={{{providesResource|}}}
|supportsCommunity={{{supportsCommunity|}}}
|impacts={{{impacts|}}}
|impactedBy={{{impactedBy|}}}
}}
{{#cargo_declare:_table=Ecosystem
|hasName=String
|hasAlias=List (,) of String
|hasID=String
|hasURL=URL
|hasEcosystemType=List (,) of String
|hasParentEcoregion=Page
|adjoinsEcosystem=List (,) of Page
|hasComponent=List (,) of Page
|hasSpecies=List (,) of Page
|hasDescription=Text
|hasSpecies=Text
|hasClimate=Text
|hasSoils=Text
|hasRangeDescription=Text
|hasGeology=List (,) of Page
|surroundsMine=List (,) of Page
|surroundsOperation=Page
|hasPopulation=Page
|hasGeography=Page
|hasFootprint=Page
|providesResource=List (,) of Page
|supportsCommunity=List (,) of Page
|impacts=List (,) of Page
|impactedBy=List (,) of Page
}}
</noinclude><includeonly>{{#cargo_store:_table=Ecosystem
|hasName={{{hasName|}}}
|hasAlias={{{hasAlias|}}}
|hasID={{{hasID|}}}
|hasURL={{{hasURL|}}}
|hasEcosystemType={{{hasEcosystemType|}}}
|hasParentEcoregion={{{hasParentEcoregion|}}}
|adjoinsEcosystem={{{adjoinsEcosystem|}}}
|hasComponent={{{hasComponent|}}}
|hasSpecies={{{hasSpecies|}}}
|hasDescription={{{hasDescription|}}}
|hasSpecies={{{hasSpecies|}}}
|hasClimate={{{hasClimate|}}}
|hasSoils={{{hasSoils|}}}
|hasRangeDescription={{{hasRangeDescription|}}}
|hasGeology={{{hasGeology|}}}
|surroundsMine={{{surroundsMine|}}}
|surroundsOperation={{{surroundsOperation|}}}
|hasPopulation={{{hasPopulation|}}}
|hasGeography={{{hasGeography|}}}
|hasFootprint={{{hasFootprint|}}}
|providesResource={{{providesResource|}}}
|supportsCommunity={{{supportsCommunity|}}}
|impacts={{{impacts|}}}
|impactedBy={{{impactedBy|}}}
}}
 
 
{{#display_map:center={{#var:footprint}}|geojson={{#var:footprint}}|defzoom=20}}
 
{{#vardefine:footprint|{{{hasFootprint}}} }}
{{#vardefine:parent|{{{hasParentEcoregion|}}} }}
 
{{#vardefine:grandparent|{{#cargo_query:tables=Ecoregion_Level_4|fields=hasParentEcoregion|where=_pageName='{{#var:parent}}' }} }}
 
{{#vardefine:greatgrandparent|{{#cargo_query:tables=Ecoregion_Level_3, Ecoregion_Level_4|join on=Ecoregion_Level_4.hasParentEcoregion=Ecoregion_Level_3._pageName|fields=Ecoregion_Level_3.hasParentEcoregion|where=Ecoregion_Level_3._pageName='{{#var:grandparent}}'}} }}
 
 
{{{hasParentEcoregion}}}
parent:{{#var:parent}}
grandparent:{{#var:grandparent}}
greatgrandparent:{{#var:greatgrandparent}}
 
 
{{#cargo_query:
|tables=Ecoregion_Level_3
|fields=_pageName
|where=hasParentEcoregion={{#var:grandparent}}
}}
 
 
 
<!---- Main Div ---->
<div style="overflow: hidden;">
<!-- Right column: Information table -->
    <div style="float: right; width: 33%; margin-left: 20px;">
    <h1>Ecoregion Data</h1> 
    <div>
      {| class="wikitable" style="width:100%"
      |+Ecosystem
      |-
      | colspan=2 | {{{hasID}}} - {{{hasName}}}
      |-
      ! colspan=2 | Population
      |-
      | {{#invoke:TrimArray|links|{{{hasPopulation|}}}|form=Population}}
      |-
      ! colspan=2 | Community
      |-
      | {{#invoke:TrimArray|links|{{{supportsCommunity|}}}|form=Community}}
      |-
      ! colspan=2 | Adjoins
      |-
      | {{#invoke:TrimArray|links|{{{adjoinsEcosystem|}}}|form=Ecosystem}}
      |-
      ! colspan=2 | Parent Ecoregions
      |-
      | {{#invoke:TrimArray|links|{{{hasParentEcoregion|}}}|form=Ecoregion_Level_4}}
      |-
      ! colspan =2 | Species Present
      |-
      | {{#invoke:TrimArray|links|{{{hasSpecies|}}}|form=Species}}
      |-
      ! Mines Present
      |-
      | {{#invoke:TrimArray|links|{{{surroundsMine|}}}|alt_forms=Mine}}
      |-
      ! Hydrography
      |-
      | {{#invoke:TrimArray|links|{{{hasGeography|}}}|form=Hydrography}}
      |}
    </div>
  </div>
  <div style="max width: 100%;">
    <h1>Description</h1>
    {{{hasDescription|}}}
    <h1>Soils</h1>
    {{{hasSoils|}}}
    <h1>Climate</h1>
    {{{hasClimate|}}}
      </div>
</div>
 
[[Category:Ecosystems]]
[[Category:Ecosystems]]
</includeonly>
</includeonly>

Latest revision as of 17:21, 23 November 2025

This is the "Ecosystem" template.

It should be called in the following format:

{{Ecosystem
|hasName==
|hasAlias==
|hasID==
|hasURL==
|hasEcosystemType==
|hasParentEcoregion==
|adjoinsEcosystem==
|hasComponent==
|hasSpecies==
|hasDescription==
|hasClimate==
|hasSoils==
|hasRangeDescription==
|hasGeology==
|surroundsMine==
|surroundsOperation==
|hasPopulation==
|hasGeography==
|hasFootprint==
|providesResource==
|supportsCommunity==
|impacts==
|impactedBy==
}}

Edit the page to see the template text.

This template defines the table "Ecosystem". View table.