Template:Location: Difference between revisions

From RESTORE
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 15: Line 15:
<div>{{#if: {{{Location|}}} | Location: [[Location::{{{Location}}}]] | Location: none specified}} <div style="float:right;">[[Special:FormEdit/Location/{{FULLPAGENAME}}|Edit location]]</div>
<div>{{#if: {{{Location|}}} | Location: [[Location::{{{Location}}}]] | Location: none specified}} <div style="float:right;">[[Special:FormEdit/Location/{{FULLPAGENAME}}|Edit location]]</div>
<!-- Preference is given to uploaded KML file -->
<!-- Preference is given to uploaded KML file -->
<!-- commented code
{{#if: {{{Location|}}} |
{{#if: {{{Location|}}} |
{{#if: {{{Kml file|}}}
{{#compound_query:[[Category:Case study]]{{Query field|Field name=Parent project|Value=Case_study:{{#titleparts:{{PAGENAME}}}}| }};?Project title;?Country;?Project status;?Theme;?Location;icon=Red_marker.png
|{{#display_points:{{{Location|}}}|zoom=14|height=365|icon=Red_marker.png|type=hybrid|gkml=https:{{filepath:{{{Kml file|}}} }} }}
|[[Category:Case study]][[Has multi-site::Yes]]{{Query field|Field name=Project title|Value={{#titleparts:{{PAGENAME}}}}| }};?Project title;?Country;?Project status;?Theme;?Location;icon=Green_marker.png
|{{#display_points:{{{Location|}}}|zoom=14|height=365|icon=Red_marker.png|type=hybrid|gkml={{{Kml path|}}} }}
|[[Category:Case study]][[Has multi-site::No]]{{Query field|Field name=Project title|Value={{#titleparts:{{PAGENAME}}}}| }};?Project title;?Country;?Project status;?Theme;?Location;icon=Red_marker.png
}}
}}-->
 
{{#if: {{{Location|}}} |
{{#compound_query:[[Category:Case study]]{{Query field|Field name=Parent project|Value=Case_study:{{PAGENAME}}| }};?Project title;?Country;?Project status;?Theme;?Location;icon=Red_marker.png
|[[Category:Case study]][[Has multi-site::Yes]]{{Query field|Field name=Project title|Value={{PAGENAME}}| }};?Project title;?Country;?Project status;?Theme;?Location;icon=green_marker.png
|[[Category:Case study]][[Has multi-site::No]]{{Query field|Field name=Project title|Value={{PAGENAME}}| }};?Project title;?Country;?Project status;?Theme;?Location;icon=Red_marker.png
|format=map
|format=map
|height=400
|height=400
|zoom=auto
|zoom=auto
|type=hybrid
|type=hybrid
|template=Case study location marker popup
|gkml={{#if: {{{Kml file|}}} | https:{{filepath:{{{Kml file|}}} }} | {{{Kml path|}}} }}
|gkml={{#if: {{{Kml file|}}} | {{filepath:{{{Kml file|}}} }} | {{{Kml path|}}} }}
|Showtitle=off
|Showtitle=off
|Template=Location map popup
}}
}}
}}
}}

Latest revision as of 13:12, 9 September 2024

This is the "Location" template. It should be called in the following format:

{{Location
|Location=
|Kml file=
|Kml path=
}}

Edit the page to see the template text.