Difference between revisions of "User:FippeBot/Distances/doc"

From Geohashing
(Documentation for User:FippeBot/Distances)
 
m
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
# The user's name
 
# The user's name
 
# The page where the distances shall be displayed
 
# The page where the distances shall be displayed
# A space-separated list of the modes of transportation that are used by the user. Currently, the following modes of transportation are available: {{User:FippeBot/Distances/modes}}.
+
# A space-separated list of the modes of transportation that are used by the user. Currently, the following modes of transportation are available: {{User:FippeBot/Distances/modes|list}}.
  
 
For example, a user named Fippe who would like the distances to be displayed at [[User:Fippe/Distances]] and who uses bikes, busses and trains to travel to geohashes would use the following entry: <code>#Fippe#User:Fippe/Distances#bike bus train</code>
 
For example, a user named Fippe who would like the distances to be displayed at [[User:Fippe/Distances]] and who uses bikes, busses and trains to travel to geohashes would use the following entry: <code>#Fippe#User:Fippe/Distances#bike bus train</code>
  
 
The script will only work if the <code>user categories</code> template on the expedition pages is in a single line with no spaces next to the <code>|</code> and the <code>=</code> characters, like in the above example.
 
The script will only work if the <code>user categories</code> template on the expedition pages is in a single line with no spaces next to the <code>|</code> and the <code>=</code> characters, like in the above example.
 
+
<includeonly>[[Category:Distances| ]]</includeonly>
 
----
 
----

Latest revision as of 12:39, 14 March 2022

When tagging your expeditions with {{user categories}}, there is an option to share the distances you travelled to reach the Geohash. An expedition by a user named Fippe who travelled 42 km by bike and 73 km by train may be tagged like this: {{user categories|user=Fippe|bike=42|train=73}}

If you want to have an overview of the distances you travelled to all your tagged expeditions, add an entry at this page, each entry in a new line. An entry consists of three #-separated columns in a line starting with a #:

  1. The user's name
  2. The page where the distances shall be displayed
  3. A space-separated list of the modes of transportation that are used by the user. Currently, the following modes of transportation are available: airmattress, bike, bus, car, ferry, foot, funicular, humanpoweredwatercraft, inlineskates, motorisedwatercraft, plane, subway, train, tram

.

For example, a user named Fippe who would like the distances to be displayed at User:Fippe/Distances and who uses bikes, busses and trains to travel to geohashes would use the following entry: #Fippe#User:Fippe/Distances#bike bus train

The script will only work if the user categories template on the expedition pages is in a single line with no spaces next to the | and the = characters, like in the above example.