Maps in Mediawiki

From Squirrel's Lair
Revision as of 22:04, 2022 November 11 by Ttenbergen (talk | contribs)

Mediawiki can be used with the Mediawiki Extension Maps to display maps with markers based on coordinates. These coordinates can be provided explicitly or through data, such as through Mediawiki Extension Cargo.

Maps via Cargo Displayformat

Cargo can format its query results in some unexpected ways, and one of them is as a map.

Maps extension

Maps extension with an inline Cargo query to set targets and a line

{{#display_map:

49.88086121609553, -97.13063599481808~WRC; 49.89959808249238, -97.14224677575343~North Forge
|lines= 49.89959808249238, -97.14224677575343:49.88086121609553, -97.13063599481808
 |copycoords=yes
 |resizable=on
 |layers=OpenStreetMap,Esri.WorldImagery 
 |height=200

}}


Encode locations in a cargo table to use them in queries

Template:Place defines Cargo Table Place.

Locations can be grabbed from Google Maps by right-clicking on an area and then clicking on the coordinates. They can be pasted into the Coordinates template paramater.

Here are the template calls (see edit view).


  • Cargo



  • Cargo