Difference between revisions of "Template:LegLine"

From BITPlan E-Bike Wiki
Jump to navigation Jump to search
(Created page with "<noinclude> Template to create OpenStreetMap line coordinates from leg's from/to locations. === Usage === <pre>{{LegLine |1=fromLocationId |2=toLocationId }}</pre> Category:...")
 
 
(12 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
=== Usage ===
 
=== Usage ===
 
<pre>{{LegLine
 
<pre>{{LegLine
|1=fromLocationId
+
|from=fromLocationId
|2=toLocationId
+
|to=toLocationId
 
}}</pre>
 
}}</pre>
 
[[Category:Template]]
 
[[Category:Template]]
</noinclude>
+
</noinclude><includeonly>{{#ask: [[Loc id::{{{from}}}]]  
<includeonly>{{#ask: [[Loc id::{{{1}}}]] |?Loc latlon |format=plain |mainlabel=- |headers=hide}} {{#ask: [[Loc id::{{{2}}}]] |?Loc latlon |format=plain |mainlabel=- |headers=hide}}</includeonly>
+
|?Loc latlon
 +
|format=template
 +
|template=LocFormat
 +
|mainlabel=-  
 +
|headers=hide}}:{{#ask: [[Loc id::{{{to}}}]]  
 +
|?Loc latlon
 +
|format=Template
 +
|template=LocFormat
 +
|mainlabel=-  
 +
|headers=hide}}:
 +
</includeonly>

Latest revision as of 07:32, 28 November 2024

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

Usage

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