Difference between revisions of "Template:LegMap"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
{{#ask:[[-Has subobject::{{FULLPAGENAME}}]] [[Leg from::+]][[Leg to::+]] | {{#ask:[[-Has subobject::{{FULLPAGENAME}}]] [[Leg from::+]][[Leg to::+]] | ||
|mainlabel=- | |mainlabel=- | ||
− | |?Leg from#coordinates | + | |?Leg from#coordinates=from |
− | |?Leg to#coordinates | + | |?Leg to#coordinates=to |
|format=template | |format=template | ||
|template=LegLine | |template=LegLine | ||
− | | | + | |named args=yes |
}} | }} | ||
{{#display_map: | {{#display_map: | ||
|lines={{#ask: [[-Has subobject::{{FULLPAGENAME}}]][[Leg from::+]] | |lines={{#ask: [[-Has subobject::{{FULLPAGENAME}}]][[Leg from::+]] | ||
|mainlabel=- | |mainlabel=- | ||
− | |?Leg from | + | |?Leg from#coordinates=from |
− | |?Leg to | + | |?Leg to#coordinates=to |
|format=template | |format=template | ||
|template=LegLine | |template=LegLine | ||
− | | | + | |named args=yes}} |
|center={{{center|Berlin}}} | |center={{{center|Berlin}}} | ||
|zoom={{{zoom|12}}} | |zoom={{{zoom|12}}} |
Revision as of 21:26, 27 November 2024
Template to display leg routes on OpenStreetMap.
Usage
{{LegMap |center=cityName |zoom=12}}