User:Bjohas/OSMgadget

= A Mediawiki gadget to pull in OSM data. =

This mediawiki gadget adds an unattractive box below the sitenotice, that may or may not display related information from httpː//www.openstreetmap.org. It looks like thisː



Report an issue
Report an issue hereː User_talk:Bjohas/OSMgadget or here https://github.com/bjohas/OSM-Wikipedia-Monkey/issues

Code

 * See https://github.com/bjohas/OSM-Wikipedia-Monkey for first version.
 * Current code: User:Bjohas/common.js

Installation
To install this script, go to the wikipedia on which you want to run it, and then go to "USERPAGE/common.js", e.g. this is my USERPAGE/common.js on wikipedia: https://en.wikipedia.org/wiki/User:Bjohas/common.js. You page will be https://en.wikipedia.org/wiki/User:SOMEBODY/common.js.

Copy this text to the page: /* Code available at https://www.mediawiki.org/wiki/User:Bjohas/common.js Documentation available at https://www.mediawiki.org/wiki/User:Bjohas/OSMgadget mw.loader.load("//www.mediawiki.org/w/index.php?title=User:Bjohas/common.js&action=raw&ctype=text/javascript"); (Strictly speaking you don't need the comment, but it helps others find the script.) You'll need to do this on each wikipedia where you want to use it.