Difference between revisions of "Template:LegLine"

From BITPlan E-Bike Wiki
Jump to navigation Jump to search
(pushed from fahl by wikipush)
 
(4 intermediate revisions by the same user not shown)
Line 28: Line 28:
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>
<includeonly>{{#ask: [[Loc id::{{{from}}}]]|?Loc latlon|format=template|template=LocFormat|mainlabel=-|headers=hide}}|{{#ask: [[Loc id::{{{to}}}]]|?Loc latlon|format=Template|template=LocFormat|mainlabel=-|headers=hide}}{{#if:{{{transport|}}}|;{{{transport}}}|}}</includeonly>
+
<includeonly>{{#if:{{{transport|}}}|By {{{transport}}}→|}}{{#ask: [[Loc id::{{{from}}}]]|?Loc latlon|format=template|template=LocFormat|format=float|directional=no|mainlabel=-|headers=hide}},{{#ask: [[Loc id::{{{to}}}]]|?Loc latlon|format=Template|template=LocFormat|format=float|directional=no|mainlabel=-|headers=hide}}</includeonly>

Latest revision as of 16:38, 19 January 2025

Template to create Map line coordinates from leg's from/to locations.

Parameters

  • from: Starting location ID (required)
  • to: Ending location ID (required)
  • transport: Mode of transport (optional)

Usage

{{LegLine
|from=fromLocationId
|to=toLocationId
|transport=transport
}}

Examples

Parameters Example Output
Basic usage
{{LegLine|from=nancy|to=meerbusch}}

48.689858° N, 6.175906° E, 51.269222° N, 6.625467° E

With transport
{{LegLine|from=nancy|to=meerbusch|transport=train}}

By train→ 48.689858° N, 6.175906° E, 51.269222° N, 6.625467° E