Difference between revisions of "Template:Show gpx"

From BITPlan E-Bike Wiki
Jump to navigation Jump to search
Line 3: Line 3:
  
 
Usage:
 
Usage:
* {{Show_gpx|gpx=File:Example.gpx}}
+
<pre>
 +
{{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx}}
 +
</pre>
  
 
Parameters:
 
Parameters:
* gpx: URL or path to GPX file (required)
+
* gpx: URL to GPX file (required)
  
 
Example:
 
Example:
{{Show_gpx|gpx=File:Example.gpx}}
+
{{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx}}
 
</noinclude>
 
</noinclude>
 
<includeonly><html>
 
<includeonly><html>
Line 19: Line 21:
 
     marginheight="0"  
 
     marginheight="0"  
 
     marginwidth="0"  
 
     marginwidth="0"  
     src="https://www.gpsvisualizer.com/atlas/map?url=?gpx={{{gpx|}}}">
+
     src="https://www.gpsvisualizer.com/atlas/map?url={{{gpx|}}}">
 
</iframe>
 
</iframe>
 
</html></includeonly>
 
</html></includeonly>

Revision as of 08:44, 18 January 2025

This template embeds a GPX track viewer.

Usage:

{{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx}}

Parameters:

  • gpx: URL to GPX file (required)

Example: