Difference between revisions of "Template:LegMap"

From BITPlan E-Bike Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]][[Leg from::+]]
+
<noinclude>
|?Leg from=<q>[[Loc id::{{{from|}}}]]|?Loc latlon|format=plain|mainlabel=-|headers=hide</q>
+
Template to display leg routes on OpenStreetMap.
|?Leg to=<q>[[Loc id::{{{to|}}}]]|?Loc latlon|format=plain|mainlabel=-|headers=hide</q>
+
=== Usage ===
|mainlabel=- |format=plain |headers=hide |sep=;}}
+
<pre>{{LegMap
 +
|center=cityName
 +
|zoom=12}}</pre>
 +
[[Category:Template]]
 +
</noinclude>
 +
<includeonly>{{#display_map:
 +
|lines={{#ask: [[-Has subobject::{{FULLPAGENAME}}]][[Leg from::+]]
 +
|?Leg from
 +
|?Leg to
 +
|format=template
 +
|template=LegLine
 +
|sep=;}}
 +
|center={{{center|Berlin}}}
 +
|zoom={{{zoom|12}}}
 +
|height=700
 +
|service=leaflet}}
 +
</includeonly>

Revision as of 15:58, 27 November 2024

Template to display leg routes on OpenStreetMap.

Usage

{{LegMap
|center=cityName
|zoom=12}}