Template:KlumbumbusTestTemplate/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

Introduction

This is a template by User:Klumbumbus just for testing changes in existing templates to not brake them.

Usage

Parameter Description Additional hints
Required parameter (to define the area)   use only one of these four  
name The name of the administrative boundary in which you want to search for Stolpersteine e.g. the name of your town or city. You need to replace spaces by a plus sign, e.g. name=Frankfurt+am+Main
relation The OSM-ID of a relation which defines an area, e.g. the OSM-ID of the administrative boundary relation of your town or city.
way The OSM-ID of a way which defines an area. This works only for closed ways which also have a name. For further information see here.
coordinates You can specify a custom area with three or more points. Type for each point lat and lon seperated by a plus sign (+). Use a dot (.) as decimal separator. Example: coordinates=50.0+7.0+51.0+7.0+51.0+8.0
Optional parameters
admin_level This defines the number of the admin_level of the administrative boundary. Use this only together with name. You can use this if you don't get the correct result by just adding the name, e.g because of several towns with the same name. Alternatively you can use relation, way or coordinates.
lg The language of the mouseover text of the link. Currently beside english only german (de) is supported. Please let me know if you want to add your language to the template, or add it yourself if you are familiar with template editing.
  • de results in: "Stolpersteine {{{ in name }}} mit Overpass turbo suchen und anzeigen"
  • If unset by default english is used which is "Search and display Stolpersteine {{{ in name }}} with Overpass turbo".
icon If set to "yes" Overpass turbo will display a Stolpersteinicon.png Stolperstein icon for each Stolperstein. You can also enter the URL of any other icon. If you don't want to display an icon do not set icon=no but ommit the icon parameter completely. The default blue circle with yellow fill is used then.
text This will add a text label to each Stolperstein. The text is the value of the osm-key you define in this parameter. Examples: If you set text=name then the text label shows the name of the Stolperstein. If you set text=memorial:ref, then the text label shows the value of memorial:ref of the Stolperstein.
display area If set to yes, the map will also show the area in which the Stolpersteine were searched. If you use this and export the data to an external editor (e.g. JOSM), you will not just export the Stolperstein nodes, but also the complete area relation with all its ways with all their nodes! Also note that if you use this the number of POIs shown down right in the corner of the Overpass turbo map is no longer the number of Stolpersteine! There are also counted nodes of the area relation which have at least one tag (these nodes are hidden on the map for better view). With this parameter you can check if the area in which Overpass api searches for Stolpersteine is correct. For example if you use name=Berlin|display area=yes Search and display Stolpersteine in Berlin with Overpass turbo, you will see, that beside the capital of germany there are also some cities in the USA, with the name Berlin (you may check Don't display small features as POIs in the settings of Overpass turbo to see these areas on low zoom). In this case Overpass api searches also in these areas. To avoid this you can either add admin_level=4 Search and display Stolpersteine in Berlin with Overpass turbo or use relation=62422 Search and display Stolpersteine with Overpass turbo instead of name. This parameter does not work if you use coordinates.
run on load If set to "no" the query will not run automatically, when you click on the link. If the query runs automatically on load and it finds data, then also the map automatically jumps to the position of the data. Otherwise you need to set lat/lon/zoom or the user needs to use the zoom to data button after manually running the query. This parameter is ignored if fullscreen=yes is set.
lat The latitude. If you do not automatically run on load, you can specify the latitude of the center of the shown map. If you use this you also need to use lon and zoom. This parameter is ignored if fullscreen=yes is set.
lon The longitude. If you do not automatically run on load, you can specify the longitude of the center of the shown map. If you use this you also need to use lat and zoom. This parameter is ignored if fullscreen=yes is set.
zoom The zoom level. If you do not automatically run on load, you can specify the zoom level of the shown map. If you use this you also need to use lat and lon. This parameter is ignored if fullscreen=yes is set.
fullscreen If set to "yes" the query will load on a fullscreen map. This means all the overpass turbo buttons and the side panel with the query code are hidden. The query always runs automatically on load because there is no run button.
json If set to "yes" the output data will be in json format instead of xml. If you want to export the data to JOSM you need the xml format. This parameter is not useful in combination with fullscreen since there is no export button on fullscreen map.
meta If set to "no" the tool tip which appears when you click on a Stolperstein in Overpass turbo will not display the meta data of the node. Meta data is: timestamp, version, changeset, user name and user id.
date Instead searching for Stolpersteine in the current state of the database, you can specify a date in the past. Example: 2012-09-14T15:00:00Z This processes the query as if it were posed on 14th September 2012 at 15:00.
diff1 This parameter lets the database determine the difference of two queries at different points in the past. Example: 2013-12-12T15:00:00Z This processes the query as if it were posed on 12th December 2013 at 15:00, then processes the same query with current data and finally outputs the difference between the two results. If you want to use a second date in the past instead of the comparison with the current state, then use the parameter diff2 for the second date. Note that you will not be able to export the received data to JOSM.
diff2 The Second date in the past. If unset, then diff1 will use the current state as second date. Example: 2013-12-15T15:00:00Z Together with diff1=2013-12-12T15:00:00Z this processes the query as if it were posed on 12th December 2013 at 15:00, then processes the same query as if it were posed on 14th December 2013 at 15:00 and finally outputs the difference between the two results. Note that you will not be able to export the received data to JOSM. You can use this for example if you just want to display the Stolpersteine of the last laying.
adiff1 Similar to diff2. The adiff does basically the same like diff, but for all elements that aren't contained in the newer result, it is indicated what happened to them. This is printed if you switch from map tab do data tab top right in Overpass turbo. If an element has been deleted, then its last deletion date is printed and the indication "visible=false". If an element has changed such that it no longer matches the query then its last change date is printed and the indication "visible=true". This does not work for json as output format.
adiff2 Similar to diff2.

Examples

Code Result Description
{{KlumbumbusTestTemplate|name=Chemnitz}} Search and display Stolpersteine in Chemnitz with Overpass turbo use of name
{{KlumbumbusTestTemplate|name=Frankfurt+am+Main}} Search and display Stolpersteine in Frankfurt+am+Main with Overpass turbo name with spaces
{{KlumbumbusTestTemplate|name=Chemnitz|admin_level=6}} Search and display Stolpersteine in Chemnitz with Overpass turbo use of name and admin_level
{{KlumbumbusTestTemplate|relation=62594}} Search and display Stolpersteine with Overpass turbo use of relation
{{KlumbumbusTestTemplate|way=35460156}} Search and display Stolpersteine with Overpass turbo use of way
{{KlumbumbusTestTemplate|coordinates=50.0+7.0+51.0+7.0+51.0+8.0}} Search and display Stolpersteine with Overpass turbo use of coordinates
{{KlumbumbusTestTemplate|name=Chemnitz|lg=de}} Stolpersteine in Chemnitz mit Overpass turbo suchen und anzeigen german mouse over text of the link
{{KlumbumbusTestTemplate|name=Chemnitz|icon=yes}} Search and display Stolpersteine in Chemnitz with Overpass turbo with Stolpersteinicon.png Stolperstein icon
{{KlumbumbusTestTemplate|name=Chemnitz|icon=https://openclipart.org/download/25597/Circle.svg}} Search and display Stolpersteine in Chemnitz with Overpass turbo with custom icon
{{KlumbumbusTestTemplate|name=Chemnitz|text=name}} Search and display Stolpersteine in Chemnitz with Overpass turbo with name as text label
{{KlumbumbusTestTemplate|name=Chemnitz|display area=yes}} Search and display Stolpersteine in Chemnitz with Overpass turbo area is also displayed
{{KlumbumbusTestTemplate|name=Chemnitz|run on load=no}} Search and display Stolpersteine in Chemnitz with Overpass turbo no auto run
{{KlumbumbusTestTemplate|relation=62594|run on load=no|lat=50.84|lon=12.9|zoom=11}} Search and display Stolpersteine with Overpass turbo no auto run with defined lat, lon and zoom
{{KlumbumbusTestTemplate|relation=62594|fullscreen=yes}} Search and display Stolpersteine with Overpass turbo fullscreen map
{{KlumbumbusTestTemplate|relation=62594|json=yes}} Search and display Stolpersteine with Overpass turbo output format json
{{KlumbumbusTestTemplate|relation=62594|meta=no}} Search and display Stolpersteine with Overpass turbo no meta data
{{KlumbumbusTestTemplate|relation=62594|date=2012-09-14T15:00:00Z}} Search and display Stolpersteine with Overpass turbo with old date
{{KlumbumbusTestTemplate|relation=62594|diff1=2013-12-12T15:00:00Z|diff2=2013-12-14T15:00:00Z}} Search and display Stolpersteine with Overpass turbo difference between two dates
{{KlumbumbusTestTemplate|relation=62594|icon=yes|lg=de|text=name|display area=yes|meta=no}} Stolpersteine mit Overpass turbo suchen und anzeigen combination of several parameters
The following are just for debugging!
{{KlumbumbusTestTemplate|name=Chemnitz|text=memorial:type}} Search and display Stolpersteine in Chemnitz with Overpass turbo memorial:type as text
{{KlumbumbusTestTemplate|relation=62594|fullscreen=yes|icon=yes}} Search and display Stolpersteine with Overpass turbo relation+fullscreen+icon
{{KlumbumbusTestTemplate|relation=62594|fullscreen=yes|icon=yes|run on load=no}} Search and display Stolpersteine with Overpass turbo relation+fullscreen+icon+no auto run
{{KlumbumbusTestTemplate|relation=62594|fullscreen=yes|run on load=no}} Search and display Stolpersteine with Overpass turbo relation+fullscreen+no auto run
{{KlumbumbusTestTemplate|name=Chemnitz|admin_level=6|icon=yes|run on load=no}} Search and display Stolpersteine in Chemnitz with Overpass turbo name+admin_level+icon+no auto run
{{KlumbumbusTestTemplate|relation=62594|lg=de}} Stolpersteine mit Overpass turbo suchen und anzeigen relation+lg=de
{{KlumbumbusTestTemplate|name=Praha|admin_level=8|lg=en}} Search and display Stolpersteine in Praha with Overpass turbo lg=en
{{KlumbumbusTestTemplate|name=Praha|admin_level=8|lg=xyz}} Search and display Stolpersteine in Praha with Overpass turbo lg=xyz
{{KlumbumbusTestTemplate|name=Chemnitz|admin_level=6|icon=no}} Search and display Stolpersteine in Chemnitz with Overpass turbo icon=no
{{KlumbumbusTestTemplate|relation=62594|icon=yes|lat=51.12|lon=8.8|zoom=11}} Search and display Stolpersteine with Overpass turbo icon+lat/lon/zoom
{{KlumbumbusTestTemplate|relation=62594|icon=yes|lat=51.12|lon=8.8}} Search and display Stolpersteine with Overpass turbo missing zoom
{{KlumbumbusTestTemplate|name=Chemnitz|admin_level=6|display area=yes}} Search and display Stolpersteine in Chemnitz with Overpass turbo name+admin_level+display area
{{KlumbumbusTestTemplate|relation=62594|display area=yes}} Search and display Stolpersteine with Overpass turbo relation+display area
{{KlumbumbusTestTemplate|way=35460156|display area=yes}} Search and display Stolpersteine with Overpass turbo way+display area
{{KlumbumbusTestTemplate|coordinates=50.0+7.0+51.0+7.0+51.0+8.0+52.0+8.0+52.0+9.0}} Search and display Stolpersteine with Overpass turbo 5 coordinates
{{KlumbumbusTestTemplate|relation=62594|json=yes|fullscreen=yes}} Search and display Stolpersteine with Overpass turbo json+fullscreen
{{KlumbumbusTestTemplate|relation=62594|meta=no|fullscreen=yes}} Search and display Stolpersteine with Overpass turbo no meta+fullscreen
{{KlumbumbusTestTemplate|relation=62594|diff1=2013-12-12T15:00:00Z}} Search and display Stolpersteine with Overpass turbo only diff1
{{KlumbumbusTestTemplate|relation=62594|diff1=2013-12-12T15:00:00Z|diff2=2013-12-14T15:00:00|json=yes}} Search and display Stolpersteine with Overpass turbo diff and json
{{KlumbumbusTestTemplate|relation=62594|adiff1=2014-08-21T12:00:00Z}} Search and display Stolpersteine with Overpass turbo only adiff1
{{KlumbumbusTestTemplate|relation=62594|adiff1=2014-08-21T12:00:00Z|adiff2=2014-08-22T12:00:00Z}} Search and display Stolpersteine with Overpass turbo adiff1 and adiff2
{{KlumbumbusTestTemplate|relation=62594|icon=yes|lg=de|text=name|display area=yes|meta=no|fullscreen=yes}} Stolpersteine mit Overpass turbo suchen und anzeigen combination of several parameters on fullscreen map