Template:Location: Difference between revisions
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 --> | ||
{{#if: {{{Location|}}} | | {{#if: {{{Location|}}} | | ||
{{#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 | |||
|[[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 | |||
|[[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 | |||
{{#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= | |||
|[[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 | ||
|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.