This is an old revision of this page, as edited by Polyglot(talk | contribs) at 06:43, 15 August 2015(added a new method and the possiblity to define a MapCSS style). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.Revision as of 06:43, 15 August 2015 by Polyglot(talk | contribs)(added a new method and the possiblity to define a MapCSS style)
This module is rated as beta. It is considered ready for widespread use, but as it is still relatively new, it should be applied with some caution to ensure results are as expected.
Usage
Search Openstreetmap independently of wikidata tags
{{#invoke:OSM|overpass}}
Search Openstreetmap for items which have wikidata=Q....
{{#invoke:OSM|wd}}
Search Openstreetmap for items which have name:etymology:wikidata=Q....
{{#invoke:OSM|etym}}
Search Openstreetmap for items which have subject:wikidata=Q....
{{#invoke:OSM|subject}}
Search Openstreetmap for items which have artist:wikidata=Q....
{{#invoke:OSM|artist}}
Search Openstreetmap for items which have architect:wikidata=Q....
{{#invoke:OSM|architect}}
Search Openstreetmap for items which have operator:wikidata=Q....
{{#invoke:OSM|operator}}
Search Openstreetmap for items which have brand:wikidata=Q....
{{#invoke:OSM|brand}}
Search Openstreetmap for public transport lines related to the current article
{{#invoke:OSM|pt}}
Parameters
display : Text shown on outgoing link
link : defaults to yes, but can be set to no for use in other templates
timeout : defaults to 15 seconds, needs to be set higher for more complicated 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 : 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
run : defaults to yes. Use no if you want the user to be able to move the map or change the query before searching
style : it's possible to define a MapCSS style to presenet the result in a nicer way
Test values
1 of 10 tests failed.
test_brand
test_brand
Text
Expected
Actual
Y
{{#invoke:OSM|brand|id=Q3195848|display=Toon vestigingen op een kaart|style=node{ text: name; icon-image: url('https:/media/wikipedia/commons/0/07/Kewlox_logo.png'); icon-width: 32;} }}