Difference between revisions of "Template:LegLine"
Jump to navigation
Jump to search
| Line 28: | Line 28: | ||
[[Category:Template]] | [[Category:Template]] | ||
</noinclude> | </noinclude> | ||
| − | <includeonly>{{#if:{{{transport|}}}| | + | <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> |
Revision as of 09:16, 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 |