Difference between revisions of "Template:LegLine"

From BITPlan E-Bike Wiki
Jump to navigation Jump to search
Line 3: Line 3:
 
=== Usage ===
 
=== Usage ===
 
<pre>{{LegLine
 
<pre>{{LegLine
|from=fromLocationId
+
|1:fromLocationId
|to=toLocationId
+
|2:toLocationId
 
}}</pre>
 
}}</pre>
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>
<includeonly>{{#ask: [[Loc id::{{{from}}}]]  
+
<includeonly>{{#ask: [[Loc id::{{{1}}}]]  
 
|?Loc latlon #
 
|?Loc latlon #
 
|format=plain  
 
|format=plain  
 
|mainlabel=-  
 
|mainlabel=-  
|headers=hide}}{{#ask: [[Loc id::{{{to}}}]]  
+
|headers=hide}}{{#ask: [[Loc id::{{{2}}}]]  
 
|?Loc latlon #
 
|?Loc latlon #
 
|format=plain  
 
|format=plain  
 
|mainlabel=-  
 
|mainlabel=-  
 
|headers=hide}}</includeonly>
 
|headers=hide}}</includeonly>

Revision as of 16:21, 27 November 2024

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

Usage

{{LegLine
|1:fromLocationId
|2:toLocationId
}}