Difference between revisions of "Template:Tracklog"

From Geohashing
(Created page with "<noinclude>Experimental template for embedding GPX tracklogs. Do not use (yet)!</noinclude><includeonly> {{filepath:{{{1}}}}} </includeonly>")
 
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>Experimental template for embedding GPX tracklogs. Do not use (yet)!</noinclude><includeonly>
+
<noinclude>
{{filepath:{{{1}}}}}
+
== Tracklog embedding ==
 +
If your GPSr records a tracklog in GPX format, you can embed it on your expedition page. It looks like this:
 +
{{tracklog | 2019-08-01_51_-1_Geohashing_expedition.gpx}}
 +
== How to use ==
 +
# [[Special:Upload|Upload your GPX file]]. Give it a suitable name e.g. <code>2020-02-24 51 -1 Dan's expedition.gpx</code>
 +
# On your expedition page, enter <code><nowiki>{{tracklog | 2020-02-24 51 -1 Dan's expedition.gpx}}</nowiki></code> (substitute your own filename)
 +
 
 +
Note that this only works with GPX files uploaded to the wiki; you can't use GPX files you've hosted elsewhere in this way.
 +
 
 +
[[Category:Templates]]</noinclude><includeonly>{{#if:{{{1|}}}|{{#ifexist:File:{{{1}}}|<tracklog src="{{filepath:{{{1}}}}}"></tracklog>{{#switch:{{NAMESPACENUMBER}}|0=[[Category:Expeditions with tracklogs]]|6=[[Category:Tracklog]]}}|[[:File:{{{1}}}]] does not exist. [{{canonicalurl:{{FULLPAGENAME}}|action=purge}} Reload?][[Category:Pages with broken file links]]}}|<span class="error">Use the [[Template:Tracklog|tracklog template]] like this: <code><nowiki>{{tracklog|Name of the tracklog file.gpx}}</nowiki></code></span>}}
 +
{{#ifeq:{{{1}}}|{{PAGENAME}}|==Pages using this tracklog==
 +
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=6|invert=1}}}}
 
</includeonly>
 
</includeonly>

Latest revision as of 10:22, 13 January 2022

Tracklog embedding

If your GPSr records a tracklog in GPX format, you can embed it on your expedition page. It looks like this:


How to use

  1. Upload your GPX file. Give it a suitable name e.g. 2020-02-24 51 -1 Dan's expedition.gpx
  2. On your expedition page, enter {{tracklog | 2020-02-24 51 -1 Dan's expedition.gpx}} (substitute your own filename)

Note that this only works with GPX files uploaded to the wiki; you can't use GPX files you've hosted elsewhere in this way.