Template:Mine: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 85: | Line 85: | ||
| {{#invoke:TrimArray|links|form=Mineral|{{{extracts|}}}}} | | {{#invoke:TrimArray|links|form=Mineral|{{{extracts|}}}}} | ||
|- | |- | ||
!Location | !Location (cargo query) | ||
| {{#cargo_query:tables=Mine|fields=hasLocation|where=_pageName="{{PAGENAME}}"|format=map|height=300|width=200}} | | {{#cargo_query:tables=Mine|fields=hasLocation|where=_pageName="{{PAGENAME}}"|format=map|height=300|width=200}} | ||
|- | |- | ||
| Line 97: | Line 97: | ||
| {{#invoke:TrimArray|links|{{{hasInfrastructure}}}|form=Infrastructure}} | | {{#invoke:TrimArray|links|{{{hasInfrastructure}}}|form=Infrastructure}} | ||
|- | |- | ||
! Footprint Value | ! Footprint Value (display_map calling Geojson namespace directly) | ||
| {{#display_map:center=ArcticCordillera | geojson=ArcticCordillera}} | | {{#display_map:center=ArcticCordillera | geojson=ArcticCordillera}} | ||
|- | |- | ||
| Line 124: | Line 124: | ||
{{{hasDescription|}}} | {{{hasDescription|}}} | ||
<h1>Community</h1> | <h1>Community</h1> | ||
{{#display_map:center= | <pre>{{#display_map:center={{#var:location}}|geojson={{#var:footprint}}|{{#var:location}}}}</pre> | ||
footprint={{#var:footprint}} | {{#display_map:center={{#var:location}}|geojson={{#var:footprint}}|{{#var:location}}}} | ||
(called with var)footprint={{#var:footprint}} | |||
location={{#var:location}} | 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}} | {{#cargo_query:tables=Mine|fields=hasLocation|where=_pageName="{{PAGENAME}}"|format=map|height=300|width=200|defzoom=5}} | ||
{{#var:location}} | (called with var){{#var:location}} | ||
[[Category:Mines]] | [[Category:Mines]] | ||
</includeonly> | </includeonly> | ||
Revision as of 19:28, 30 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.