Template talk:Rail-interchange

From Wikivoyage
Latest comment: 1 year ago by SHB2000 in topic Adding <abbr> tags?
Jump to navigation Jump to search
 Rail-interchange documentation sub-pages 

Reducing the size of the label

[edit]

As brought up in the pub, RINT as it stands right now is somewhat distracting from the content of articles, especially for cities with dense networks (the specific given example was the City of London). I would like to know if people support or oppose the changing of size, that being a change from  CIR  DLR  JUB  to  CIR  DLR  JUB . In other words, putting a "<small>" HTML-tag around the template. The major change being that the way RINT gets displayed in {{Station}} changes: Generic Station A  CIR  DLR  JUB .
-- Wauteurz (talk) 21:00, 30 November 2018 (UTC)Reply

  • Support as per the above: I cannot deny that the colours get overwhelming. I may not experience the most of it myself, but adding RINT-labels is easily overdone. I am more than happy to make the articles easier on the eye. The traveller comes first after all, and overwhelming the traveller with colours is to no-one's benefit. Wauteurz (talk) 21:00, 30 November 2018 (UTC)Reply
  • Support: The use of <small></small> tags works decently in Firefox and serves as a good compromise that shouldn't entirely distract the reader. As mentioned in the pub section, despite being a Brit myself the Tube does confuse me and these icons are certainly helpful for my own use. Weirdly this change doesn't show in my Chromium installation and they still appear the same size, I'll have to see what other browsers make of this. Inferno986return (talk) 03:29, 1 December 2018 (UTC)Reply
    Thought I'd chime in: have no strong opinion on the template, but do see a size difference in Chromium as well as Firefox, the former major version 70, in case that helps narrow down any issue. ARR8 (talk) 03:44, 1 December 2018 (UTC)Reply
    I can't see a difference between the browsers I have downloaded (Firefox 63.0.3, Chrome 70.0.3538.110 and Edge 42.17134.1.0), but I can't confirm that Safari doesn't display the labels in a different manner. Nonetheless, we could also set the font size to something smaller as Andree.sk suggested below. 0.8 (80%), as they suggested, would result in this:  CIR , 70% may also be an option:  CIR 
    On a related note, I just noticed how there is already a small-tag present in {{RbE}}. I think we'll have to end up having to remove this tag in the process (examples in this comment already have adjusted for that), or think of some clever way to let individual templates set this size based on the use they have, since RbE may be used for other templates in the future.
    -- Wauteurz (talk) 13:03, 1 December 2018 (UTC)Reply
Thank you! Ground Zero (talk) 12:47, 7 January 2019 (UTC)Reply

Using images

[edit]

@Wauteurz:, why are the labels preferred over images? And why were the local images replaced by the common ones in change ?

I would like to use these images with proper alternative texts for Budapest, which are the official ones:

M1 M2 M3 M4 H5 H6 H7 H8 H9 D11 D12 D14 Metro Line Suburban Railway Line Boat Line Tram Line Trolleybus Line Bus Line Night Line Furnicular Chairlift Gyermekvasút

And not these labels and images:

 1   2   3   4   5   6   7   8   9   11   12   14   M   H   D 

--City-busz (talk) 09:37, 1 December 2018 (UTC)Reply

@City-busz: Hey there, as can be read here, we prefer {{RbE}} to be used over loads of images as to have some limited amount of control over what appears. The generic images printed (for example {{rint|tram}} ) are the only exceptions to this rule. Other than that, there was a general aim to not depend on other projects a lot when displaying what were originally images. RINT as a result aims to be detached from Commons, and therefore, no images (or a limited use thereof) is used. I know that using the local and official icons is preferred by many, but Wikivoyage aims to serve the traveller first, rather than local transport businesses or any businesses for that sake. Hence we sometimes have to simplify icons used by local authorities in order to not overwhelm the reader of articles.
On a related note, how were you planning to use the system icons? I know they're available for other cities too, but this was done when converting the original RINT template from Wikipedia to Wikivoyage. They are left in as to not be destructive, which is another guideline for editing the template. RINT aims to show the lines rather than the systems though. I am not saying you're doing anything wrong, but I just wonder how you were planning to use the icons for  METRO  {{rint|budapest|metro}} ,  HEV  {{rint|budapest|hev}} and  BOAT  {{rint|budapest|boat}} , as well as the tram, trolleybus, (night)bus, funicular, chairlift and gyermekvasút?
-- Wauteurz (talk) 12:41, 1 December 2018 (UTC)Reply
When I talk about stations in Budapest and how to get in to specific locations, I would like to see this, e.g.:
  • Short version: Batthyány tér Metro Station Suburban Railway Station.
  • Long version: Batthyány tér: Metro Line M2; Suburban Railway Line H5; Boat Line D11 D12; Tram Line 19, 41; Bus Line 11, 39, 109, 111; Night Line 990.
  • Textual version: Batthyány tér: metro line M2; suburban railway line H5; boat line D11, D12; tram line 19, 41; bus line 11, 39, 109, 111; night line 990.
--City-busz (talk) 14:37, 1 December 2018 (UTC)Reply
We had a similar discussion at Brussels a while ago... Basically, it probably doens't make sense to name each and every line for each attraction. I guess only specifying metro for most POIs and busses/trams for the hardly-reachable places is a good compromise? -- andree.sk(talk) 20:16, 1 December 2018 (UTC)Reply
I agree to not list every buses/trams for those locations, which are easily accessible by metro. But I would like to use the official symbols in Budapest, not those that created with {{RbE}}.--City-busz (talk) 20:27, 1 December 2018 (UTC)Reply
I insist in not making an exception to the rule here, for if we do, every city can get an exception. Images change much more rapidly than the labels and having to adjust the size of an image every time it changes on Commons is a tedious task that no-one will do. The service images, by the way, shouldn't be added if the numbering of lines is city-wide rather than network-specific. What I mean by this is that, for example, line 1 is by definition a HEV line and not a bus or tram line as well. For example, we'd use Battyány tér  2  5  rather than Battyány tér  METRO  2  HEV  5  as you described above. I get that you want to use the official icons, but a rule is a rule. We try not to overwhelm the traveller and keep imagery to a minimum and instead prefer to recreate the imagery into labels with the means available, which reduces the many ways in which an icon can be attention-grabbing, as to not drag attention away from the article's content.
-- Wauteurz (talk) 12:29, 2 December 2018 (UTC)Reply
Okay, now I understand the rule. But then it should be Batthyány tér  M2  H5  rather than Batthyány tér  2  5 , because the name of the routes are 'M2' and 'H5'.--City-busz (talk) 13:03, 2 December 2018 (UTC)Reply

Updating rint template

[edit]
Swept in from the pub

WikiVoyage has a "rint" template, for example {{rint|amsterdam|5}} produces:  5 . However the template does not support tram line 6 in Amsterdam, which opened May 27, 2019 with rush-hour service only. I found the rint documentation. I have never updated a template, and don't know how to do it or whether I should do it. The question is: How can I update this template? Thanks. TheTrolleyPole (talk) 21:31, 31 December 2019 (UTC)Reply

It looks easy enough. Just edit Template:Rail-interchange (not the documentation, but the actual template). Scroll down about 70-80 lines to where the options for Amsterdam are defined (or just search for "amsterdam"). To add support for tram line 6, you should just have to copy-paste one existing line of that code, and modify the new line of code to have the correct number (6), color, and name (which is shown when you hover your mouse over the icon).
If you're still uncomfortable updating it yourself, let me know what color it should use and what the name should be in order to match the existing entries, and I can put it in there. --Bigpeteb (talk) 22:59, 31 December 2019 (UTC)Reply
Thanks. I updated both the template and its documentation. I don't know if the colour (  6  ) I selected was the most appropriate, but it was sufficiently different. TheTrolleyPole (talk) 00:43, 1 January 2020 (UTC)Reply

Adding <abbr> tags?

[edit]
Example of hover-over on Dungog

@Wauteurz: Following the existing practice on {{CanberraCycleRoutes}}, I decided to add abbr tags to this template temporarily as a test to see if it would have the same benefits when the text in question was hovered over, ultimately giving readers more context for what those "cryptic" routes mean. I checked the output on a few pages, here were my few observations:

  • It works well in most, as long as the |mo= parameter is present.
  • It decrypts the sometimes "cryptic" routes that we use.
  • It does not, however, work well on routes without an |mo=.

My test was a bit rushed, but do you think we should implement this? Feel free to revert Special:Diff/4739332 if you want see how it looks, need it be.

(sorry if this message seems all over the place – I should probably sleep now...)

--SHB2000 (talk | contribs | meta) 13:17, 28 September 2023 (UTC)Reply

I fail to see what an abbr tag would add, that isn't supported in {{RbE}} already. There already is a parameter that does the exact same as <abbr>, that being the one you mention yourself: Mouseover (mo). The only thing that an abbreviation tag would add that {{RbE}} currently doesn't support, is that dotted underline (and I'd say that's a great way of visualising that a route label has hidden information).
If that's what you're after, then I can just add that to {{RbE}}, which would look slightly cleaner, as we can make it match the text colour, and it'd save some fiddling with html tags in the process.
For an example of how it'd look, compare  M1  and  M1 , or  M2  and  M2 .
Wauteurz (talk) 14:35, 28 September 2023 (UTC)Reply
The underline doesn't work for me on mobile if there are no abbr tags around, though. --SHB2000 (talk | contribs | meta) 23:53, 28 September 2023 (UTC)Reply
Interesting, as for me it does show on mobile using Firefox 117.1.0, same on Chrome 85.0.4183.127. They're faint lines in the example above though, so perhaps a dashed line would be better? I don't think this is a deal-breaker for mobile though, as typically, they do not support mouseover texts seen the lack of a mouse...
So I'm aware: What browser (and version) are you using, and can you, for example, see the underscore line in these examples?  Dashed   Solid 
Wauteurz (talk) 10:16, 29 September 2023 (UTC)Reply
On desktop, I'm using Chrome 118.0.5993.32 on macOS Sonoma and can see both lines; on mobile, I'm using version 16.5 of Safari on iOS 17 (beta testing). Both seem to be a hit or miss on mobile (occasionally comes up before disappearing quickly – can't even take a screenshot!), but as you say, it's probably caused by the lack of mouse. --SHB2000 (talk | contribs | meta) 10:18, 30 September 2023 (UTC)Reply