Jump to content

Template:Ecoregion Level 4: Difference between revisions

From PanEcoDevWiki
Created page with "<noinclude> {{#template_params:}} {{#cargo_declare:_table=Ecoregion_Level_4|=Page}} </noinclude><includeonly>{{#cargo_store:_table=Ecoregion_Level_4}} {{#template_display:_format=table}} Category:Ecoregion Level 4 </includeonly>"
 
No edit summary
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:}}
{{#template_params:
{{#cargo_declare:_table=Ecoregion_Level_4|=Page}}
|hasName={{{hasName|}}}
</noinclude><includeonly>{{#cargo_store:_table=Ecoregion_Level_4}}
|hasURL={{{hasURL|}}}
{{#template_display:_format=table}}
|hasID={{{hasID|}}}
|hasEcoregionID={{{hasEcoregionID|}}}
|hasLevel={{{hasLevel|}}}
|hasDescription={{{hasDescription|}}}
|hasBiologicalSetting={{{hasBiologicalSetting|}}}
|hasPhysicalSetting={{{hasPhysicalSetting|}}}
|hasCommunitySetting={{{hasCommunitySetting|}}}
|hasGeologySetting={{{hasGeologySetting|}}}
|hasClimate={{{hasClimate|}}}
|hasHydrology={{{hasHydrology|}}}
|hasGeology={{{hasGeology|}}}
|hasTopography={{{hasTopography|}}}
|isSubregionOf={{{isSubregionOf|}}}
|hasSubregion={{{hasSubregion|}}}
|hasParentEcoregion={{{hasParentEcoregion|}}}
|hasEcosystem={{{hasEcosystem|}}}
|hasEcosystemSummary={{{hasEcosystemSummary|}}}
|hasFootprint={{{hasFootprint|}}}
|hasGeography={{{hasGeography|}}}
|hasHydrography={{{hasHydrography|}}}
}}
{{#cargo_declare:_table=Ecoregion_Level_4
|hasName=String
|hasURL=URL
|hasID=String
|hasEcoregionID=String
|hasLevel=Integer
|hasDescription=Text
|hasBiologicalSetting=Text
|hasPhysicalSetting=Text
|hasCommunitySetting=Text
|hasGeologySetting=Text
|hasClimate=Text
|hasHydrology=Text
|hasGeology=Text
|hasTopography=Text
|isSubregionOf=List (,) of Page
|hasSubregion=List (,) of Page
|hasParentEcoregion=Page
|hasEcosystem=List (,) of Page
|hasEcosystemSummary=Text
|hasFootprint=Page
|hasGeography=List (,) of Page
|hasHydrography=List (,) of Page
}}
</noinclude><includeonly>
{{#cargo_store:_table=Ecoregion_Level_4
|hasName={{{hasName|}}}
|hasURL={{{hasURL|}}}
|hasID={{{hasID|}}}
|hasEcoregionID={{{hasEcoregionID|}}}
|hasLevel={{{hasLevel|}}}
|hasDescription={{{hasDescription|}}}
|hasBiologicalSetting={{{hasBiologicalSetting|}}}
|hasPhysicalSetting={{{hasPhysicalSetting|}}}
|hasCommunitySetting={{{hasCommunitySetting|}}}
|hasGeologySetting={{{hasGeologySetting|}}}
|hasClimate={{{hasClimate|}}}
|hasHydrology={{{hasHydrology|}}}
|hasGeology={{{hasGeology|}}}
|hasTopography={{{hasTopography|}}}
|isSubregionOf={{{isSubregionOf|}}}
|hasSubregion={{{hasSubregion|}}}
|hasParentEcoregion={{{hasParentEcoregion|}}}
|hasEcosystem={{{hasEcosystem|}}}
|hasEcosystemSummary={{{hasEcosystemSummary|}}}
|hasFootprint={{{hasFootprint|}}}
|hasGeography={{{hasGeography|}}}
|hasHydrography={{{hasHydrography|}}}
}}
 
{{#display_map:center={{#var:footprint}}|geojson={{#var:footprint}}|defzoom=20}}
 
{{#vardefine:footprint|{{{hasFootprint}}} }}
{{#vardefine:parent|{{{hasParentEcoregion}}}}}
 
{{#vardefine:grandparent|{{#cargo_query:tables=Ecoregion_Level_3|fields=hasParentEcoregion|where=_pageName='{{#var:parent}}'}} }}
 
 
{{#vardefine:greatgrandparent|{{#cargo_query:tables=Ecoregion_Level_2, Ecoregion_Level_3|join on=Ecoregion_Level_3.hasParentEcoregion=Ecoregion_Level_2._pageName|fields=Ecoregion_Level_2.hasParentEcoregion|where=Ecoregion_Level_2._pageName='{{#var:grandparent}}'}} }}
 
{{#var:parent}}
{{#var:grandparent}}
{{#var:greatgrandparent}}
 
<!---- 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%"
      |+Ecoregion Level {{{hasLevel|}}}
      | colspan=2 | {{{hasEcoregionID}}} - {{{hasName}}}
      |-
      ! colspan=2 | Region
      |-
      | {{#invoke:TrimArray|links|{{{isSubregionOf|}}}|form=Region}}
      |-
      ! colspan=2 | Parent Ecoregions
      |-
      | {{#invoke:TrimArray|links|{{{hasParentEcoregion|}}}|form=Ecoregion_Level_3}}
      |-
      ! colspan =2 | Child Ecosystems
      |-
      | {{#invoke:TrimArray|links|{{{hasEcosystem|}}}|form=Ecosystem}}
      |-
      ! 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|}}}
    <h1>Physical Setting</h1>
    {{{hasPhysicalSetting}}}
    <h1>Biological Setting</h1>
    {{{hasBiologicalSetting}}}
    <h1>Climate</h1>
    {{{hasClimate}}}
      </div>
</div>
 
 
 
[[Category:Ecoregion Level 4]]
[[Category:Ecoregion Level 4]]
[[Category:Ecoregions]]
</includeonly>
</includeonly>

Latest revision as of 19:31, 23 November 2025

This is the "Ecoregion Level 4" template.

It should be called in the following format:

{{Ecoregion Level 4
|hasName==
|hasURL==
|hasID==
|hasEcoregionID==
|hasLevel==
|hasDescription==
|hasBiologicalSetting==
|hasPhysicalSetting==
|hasCommunitySetting==
|hasGeologySetting==
|hasClimate==
|hasHydrology==
|hasGeology==
|hasTopography==
|isSubregionOf==
|hasSubregion==
|hasParentEcoregion==
|hasEcosystem==
|hasEcosystemSummary==
|hasFootprint==
|hasGeography==
|hasHydrography==
}}

Edit the page to see the template text.

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