Jump to content

Template talk:Rapid transit OSM map

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Bouzinac (talk | contribs) at 20:11, 5 December 2022 (Showing only a specific line). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
WikiProject iconTrains Template‑class
WikiProject iconThis template is within the scope of WikiProject Trains, an attempt to build a comprehensive and detailed guide to rail transport on Wikipedia. If you would like to participate, you can visit the project page, where you can join the project and/or contribute to the discussion. See also: WikiProject Trains to do list and the Trains Portal.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

Problem with Milan Metro map

Hello, the article for the Milan Metro uses this template, but the map remains blank. All the lines exist in Wikidata, with the right property P361 and they are all associated with a OSM relation. Can anybody help me figure out what is the problem? Thank you. --Ita140188 (talk) 02:48, 11 August 2020 (UTC)[reply]

Problem with Toulouse Tramway map

Hi! The same happens for Toulouse tramway, being the lines T1 and T2 (Wikidata Q3239230 and Q16655787 items) connected to their corresponding items at OpenStreetMap. The map is also blank. It would be great if somebody could tell us why this happens. Thank you. Enekorga (talk) 20:35, 12 August 2020 (UTC)[reply]

I have also encountered this issue with Ion rapid transit. Sadly the documentation is really lacking for this template. When I look at the particular examples, I notice that the Frankfurt example no longer has a functioning OSM relation (it has been deleted) and the Moscow one has a KML template file which 1:1 corresponds with the displayed transit lines, including their colours. Therefore it is my conclusion that in the Moscow example, the KML file is itself likely the source of the shape data. My suggestion would be to create a KML file and see what that does for you. Julius177 (talk) 19:19, 1 May 2021 (UTC)[reply]

Showing only a specific line

Hello @REEDriler, thanks for the modifications, they seem to be working at least on frwiki. Have you succeeded in managing a selection of a specific line? Eg S6 Zurich only ? Plus, have you managed to show the stations as single dots ? Bouzinac (talk) 15:09, 5 December 2022 (UTC)[reply]

@Bouzinac Greetings. Yes, they can be accessed by using |single_line parameter. The alternate query enabled via single_line param also works for lines linked to a system/network via P361 property. So this query works best for showing specific lines and then City rail Networks having specific lines such as Airport Links which are most times part of(P361) the network. eg: {{Rapid transit OSM map|system_qid=Q7283953|single_line=y}} would also show Airport Link in addition to lines having to transport network(P16) → BTS, MRT.
Map
Map
Zurich S6

REEDriler (talk) 15:59, 5 December 2022 (UTC)[reply]

For stations, it looks for items connected to lines via connecting line (P81) property and would show pics as the description if it exists. See this use: [1] Map showing MRT lines but then zoomed into Gold Line showing only its stations. The Zurich S6 stations use connecting service property, should this be added as an alternate path? REEDriler (talk) 16:04, 5 December 2022 (UTC)[reply]
I was thinking about using System's icon as the marker but seems like the only icons that can be used as marker are these . The default marker i've chosen is rail-metro. And also if the alternate query can be used as default which would eliminate the need of |single_line param but then I am not sure about the fastest query when opening the map as full screen. REEDriler (talk) 16:13, 5 December 2022 (UTC)[reply]
Perhaps try querying wdt:P81/wdt:P1192/wdt:P16* ?
You might make it more classy adding https://www.wikidata.org/wiki/Q685381#P154 (for lines) ? Bouzinac (talk) 16:58, 5 December 2022 (UTC)[reply]
Testing :

Map