Template talk:Routemap/Archive 3
![]() | This is an archive of past discussions about Template:Routemap. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 | Archive 3 |
Visual errors
The first row of the collapsed sections at Template:Athens Metro Line 4 RDT and Template:Omsk Metro RDT doesn't seem to replace the first row when I click [show]. For example in the former, "Petroupoli" should replace "Planned phase D" when expanded. What is causing the visual glitch? --Minoa (talk) 07:30, 3 January 2025 (UTC)
- @Minoa: Please give an example of another RDT where the "[show]" link does what you wnat it to do here. Then we can try to compare the code. --Redrose64 đŚ (talk) 19:49, 3 January 2025 (UTC)
- Hello, a further investigation into the templates reveal that the templates work properly in the Vector 2022 refresh, but not in Vector classic, which I still actively use. For example, compare [1] (refresh) and [2] (classic) --Minoa (talk) 20:04, 3 January 2025 (UTC)
- Then it looks like it's the site javascript for the
mw-collapsible
class, and nothing to do with RDTs. --Redrose64 đŚ (talk) 23:55, 3 January 2025 (UTC)
- Then it looks like it's the site javascript for the
- Hello, a further investigation into the templates reveal that the templates work properly in the Vector 2022 refresh, but not in Vector classic, which I still actively use. For example, compare [1] (refresh) and [2] (classic) --Minoa (talk) 20:04, 3 January 2025 (UTC)
Template categorisation
Hi Useddenim, when creating new templates such as Template:Anzac Avenue they should not be placed in content categories per WP:CAT#T. AusLondonder (talk) 11:15, 10 October 2024 (UTC)
- Also, with some of these templates such as Template:Sunshine Motorway, I am unable to remove them from Category:Highways in Queensland. Is that part of the template's design? AusLondonder (talk) 11:19, 10 October 2024 (UTC)
- @AusLondonder: This has come up in the past, and the consensus has been that Route diagram templates are a special case because in general they do contain supplementary content (similar to photos and other images). Their insertion into specific categories is a semi-automatic function, documented at Template:Road-routemap#Optional parameters.
I hope my reply is helpful. Useddenim (talk) 11:17, 22 January 2025 (UTC)
- @AusLondonder: This has come up in the past, and the consensus has been that Route diagram templates are a special case because in general they do contain supplementary content (similar to photos and other images). Their insertion into specific categories is a semi-automatic function, documented at Template:Road-routemap#Optional parameters.
Add city border between stops?
Line 15 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Is it possible to add some sort of symbol for a city border between two stops? Attached here is a copy-paste of the line 15 in the article Trams in Helsinki. I'd like to add a city border between the stops "Ravitie" and "Talin siirt.puutarha". Is this possible? JIP | Talk 15:03, 27 October 2024 (UTC)
- The dark arts of {{routemap}} are a mystery to me but what you want does seem possible, see {{Oxford area RDT}}. Maybe you can raid it? --đđđ˝ (talk) 15:26, 27 October 2024 (UTC)
- Template:Oxford area RDT (which is one of mine) draws the boundary using icons selected from those in c:Category:BSicon/hub, overlaid on regular icons for stations, junctions, etc. --Redrose64 đš (talk) 23:01, 27 October 2024 (UTC)
- I've updated the template to show one possible technique for doing this. Mackensen (talk) 15:28, 27 October 2024 (UTC)
- @JIP: You want one of the icons in c:Category:BSicon/railway/set u/border. Useddenim (talk) 17:13, 11 February 2025 (UTC)
Dark mode-compatibility
Hi, first of all, apologies if this isn't the right place to pose this question/suggestion. I would also like to thank the community for its efforts in maintaining this library; I find the possibilities stunning.
I tend to use dark mode wherever possible, and while looking at this diagram, I noticed a weird white square in the "Guadalete river" line. After looking into it, I think it's caused by the mask (MASKr
) icon, which was set to light gray, and I was expecting the background to be of that color.
I wondered if there was a way to change the SVG fill of masks or other overlapping icons with a hard-coded background depending on the user's skin. According to Recommendations for night mode compatibility on Wikimedia wikis#Apply filters to dark images with transparent background, the CSS class skin-invert should be used, and I think it could be included in line 39 of the Routemap module like so:
["cell-overlapicon-fmt"] = '<div class="RMic" style="%s">[[File:BSicon_%s.svg|x20px|link=%s|alt=|%s|class=skin-invert]]</div>',
I tested this with the diagram I linked before with a positive result. However, I'm not confident it won't break other things, as I'm unfamiliar with the Routemap inner workings. Thank you, cheers, Swaare (talk) 12:49, 25 February 2025 (UTC)
Edit: I've just noticed this affects other icons as well, rendered with a white background or just virtually invisible like the Airport icon in the "Aeropuerto de Jerez" line. Swaare (talk) 12:54, 25 February 2025 (UTC)
- @Swaare: The alternative would be to have RDTs always display with the light grey background. Useddenim (talk) 00:07, 26 February 2025 (UTC)