User talk:Matroc

From Wikivoyage
Jump to navigation Jump to search


Hello Matroc! Welcome to Wikivoyage.

To help get you started contributing, we've created a tips for new contributors page, full of helpful links about policies and guidelines and style, as well as some important information on copyleft and basic stuff like how to edit a page.

If you are a Wikipedian then you may notice some differences in policies and the style of our articles. These include:

It may also be very useful for you to check out Wikivoyage:Welcome, Wikipedians. If you need help, take a look at Wikivoyage:Help, or else post a message in the travellers' pub or on my talk page. Thanks for contributing! --Saqib (talk) 00:06, 28 July 2013 (UTC)

Listing templates in state-level articles[edit]

You really do a wonderful job and deserve a multitude of barnstars!

However, I don't agree with using listing templates in articles about states, such as the Kerala article. Instead, there should be a summary, with the names of beaches bolded in a prose paragraph. See Wikivoyage:Region article template. Ikan Kekek (talk) 03:24, 5 August 2015 (UTC)

Ikan - Yes - I agree with Beaches in Kerala whould be in prose, especially since the aforementioned beaches should already be fully represented as listings in city articles. Reverted text DONE... Matroc (talk) 03:41, 5 August 2015 (UTC)

Thanks, Matroc. Ikan Kekek (talk) 09:39, 5 August 2015 (UTC)


How are you? Himalayan North is in desperate need of a pagebanner, if you're interested.

Very best,

Ikan Kekek (talk) 09:22, 5 October 2015 (UTC)

  • Candidate found is a view from Lhakpa, La in Tibet -- nice picture just the same the only other decent one I found is already being used for Uttarakhand Matroc (talk) 04:20, 6 October 2015 (UTC)
Thank you. Definitely better than having one from clear across the country. Ikan Kekek (talk) 04:37, 6 October 2015 (UTC)

General Topic Pages created for India[edit]

TRANSCLUSION Test not using LabeledSectionTransclusion[edit]

  • From User:Matroc

When missing links from Wikipedia are done[edit]

As per the instructions at Wikivoyage:Search Expedition/Missing links from Wikipedia, when links are done, please remove them from the list, rather than flagging them as done. It is easier to scan the list if they have been removed. Cheers. Nurg (talk) 05:43, 19 December 2015 (UTC)


Barncompass.png The Wikivoyage Barncompass
This Barncompass is to show appreciation for all your great work on Wikivoyage, and what prompted it in particular is your tireless and continuing efforts to converting numerous mentions of Indian rupees into the rupee symbol. -- Ikan Kekek (talk) 03:44, 21 January 2016 (UTC)


Wow! Well done, thanks for experimenting with maps, I was very impressed. I would love to talk to you, possibly even over video, to get your feedback on the maps and the features we are building next for it. CC:@CKoerner (WMF):.   --Yurik (talk) 00:48, 13 May 2016 (UTC)

Thank you Yurik for your comments - sent an email - Matroc (talk) 17:42, 16 May 2016 (UTC)

Listing syntax change - minor edits needed[edit]

  • Have been fixing image names and removing image names that do not match up in Commons
  • 1 Wupatki National Monument, near Flagstaff — Contains the remains of multiple ancient Native American settlements.

An award for you![edit]

Barncompass.png The Wikivoyage Barncompass
I want to know that u barnstar Brooks mesha gay (talk) 16:32, 15 July 2016 (UTC)

Trademark symbols in file names[edit]

re: Special:Diff/3130988/3134339, thanks for catching that (twice). I've updated the replacement patterns so that the bot will no longer attempt to remove ®, © and ™ until I can get a fix in place to prevent it from doing so in file and link names. -- Ryan • (talk) • 05:53, 26 January 2017 (UTC)

  • Great Ryan - keep up the fantastic work! -- Matroc (talk) 04:54, 27 January 2017 (UTC)

Dynamic region maps[edit]

Hi Matroc - when I raised the issue about two maps on the same page, I wasn't meaning to capture the Indian maps you had done like Himalayan North. Your maps were proper region maps with colour-coded regions; the ones I was calling out didn't have colour-coded regions or even a map mask. Apologies if it came across that I was attacking or diminishing your work. I think the work you've done is very important to improving dynamic maps and getting us closer to a day when they're more widely accepted in the community.

Shaundd - NO apologies needed - not at all! - this very issue was raised just a few days ago on another talk page with basically the same divided results - things will definitely change and improve in the future. I havn't given up - (Peu en peu, le petit oiseaux a construir son nid ) --

If you're still interested in working on dynamic maps, I was wondering if you'd be interested in building a prototype where the region boundaries aren't in OSM/Wikidata. The GIS software I use to create static maps can export objects in GeoJSON (and a couple of other formats) so I can provide region boundary data sets, but I don't have the programming/template skills to do the rest. -Shaundd (talk) 03:59, 12 May 2017 (UTC)

Shaundd - There is some minimal work going on with using "Wikimedia Commons" to build and act as a repository for maps. I do not know the status of that project. Commons has what is called Data: pages which are files with a .tab or .map extension. See: this map as an example. In edit mode, you can see the actual coding. The map is accessed/called using type: ExternalData option with a service and title parameter in a mapframe and displays the map - I believe maplink can also call on external map code as well.

<mapframe width=300 height=400 zoom=9 latitude=31.914271 longitude=35.084371> { "type": "ExternalData", "service": "page", "title": "IsraelHighways/" } </mapframe>

  • To call this is fairly easy - everything is located within the coded file - so you don't really have the option of changing colors etc.; unless, you create a different version of the .map file and use it.
  • This is a LineString representing a highway structure in Israel.
  • Polygons, multipolygons, multilines can be made as well ie. shaded areas outside a polygon can be done fairly easy etc.
  • Pretty much the data is GeoJSON format, any minimal errors can give you some grief until you figure it out.
  • You might experiment using a file name in the meantime.
  • I hope this helps and have a good day! -- Matroc (talk) 03:49, 13 May 2017 (UTC)
  • @Shaundd: - ps. -- Read
Thanks for the info and the link. I had heard that data might be hosted on Commons but hadn't had time to dig any further. Reading through the page I'm not sure it's as flexible as I'd like, but I'll experiment with it and see how it works. Cheers -Shaundd (talk) 05:20, 15 May 2017 (UTC)

Test Commons Data Map[edit]

  1. Created a map on Commons - Data:Sandbox/Matroc/
    • Fairly intuitive to open file and fill in the required information and provide GeoJSON format for mapframe
  2. Can use a mapframe and get data file
  3. Can use maplink - to make it appear in a mapframe in this case group parameter may come into play - possibly show as well.
    • maplink should have something like class="no-icon" text="" group="other" and mapframe can have group=other or show=other
  • Thanks for checking this out and posting results. Things have gotten busy, but I'm hoping to have time to test it out later this week or the weekend. -Shaundd (talk) 13:47, 16 May 2017 (UTC)
Hi Matroc, I've been testing out the Data page and added a few dynamic maps that pull the data in. It works well if you do everything in Commons, but it doesn't see as flexible as using Wikidata IDs/OSM. For instance:
  • I can't change properties of the object when I add it to a map on WV (different fill colour, opacity, etc), and
  • I can't get it to map mask the same way we do with an OSM relation.
Was wondering if you knew anything about that or had had more success. Cheers, Shaundd (talk) 23:41, 26 May 2017 (UTC)
  • @Shaundd: - Yes there are limitations and other things that will come up that I found as well in the past.
    • Mapmask - Works like a MultiPolygon - an outside polygon (outside shaded area) and an inner polygon (region or regions). In this case your 3 regions or just a single region as on your test page - put mapmask coordinates AND the coordinates of the area and you get the boundaries. - You did this already in Commons. To get colored section etc. add your other map as an overlay. I did this on your test user page for Northern Oregon for you to be able to see it.
    • When using MultiPolygons, MulitPoints etc. you end up with 1 set of properties and not individual properties as they all belong together and treated as one thingy (real technical lol). That appears to be the case with Mapmask.
    • Note: When you have for example: cities and locations on your page and you click on that marker a map will popup. You have to be aware of some of the oddities with group and show etc. if you want certain things to appear on that map. Should play with that as well. Group other2 or other3 won't show up in that map; though other will. This map seems to pick up group names that match the types in listings -- Anyhow, hope this helps! -- Matroc (talk) 05:01, 27 May 2017 (UTC) -- see also: test Laboratory

An award for you![edit]

Barncompass.png The Wikivoyage Barncompass
Thanks for the assist with the map on Herndon, VA page. I'm pretty new to this and still learning all the templates and how to edit stuff. I'll probably tap you for help if you're alright with me asking for help hear and there. DocSershon (talk) 13:41, 9 June 2017 (UTC)

Text on dynamic maps[edit]

Hi Matroc, I see you've been testing adding text to dynamic maps. I saw this on Stack Overflow, which looked pretty cool. Is any of this code usable/compatable with the Kartographer extension or the Map module? -Shaundd (talk) 18:50, 15 June 2017 (UTC)

Shaundd - I am just investigating an idea I had about literally drawing letters by hand with GeoJSON (a feeble attempt). About "Stack Overflow" article, I don't do much Javascript or CSS to know if we can incorporate something like adding leaflet layers etc. That would be a question to pose on one of the Wikivoyage Dynamic Maps article pages. It would be pretty cool if we could add text labels though. Cheers! -- Matroc (talk) 00:13, 16 June 2017 (UTC)

map help[edit]

Hi, i am looking to map all instances of federal bank.

  • I do not think I can help you with this. You would need all of the geographical locations of the Federal Bank branches and Wikidata does not appear to have them. I do not know of any database query to perform to obtain that information. Perhaps some help could be found at Best wishes! -- Matroc (talk) 04:59, 14 September 2017 (UTC)
  • Naveenpf --- Federal Bank - create a map of multiple places - If you have geographic locations you can create a map with those points using the MultiPoint option of GeoJSON - this is good for many (multiple) positions on a map. If you want to include title, images etc. then I think you would have to do each location separately in many maplinks!.
  • You can copy the code below and change it to do Federal Banks in India and see if that works for you.
    • Change lat long to that of India, replace multiple coordinates with those for the Federal Bank, modify colors, change image to "bank" and probably change group to bank etc.
  • I did a map of India with extra maplinks for Indian states following the Spain example which you can ignore. I put in locations for a few Federal Banks. Open section in edit mode and copy the mapframe should you want to try it...
  • Important Note: I do not think that Wikipedia has the group and show options - In addition, the code on Wikivoyage may be different than on Wikipedia so you might have to do something to get around that (mapframe is not available on mediawiki but maplink is.). It appears that OSM is not available in Wikipedia - and that Kartographer extension future development has been put on hold. (How sad!)
  • Example of MultiPoint I created for Spain and bordering countries: - Create a MultiPoint mapframe of Spain and bordering nations

<mapframe text="" latitude="40" longitude="-3" zoom="5" group="multipoint" width="600" height="400" show="cities"> {"type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": {"type":"MultiPoint", "coordinates": [[1.5552777777778,42.558333333333],[-6,32],[-9.1833333333333,38.7],[2,47],[-5.347422,36.138706],[-3,40]], "type":"MultiPoint"}, "properties":{ "description": "Spain and bordering countries!", "marker-color": "#ffccaa", "marker-size": "medium", "marker-symbol": "star", } }]} </mapframe>

India example[edit]

Federal Bank of India (Locations)

Using Mapdraw2 for Rail travel in the Netherlands[edit]

Hey there, in regards to this message: I think some communication is lacking here. First off, I don't want to use mapdraw for all stations, but instead for all lines, which are the main thing I'd wish to display, as well as the larger stations where services meet. This will reduce your list of stations from just over 400 to some 40. I'll supply you with a list of which stations these are, along with what information they would list. Secondly, I'm not sure if Mapdraw will supply me with what I have in mind either, but from what I can tell, Mapdraw offers more possibilities than other means available right now. What I would be looking for though, is for the ability to list text in listings on a map, which I believe is only available to boxes and frames at this time. There wasn't really a need to start the map already, but again, I'll get you a list of what I want to list sometime soon. There's no real need to load the other batches into the map you've started until then, as I believe most of that work would be for nothing.
-- Wauteurz (talk) 17:08, 4 February 2018 (UTC)

  • Wauteurz -- Just wanted to make you were aware that Mapdraw2 is experimental (learning). Optional opening to create a separate template and module for train stations? I am loading lots of stations as a test to see where it all might break (a good thing to know!) and testing any ideas I might come up with - definitely 40 or so important stations would be a lot more manageable. Need to check and see what normal wikivoyage templates etc. you can use as well or find a way around them. I will test out ideas on my Sandbox2 (which I cleaned out a few weeks ago). To draw the rail lines - just need gpx coordinates - I can help with straight GeoJSON coding using Kartographer if you wish if those coordinates become available -- I did that for Trans-Siberian Railway in a past life. There are deficiencies to maps in general and I have a tendancy to try and overcome them with what we have as tools if possible. One step at a time. I would be glad to assist you if I can -- Cheers! -- Matroc (talk) 01:58, 5 February 2018 (UTC) note: You might want to check with User Shaundd for more assistance as he has been looking at maps etc. and probably knows more than I in several areas.

SVG to GeoJSON[edit]

Hi Matroc, I don't have any experience converting a SVG file to GeoJSON. The maps I draw are based on Shapefiles in QGIS and then I export them as SVG or GeoJSON, depending on what is needed.

Thinking about it, it would be difficult to convert an SVG to GeoJSON because SVG doesn't typically store the geo coordinates that would be needed for a GeoJSON file. Doing a quick search on Google, I saw this script which tries to place a SVG on a map by providing the NE and SW edges of the map. I don't know if that would work here or not. -Shaundd (talk) 22:23, 13 February 2018 (UTC)

Thanks Shaundd -- I definitely am not a mathematician etc. I was thinking about it and googled some time to see what I could find... it seems possible I think but explanations on it are just are not clear enough. .SVG looks like it uses point positions as if one is drawing (plotting) a graph - I am lucky enough to add 2 numbers together. If it can be done, one could convert some of the svg railways or metro lines .svg files that are not to be found in OSM and convert to GeoJSON format for our maps... Just an idea to keep in the back of my head. Again, thanks for response. -- Matroc (talk) 00:33, 14 February 2018 (UTC)

Mapshapes merge[edit]

Hi! I also wanted to learn some mediawiki/lua-fu, so I created the above template. It's much simpler than what you are trying to do, so it already seems to work nicely :) In any case, you did a great job so far, it seems - so I won't object, if we later merge everything into Mapshape, or wherever. We should wait until User:RolandUnger steps in too and proposes his imports from de:, since they did great amount of great work too, already (esp. in the listings handling area). I'd say this web isn't too targeted on tech-savvy users, thus the smarter the scripts are (in regards that they can autodetect from arguments what should be done - instead of having to use many different templates), the better, I'd say? (talk) 08:09, 20 February 2018 (UTC)

  • - Hi - I really haven't done much of anything in the way of mapshapes - I have been working on several possibilities of using Kartographer. Basically the ability to draw certain geometric shapes such as a circle etc. outputting a mapframe or maplink and the ability to make map points using the Maki icons is not quite the same as what the mapshapes template nor various listing style templates do. (Though included is the possibility to do mapshapes). The effort I aimed for is similar to what a marker template does. See: Mapdraw2 and Sandbox2 for examples.
  • I am not a Lua guru nor really that tech-savy at all; just a hack sort of. The question of merging etc. should most likely be addressed to those more qualified than I. Scripts probably could be smarter and some possibly combined and probably should. I am not extremely versed in template scripting either and defer to those in the know.
  • I just read User_talk:RolandUnger's talk page and was totally unaware of the future changes/developments to come and that several important users have been frustrated and overwhelmed to such a level (Ryan, Mey2008 etc.). The drop in funding for map support and the number of active users with programming experience certainly has not helped the English version of WV. In the past I used to converse with User:Yurik and did a lot of testing when Kartographer was introduced. In any event, Best Wishes! -- Matroc (talk) 06:26, 21 February 2018 (UTC)

Share your experience and feedback as a Wikimedian in this global survey[edit]

WMF Surveys, 18:36, 29 March 2018 (UTC)

Reminder: Share your feedback in this Wikimedia survey[edit]

WMF Surveys, 01:34, 13 April 2018 (UTC)

Your feedback matters: Final reminder to take the global Wikimedia survey[edit]

WMF Surveys, 00:43, 20 April 2018 (UTC)