Maps in Mediawiki: Difference between revisions

From Squirrel's Lair
mNo edit summary
Line 1: Line 1:
Testing the functionality of [https://www.mediawiki.org/wiki/Extension:Cargo/Display_formats#Maps Cargo Displayformat Maps].  
This page is a test ground and demo for using maps in mediawiki.  


== Encode a location ==
[[Template:Place]] defines [https://wiki.squirrelslair.ca/index.php?title=Special:CargoTables/Place Cargo Table Place].
As per https://www.google.com/maps


North Forge's location is 49.89959808249238, -97.14224677575343
WRC's Location is 49.88086121609553, -97.13063599481808


Here are the template calls (see edit view).
== Display using Cargo Displayformat Maps ==
{{Place|
[https://www.mediawiki.org/wiki/Extension:Cargo/Display_formats#Maps Cargo Displayformat Maps]
| Name=North Forge
| Description=A place entry for testing
| Coordinates = 49.89959808249238, -97.14224677575343
}}
{{Place|
| Name=WRC
| Description=A place entry for testing
| Coordinates = 49.88086121609553, -97.13063599481808
}}
 
== Display a location as a map ==
* [https://openlayers.org/ Openlayers]
* [https://openlayers.org/ Openlayers]
{{#cargo_query: table=Place
{{#cargo_query: table=Place
Line 49: Line 32:
|height  = 300
|height  = 300
}} -->
}} -->
== Encode locations ==
[[Template:Place]] defines [https://wiki.squirrelslair.ca/index.php?title=Special:CargoTables/Place Cargo Table Place].
Locations can be grabbed from [https://www.google.com/maps 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).
{{Place|
| Name=North Forge
| Description=A place entry for testing
| Coordinates = 49.89959808249238, -97.14224677575343
}}
{{Place|
| Name=WRC
| Description=A place entry for testing
| Coordinates = 49.88086121609553, -97.13063599481808
}}

Revision as of 14:38, 2022 November 11

This page is a test ground and demo for using maps in mediawiki.


Display using Cargo Displayformat Maps

Cargo Displayformat Maps

Notes

  • parameters:
    • |icon = Squirrelslair 200.png - works, but poor visibility
  • googlemaps would require billing

Encode locations

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