Jump to content

Module:OSM/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Polyglot (talk | contribs) at 10:26, 5 August 2015 (added more options and changed linktext to display). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


Parameters

  • display  : Text shown on outgoing link
  • link  : defaults to yes, but can be set to no for use in other templates
  • wikidata  : defaults to yes, but can be set to no for more general Overpass queries
  • id  : can link to a 1 or more Q-numbers of wikidata items, defaults to the Q-number id of the calling page
  • query  : makes it possible to extend the query, which can be used to limit the search to highways or tombstones
  • prim  : specifies to only fetch node, way and/or relation primitives
  • coord  : coordinates and a zoom factor in this format: 47.0618984;15.4370248;17 from which a bbox will be determined.
  • limitToBBOX: defaults to yes. If coord is set the query is limited to the resulting bbox

Test values Module:OSM

Command Expected result Pass/Fail Result
OSM-objects with names referring to items
{{#invoke:OSM|etym|display=Kaart}} Kaart fail Kaart
several wikidata items
{{#invoke:OSM|wd|display=Vresse and Florenville|id=Q650206;Q713300}} Vresse and Florenville fail Vresse and Florenville
with coordinates, which means the search is restricted to a smaller area.
{{#invoke:OSM|wd|display=Church of Vresse|id=Q20748715|coord=49.71513;5.23446;14}} Kerk van Vresse fail Church of Vresse

Usage

{{#invoke:OSM|function_name}}