Jump to content

Module:OSM/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
replace unit test cases
attempt to run unit tests
Line 19: Line 19:
== Test values ==
== Test values ==


{{#invoke:OSM/tests|run}}
{{#invoke:OSM/testcases|test_etym}}
{{#invoke:OSM/testcases|test_wd}}


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Revision as of 21:51, 5 August 2015


Usage

{{#invoke:OSM|wd}}
{{#invoke:OSM|overpass}}
{{#invoke:OSM|etym}}

Parameters

  • display  : Text shown on outgoing link
  • link  : defaults to yes, but can be set to no for use in other templates
  • 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

Lua error in Module:OSM/testcases at line 5: attempt to call method 'preprocess_equals' (a nil value). Lua error in Module:OSM/testcases at line 11: attempt to call method 'preprocess_equals' (a nil value).