(Putting my ca.wiki volunteer hat on)

There is a very old template in ca.wiki about mountain huts [1]. It basically looks and works as it looked and worked in 2007. I'm thinking that it is perhaps a good opportunity to try something I have been wanting to try for a long time: embed a map in a template.

I'm more or less aware how you can do this with Template:Geobox or similar systems relying on collections of maps to put a dot on. However, I was wondering what is the state of the art in the times of Lua, OSM, and Wikidata. Is it possible to have something like this

* Editor introduces geolocation coordinates and saves.
* The right OSM tile is chosen based on the coordinates, showing e.g. the 50km surrounding the place.
* If users clicks the map, they jump to an actual map where they can zoom etc. Or at least a bigger and more detailed static image showing, say, a 200 km range.

If none of this exists yet, which template would you recommend using today, and what project should I look at for new releases in this direction?

Thank you.

[1] https://ca.wikipedia.org/wiki/Plantilla:Refugi


--
Quim Gil
Engineering Community Manager @ Wikimedia Foundation
http://www.mediawiki.org/wiki/User:Qgil