Jump to content

Template:Mine: Difference between revisions

From PanEcoDevWiki
No edit summary
No edit summary
 
(177 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{#template_params:
<noinclude>{{#template_params:
|hasName={{{hasName|}}}
|hasName={{{hasName|}}}
|hasID={{{ID|}}}
|hasID={{{hasID|}}}
|hasURL={{{URL|}}}
|hasURL={{{hasURL|}}}
|hasAlias={{{Alias|}}}
|hasAlias={{{hasAlias|}}}
|hasMineStatus={{{MineStatus|}}}
|hasMineStatus={{{hasMineStatus|}}}
|hasMineType={{{MineType|}}}
|hasInfrastructure={{{hasInfrastructure|}}}
|hasDescription={{{Description|}}}
|hasMineType={{{hasMineType|}}}
|extracts={{{Mineral|}}}
|hasDescription={{{hasDescription|}}}
|isOwnedBy={{{Owner|}}}
|extracts={{{extracts|}}}
|isOwnedBy={{{isOwnedBy|}}}
|mines={{{mines|}}}
|mines={{{mines|}}}
|hasFootprint={{{Footprint|}}}
|hasFootprint={{{hasFootprint|}}}
|hasLocation={{{Location|}}}
|hasLocation={{{hasLocation|}}}
|isWithin={{{Community|}}}
|isWithinRegion={{{isWithinRegion|}}}
|hasProject={{{childProject|}}}
|hasProject={{{hasProject|}}}
|isPartOf={{{parentProject|}}}
|isPartOfProject={{{isPartOfProject|}}}
|isNear={{{Community|}}}
|isNearCommunity={{{isNearCommunity|}}}
|produces={{{Waste|}}}
|producesWaste={{{producesWaste|}}}
|isNear={{{Ecosystem|}}}
|isNearEcosystem={{{isNearEcosystem|}}}
|isWithin={{{Ecosystem|}}}
|isWithinEcosystem={{{isWithinEcosystem|}}}
}}
}}
{{#cargo_declare:_table=Mine
{{#cargo_declare:_table=Mine
Line 26: Line 27:
|hasAlias=List (,) of String
|hasAlias=List (,) of String
|hasMineStatus=String
|hasMineStatus=String
|hasInfrastructure=List (,) of String
|hasMineType=String
|hasMineType=String
|hasDescription=Text
|hasDescription=Text
Line 33: Line 35:
|hasFootprint=Page
|hasFootprint=Page
|hasLocation=Coordinates
|hasLocation=Coordinates
|isWithin=List (,) of Page
|isWithinRegion=List (,) of Page
|hasProject=List (,) of Page
|hasProject=List (,) of Page
|isPartOf=List (,) of Page
|isPartOfProject=List (,) of Page
|isNear=List (,) of Page
|isNearCommunity=List (,) of Page
|produces=List (,) of Page
|producesWaste=List (,) of Page
|isNear=List (,) of Page
|isNearEcosystem=List (,) of Page
|isWithin=List (,) of Page
|isWithinEcosystem=List (,) of Page
}}</noinclude>
}}</noinclude>
<includeonly>
<includeonly>
Line 48: Line 50:
|hasAlias={{{hasAlias|}}}
|hasAlias={{{hasAlias|}}}
|hasMineStatus={{{hasMineStatus|}}}
|hasMineStatus={{{hasMineStatus|}}}
|hasInfrastructure={{{hasInfrastructure|}}}
|hasMineType={{{hasMineType|}}}
|hasMineType={{{hasMineType|}}}
|hasDescription={{{hasDescription|}}}
|hasDescription={{{hasDescription|}}}
Line 55: Line 58:
|hasFootprint={{{hasFootprint|}}}
|hasFootprint={{{hasFootprint|}}}
|hasLocation={{{hasLocation|}}}
|hasLocation={{{hasLocation|}}}
|isWithin={{{isWithin|}}}
|isWithinRegion={{{isWithinRegion|}}}
|hasProject={{{hasProject|}}}
|hasProject={{{hasProject|}}}
|isPartOf={{{isPartOf|}}}
|isPartOfProject={{{isPartOfProject|}}}
|isNear={{{isNear|}}}
|isNearCommunity={{{isNearCommunity|}}}
|produces={{{produces|}}}
|producesWaste={{{producesWaste|}}}
|isNear={{{isNear|}}}
|isNearEcosystem={{{isNearEcosystem|}}}
|isWithin={{{isWithin|}}}
|isWithinEcosystem={{{isWithinEcosystem|}}}
}}
}}
<!-- Main Div -->
<!-- Main Div -->
{{#vardefine:footprint|{{#cargo_query:tables=Mine|fields=hasFootprint|where=_pageName="{{PAGENAME}}"}}|format=list|link=none|delimiter=\n}}
{{#vardefine:location|{{#cargo_query:tables=Mine|fields=hasLocation|where=_pageName="{{PAGENAME}}"}}}}
{{#display_map:center=ArcticCordillera | geojson=GeoJson:ArcticCordillera}}
<div style="overflow: hidden;">
<div style="overflow: hidden;">
<!-- Right column: Mine Information table -->
<!-- Right column: Mine Information table -->
     <div style="float: right; width: 25%; margin-left: 20px;">
     <div style="float: right; width: 33%; margin-left: 20px;">
     <h1>Mine Information</h1>   
     <h1>Mine Information</h1>   
     <div>
     <div>
       {| class="wikitable"
       {| class="wikitable"
      |+{{{hasMineStatus}}} Mine - {{{hasName}}}
       ! Name
       ! Name
       | {{{Name|}}}
       | {{{hasName|}}}
       |-
       |-
       ! Minerals
       ! Minerals
       | {{{Mineral|}}}
       | {{#invoke:TrimArray|links|form=Mineral|{{{extracts|}}}}}
      |-
      !Location (cargo query)
      | {{#cargo_query:tables=Mine|fields=hasLocation|where=_pageName="{{PAGENAME}}"|format=map|height=300|width=200}}  
       |-
       |-
       ! Owners
       ! Owners
       | {{{Owner|}}}
       | {{#invoke:TrimArray|links|{{{isOwnedBy|}}}|alt_forms=Person,Organization}}
       |-
       |-
       ! Status
       ! Status
       | {{{Status|}}}
       | {{#invoke:Bananas|hello}}
       |-
       |-
       ! Mining Technique
       ! Infrastucture
       | {{{Type|}}}
       | {{#invoke:TrimArray|links|{{{hasInfrastructure}}}|form=Infrastructure}}
       |-
       |-
       ! Value3
       ! Footprint Value (display_map calling Geojson namespace directly)
       | {{{Ecosystem|}}}
       | {{#display_map:center=ArcticCordillera | geojson=ArcticCordillera}}
       |-
       |-
       ! Value4
       ! Value4
       | {{{Waste|}}}
       |  
      |-
      !Test header cell
       |-
       |-
       ! Value5
       ! Value5
Line 110: Line 125:
   <div style="max width: 100%;">
   <div style="max width: 100%;">
     <h1>Description</h1>
     <h1>Description</h1>
     {{{Description|}}}
     {{{hasDescription|}}}
     <h1>Community</h1>
     <h1>Community</h1>
    {{{Community_Setting|}}}
  <pre>{{#display_map:71.9693888889,-82.3259722222|geojson=GeoJson:ArcticCordillera|center=71.9693888889,-82.3259722222}}</pre>
  {{#display_map:71.9693888889,-82.3259722222|geojson=GeoJson:ArcticCordillera|center=71.9693888889,-82.3259722222}}
    (called with var)footprint={{#var:footprint}}location={{#var:location}}
     </div>
     </div>
</div>
</div>
(cargo query)
{{#cargo_query:tables=Mine|fields=hasLocation|where=_pageName="{{PAGENAME}}"|format=map|height=300|width=200|defzoom=5}}
(called with var){{#var:location}}
{{#display_map:{{#var:location}}|geojson={{#var:footprint}}|center={{#var:location}}}}
(with location coords)
{{#display_map:71.9693888889,-82.3259722222 }}





Latest revision as of 00:02, 31 October 2025

This is the "Mine" template.

It should be called in the following format:

{{Mine
|hasName==
|hasID==
|hasURL==
|hasAlias==
|hasMineStatus==
|hasInfrastructure==
|hasMineType==
|hasDescription==
|extracts==
|isOwnedBy==
|mines==
|hasFootprint==
|hasLocation==
|isWithinRegion==
|hasProject==
|isPartOfProject==
|isNearCommunity==
|producesWaste==
|isNearEcosystem==
|isWithinEcosystem==
}}

Edit the page to see the template text.

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