Difference between pages "Geeks on a Train" and "Category:Pages with a map rendered by the Maps extension"

From LCA2015 Delegate wiki
(Difference between pages)
Jump to: navigation, search
(Taumaranui on the Main Trunk Line (song) + list of nz train songs)
 
(Created this auto-requested page for the Maps extension, as a guide to using this extension.)
 
Line 1: Line 1:
KiwiRail's Northern Explorer is a well-known scenic train journey that operates three days a week from Auckland to Wellington.
+
== About the Maps extension for MediaWiki ==
 +
The LCA2015 Delegate Wiki is embedding interactive maps directly onto wiki pages, to make it more convenient for delegates to find relevant locations without having to leave the wiki. This facility is provided via the [[mw:Extension:Maps|Maps]] Extension for MediaWiki.
  
A group of intrepid LCA delegates are taking the train down on Saturday 17 January.
+
== Why only Google Maps are showing ==
 +
Our hacking on the Maps extension so far has shown that without the added support of the full [[mw:Extension:Semantic_MediaWiki|Semantic MediaWiki]] (SMW) installation, the Maps extension works sufficiently, but only with Google Maps. To enable the full featureset of the Maps extension would require installing SMW, which seems extreme for what we need here. While the openness and freedom of OpenStreetMap would be more in keeping with the ethos of Linux and the LCA, minimalism is also a lofty goal.
  
[http://www.seat61.com/northern-explorer.htm Seat61] has a great summary of the journey.
+
== How to use the Maps extension ==
 +
We are mainly using the '''<nowiki>{{#display_map:}}</nowiki>''' method of the extension, and it requires at least one location as a parameter, which can be passed either as an address or coordinates.
 +
<pre>{{
 +
#display_map:
 +
12 Grafton Rd, Auckland
 +
}}</pre>
  
== Tickets ==
+
<pre>{{
 
+
#display_map:
Are available from [http://kiwirailscenic.co.nz Kiwi Rail Scenic]
+
-36.852881,174.771341
 
+
}}</pre>
If you don't live in NZ, the only ticket price available is the Flexi fare, which is NZD$199. Cheaper tickets, starting at NZD$139 at the time of writing are available for online booking from NZ, or if you do location spoofing.  
+
To add more locations to a map, terminate all but the final one with a semicolon (;) character
 
+
<pre>{{
* [https://hola.org/ Hola] seems to work just fine for purpose, though it's not free software.
+
#display_map:
* [https://www.torproject.org/ Tor] will also work, provided you restrict to NZ-based exit nodes.
+
12 Grafton Rd, Auckland;
 
+
22 Symonds St, Auckland;
Kiwi Rail accept all the major credit cards including Amex.
+
14 Whitaker Pl, Auckland;
 
+
26 Nicholls Ln, Auckland
== Attending ==
+
}}</pre>
 
+
To add a popup note to the location on the map, add a field using the tilde (~) character. This becomes the title of your popup, and can include any wikitext, including internal and external links.
 
+
<pre>{{
=== To Auckland ===
+
#display_map:
 
+
12 Grafton Rd, Auckland~[[Location|Owen G Glen Building (OGGB)]]
=== To Wellington ===
+
}}</pre>
 
+
To add descriptive text under the title of the popup, add a second field with a second (~) character. Again, this can include any wikitext, including internal and external links.
==== Saturday 17 January ====
+
<pre>{{
 
+
#display_map:
Please only list yourselves on this list once your ticket is booked. If at all possible, please list your name as it appears on your ticket, as I'll use this page to ask KiwiRail to seat as many of us together as possible.
+
12 Grafton Rd, Auckland~Owen G Glen Building~This will be the main venue for the conference.
 
+
}}</pre>
* Christopher Neugebauer
+
[[Category:Help Files]]
* Jack Scott
+
* Cory Thompson
+
* Jethro Carr
+
* Clinton Roy
+
* Joshua Berkus
+
* Geordie Millar
+
* Michael Wheeler
+
 
+
 
+
== Kiwi Train Songs ==
+
 
+
* [http://www.folksong.org.nz/taumarunui/index.html Taumaranui on the Main Trunk Line] (lyrics + youtube vid). [http://www.nzhistory.net.nz/media/photo/railway-songs NZ History net page on the song]
+
* [http://folksong.org.nz/trainsongs.html List of NZ Train songs]. Some are on  youtube but not linked. eg [https://www.youtube.com/watch?v=ZWNzMm0vB_c Okaihau express]
+

Revision as of 06:26, 5 January 2015

About the Maps extension for MediaWiki

The LCA2015 Delegate Wiki is embedding interactive maps directly onto wiki pages, to make it more convenient for delegates to find relevant locations without having to leave the wiki. This facility is provided via the Maps Extension for MediaWiki.

Why only Google Maps are showing

Our hacking on the Maps extension so far has shown that without the added support of the full Semantic MediaWiki (SMW) installation, the Maps extension works sufficiently, but only with Google Maps. To enable the full featureset of the Maps extension would require installing SMW, which seems extreme for what we need here. While the openness and freedom of OpenStreetMap would be more in keeping with the ethos of Linux and the LCA, minimalism is also a lofty goal.

How to use the Maps extension

We are mainly using the {{#display_map:}} method of the extension, and it requires at least one location as a parameter, which can be passed either as an address or coordinates.

{{
#display_map:
12 Grafton Rd, Auckland
}}
{{
#display_map:
-36.852881,174.771341
}}

To add more locations to a map, terminate all but the final one with a semicolon (;) character

{{
#display_map:
12 Grafton Rd, Auckland;
22 Symonds St, Auckland;
14 Whitaker Pl, Auckland;
26 Nicholls Ln, Auckland
}}

To add a popup note to the location on the map, add a field using the tilde (~) character. This becomes the title of your popup, and can include any wikitext, including internal and external links.

{{
#display_map:
12 Grafton Rd, Auckland~[[Location|Owen G Glen Building (OGGB)]]
}}

To add descriptive text under the title of the popup, add a second field with a second (~) character. Again, this can include any wikitext, including internal and external links.

{{
#display_map:
12 Grafton Rd, Auckland~Owen G Glen Building~This will be the main venue for the conference.
}}