Difference between revisions of "Template:LegLine"
Jump to navigation
Jump to search
(pushed from fahl by wikipush) |
|||
| (14 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
| − | Template to create | + | 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 | ||
|from=fromLocationId | |from=fromLocationId | ||
|to=toLocationId | |to=toLocationId | ||
| + | |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> | </noinclude> | ||
| − | <includeonly>{{#ask: [[Loc id::{{{from}}}]] | + | <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> |
| − | |?Loc latlon | ||
| − | |format= | ||
| − | |mainlabel=- | ||
| − | |headers=hide}}{{#ask: [[Loc id::{{{to}}}]] | ||
| − | |?Loc latlon | ||
| − | |format= | ||
| − | |mainlabel=- | ||
| − | |headers=hide}} | ||
Latest revision as of 15: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 |