Difference between revisions of "Template:LegLine"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
Template to create Map line coordinates from leg's from/to locations. | 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 === | === Usage === | ||
<pre>{{LegLine | <pre>{{LegLine | ||
Line 7: | Line 12: | ||
|transport=transport | |transport=transport | ||
}}</pre> | }}</pre> | ||
+ | |||
+ | === Examples === | ||
+ | {| class="wikitable" | ||
+ | ! Parameters !! Example !! Output | ||
+ | |- | ||
+ | | Basic usage | ||
+ | | <pre>{{LegLine|from=nancy|to=meerbusch}}</pre> | ||
+ | | {{LegLine|from=nancy|to=meerbusch}} | ||
+ | |- | ||
+ | | With transport | ||
+ | | <pre>{{LegLine|from=nancy|to=meerbusch|transport=train}}</pre> | ||
+ | | {{LegLine|from=nancy|to=meerbusch|transport=train}} | ||
+ | |} | ||
+ | |||
[[Category:Template]] | [[Category:Template]] | ||
− | </noinclude><includeonly>{{#ask: [[Loc id::{{{from}}}]] | + | </noinclude> |
+ | <includeonly>{{#ask: [[Loc id::{{{from}}}]] | ||
|?Loc latlon | |?Loc latlon | ||
|format=template | |format=template | ||
Line 18: | Line 38: | ||
|template=LocFormat | |template=LocFormat | ||
|mainlabel=- | |mainlabel=- | ||
− | |headers=hide}}:{{{transport|}}} | + | |headers=hide}}{{#if:{{{transport|}}}|:{{{transport|}}}|}} |
</includeonly> | </includeonly> |
Revision as of 10:01, 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}} |
48.689858° N, 6.175906° E: 51.269222° N, 6.625467° E
|