|
|
Broken "enlarge map" button?
[edit]See for example Aarhus#On foot – wherever this template is invoked, there's some mysterious text at the bottom reading something like '"`UNIQ--maplink-0000000A-QINU`"'. This is a div with "magnify" class, and hovering over it shows "Enlarge map," so I imagine this is supposed to be a button. This only seems to happen in the desktop view, both on Chrome and Firefox. 173.75.41.173 01:41, 3 July 2025 (UTC)
- The magnify class originates from this edit by @RolandUnger. If a fix can't be made soon, I could also globally exclude the class in the Wikivoyage's common.css as a dirty fix, but this might break some of the template's workings. ― Wauteurz (talk) 23:33, 28 August 2025 (UTC)
How to avoid a dynamic map being populated with places from other maps in the article
[edit]Hi all, I'm new to creating dynamic maps, and tried to add commons:Data:Penang_CAT_bus_route.map to George Town (Malaysia)#By_bus_2 using a template Template:Penang CAT bus route.
- The map, however, picks up markers from the previous map in the article, making the bus route unreadable.
- Additionally,
'"`UNIQ--maplink-0000002B-QINU`"'?appears in the caption.
Would anyone know how to resolve these two issues? Thanks, Cmglee (talk) 16:18, 18 December 2025 (UTC)
- show and group parameters could help. I edited the Template:Penang CAT bus route and it seems working. --RolandUnger (talk) 17:04, 18 December 2025 (UTC)
- Thank you very much, RolandUnger. You've taught me how to do it properly. Cmglee (talk) 07:17, 19 December 2025 (UTC)
- The group parameter is available for {{marker|...}}. Why is it not available for {{listing|...}}, {{see|...}} and more? FredTC (talk) 05:25, 21 December 2025 (UTC)
- Off-topic, but George Town should be divided into districts as it is already overflowing with listings, thus cluttering the dynamic map. Sbb1413 (he) (talk • contribs) 17:15, 18 December 2025 (UTC)
- I agree, though there isn't a well-accepted division of the city. Cmglee (talk) 07:17, 19 December 2025 (UTC)
- I see the first issue has already been solved. As for the second, it's a known and tracked bug from Parsoid (the code that renders articles). If my memory serves correctly, it's been pending for a fix for over a year at this point. If I knew how to fix it, it wouldn't be there any more.
- Also, as an aside, {{Mapshapes}} typically is used to embed transport routes into articles. The route should probably be merged into that if possible to avoid having loads of dedicated templates for individual transport routes.
― Wauteurz (talk) 20:05, 18 December 2025 (UTC)- Good to know. I think that route is special, being one tourists might take. Adding other routes makes it harder to maintain, and clutters up the map. Cmglee (talk) 07:17, 19 December 2025 (UTC)
- I don't think my point came across correctly. I did not suggest that you add more routes. I'm suggesting that you, instead of inserting a single bus line through a dedicated template, insert that bus line using a template that is already used widely on this site and is made with that exact purpose in mind. Other lines can later on be added with another instance of {{Mapshapes}} if desired. Since the template also uses the
groupparameter, it can also be hidden from certain maps. In other words, no map clutter has to be made.
― Wauteurz (talk) 23:52, 19 December 2025 (UTC)- @Wauteurz: I see now. Do you know of an appropriate template I can use to achieve a similar effect? Cmglee (talk) 01:49, 21 December 2025 (UTC)
- So, for {{Mapshapes}} the bus line needs to be linked from OpenStreetMap to Wikidata and vice versa, and for that data to appear on Wikivoyage can take a while. If you want to go that route (which I would recommend), Mapshape's template page explains how to achieve that.
- Working with what you've already made, the Commons .map files can be inserted using
{{Mapshape|type=page|wikicommons=Penang CAT bus route.map}}. {{Mapshape}} also uses thegroupparameter, so you can filter which mapframes do and do not include the line.
― Wauteurz (talk) 11:25, 21 December 2025 (UTC)
- @Wauteurz: I see now. Do you know of an appropriate template I can use to achieve a similar effect? Cmglee (talk) 01:49, 21 December 2025 (UTC)
- I have the impression that my question in response to RolandUnger's remark "show and group parameters could help" was not noticed. So, I repeat: The group parameter is available for {{marker|...}}. Why is it not available for {{listing|...}}, {{see|...}} and more? --FredTC (talk) 00:40, 23 December 2025 (UTC)
- For {{listing}}, it is the
|type=parameter. Sbb1413 (he) (talk • contribs) 03:44, 23 December 2025 (UTC)|type=and|group=are not the same.|type=(buy, do, drink, eat, go, see, sleep, city, vicinity, or listing) regulates marker properties like the marker color and the affiliation to a map layer, whereas|group=defines the affiliation to an individual map. The group parameter is really not implemented in Template:Listing/Module:Listing. --RolandUnger (talk) 07:07, 23 December 2025 (UTC)
- For {{listing}}, it is the
- I don't think my point came across correctly. I did not suggest that you add more routes. I'm suggesting that you, instead of inserting a single bus line through a dedicated template, insert that bus line using a template that is already used widely on this site and is made with that exact purpose in mind. Other lines can later on be added with another instance of {{Mapshapes}} if desired. Since the template also uses the
- Good to know. I think that route is special, being one tourists might take. Adding other routes makes it harder to maintain, and clutters up the map. Cmglee (talk) 07:17, 19 December 2025 (UTC)