Jump to content

Template talk:Rail-interchange: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
Line 162: Line 162:
<syntaxhighlight>| taiyuan ={{#switch: {{lc: {{{3}}} }}
<syntaxhighlight>| taiyuan ={{#switch: {{lc: {{{3}}} }}
| metro = [[File:Taiyuan Metro logo.svg|{{{size|16}}}px|link={{{link|Taiyuan}}}|alt={{{alt|{{{link|Taiyuan Metro}}}}}}]]</syntaxhighlight> [[User:Durian Farmer|Durian Farmer]] ([[User talk:Durian Farmer|talk]]) 18:18, 30 November 2022 (UTC)
| metro = [[File:Taiyuan Metro logo.svg|{{{size|16}}}px|link={{{link|Taiyuan}}}|alt={{{alt|{{{link|Taiyuan Metro}}}}}}]]</syntaxhighlight> [[User:Durian Farmer|Durian Farmer]] ([[User talk:Durian Farmer|talk]]) 18:18, 30 November 2022 (UTC)
:See test case at [[Template:Rail-interchange/testcases#Taiyuan Metro]] – had to use {{code|<nowiki>{{#switch: {{lc: {{{2}}} }}</nowiki>}} to get the image to appear. Is that what you are looking for? '''''[[User:Paine Ellsworth|<span style="font-size:92%;color:darkblue;font-family:Segoe Script">P.I.&nbsp;Ellsworth</span>]]'''''&thinsp;,&nbsp;[[Editor|<span style="color:black">ed.</span>]]&nbsp;[[User talk:Paine Ellsworth|<sup>put'r&nbsp;there</sup>]]&nbsp;<small>16:29, 1 December 2022 (UTC)</small>
:See test case at [[Template:Rail-interchange/testcases#Taiyuan Metro]] – had to use {{code|<nowiki>{{#switch: {{lc: {{{2}}} }}</nowiki>}} to get the image to appear. Is that what you are looking for? '''''[[User:Paine Ellsworth|<span style="font-size:92%;color:darkblue;font-family:Segoe Script">P.I.&nbsp;Ellsworth</span>]]'''''&thinsp;,&nbsp;[[Editor|<span style="color:black">ed.</span>]]&nbsp;[[User talk:Paine Ellsworth|<sup>put'r&nbsp;there</sup>]]&nbsp;<small>16:29, 1 December 2022 (UTC)</small>

Revision as of 03:43, 2 December 2022

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.

Edit request 30 October 2022 (Guadalajara)

Changed the way parameters were handled in order to add a default for Mi Macro lines whose naming system works differently than that of the urban rail. Also added the BRT network, Mi Macro, and the train feeder bus network, SiTren, and updated the train line icons to more visible versions.

The entry would now look like this:

| guadalajara = {{#switch: {{{2}}}
  | TE = {{#if: {{{3|}}}
    | [[File:Guadalajara L{{{3|}}}.svg|{{{size|16}}}px|link=Line {{{3}}} of the Guadalajara urban rail system|alt=Line {{{3}}} of the Guadalajara urban rail system]]
    | [[File:Logo de SITEUR T.svg|{{{size|16}}}px|link=Guadalajara urban rail system|alt=Guadalajara urban rail system]]
  }}
  | MM = {{#if: {{{3|}}}
    | [[File:Logo de Mi Macro {{{3|}}}.svg|{{{size|16}}}px|link=Mi Macro {{{3}}}|alt=Mi Macro {{{3}}}]]
    | [[File:Logo del Macrobús.svg|{{{size|16}}}px|link=Guadalajara Mi Macro|alt=Guadalajara Mi Macro]]
  }}
  | ST = [[File:Logo de SITEUR T.svg|{{{size|16}}}px|link=Sistema Integral del Tren Ligero|alt=Sistema Integral del Tren Ligero]]
  | #default = [[File:Logo de SITEUR T.svg|{{{size|16}}}px|link=Guadalajara urban rail system|alt=Guadalajara urban rail system]]
}}

SistemaRayoXP (talk) 19:28, 30 October 2022 (UTC)[reply]

 Done * Pppery * it has begun... 16:00, 6 November 2022 (UTC)[reply]

Edit request 30 October 2022

Description of suggested change: Add Monterrey Metro to the template.

Diff:

| monterrey = {{#switch: {{{2}}}
  | MT = {{#if: {{{3|}}}
    | [[File:Linea{{{3|}}}mty.svg|{{{size|16}}}px|link=Metrorrey Line {{{3}}}|alt=Metrorrey Line {{{3}}}]]
    | [[File:Metrorrey logo 2007 relanzado oficialmente.svg|{{{size|16}}}px|link=Metrorrey|alt=Monterrey's Metrorrey metro system]]
  }}
  | TM = [[File:TransmetroMetrorrey.png|{{{size|16}}}px|link=TransMetro|alt=TransMetro]]
  | EV = [[File:EcoviaLogo.png|{{{size|16}}}px|link=Ecovía|alt=Ecovía]]
  | #default = [[File:Metrorrey logo 2007 relanzado oficialmente.svg|{{{size|16}}}px|link=Metrorrey|alt=Monterrey's Metrorrey metro system]]
}}

SistemaRayoXP (talk) 20:27, 30 October 2022 (UTC)[reply]

 Done * Pppery * it has begun... 16:00, 6 November 2022 (UTC)[reply]

Template-protected edit request on 6 November 2022

Description of suggested change: Add Bangladesh to the template.

Diff:

| bangladesh ={{#switch: {{lc: {{{2}}} }}
  | r =[[File:Bangladesh Railway Logo.svg|{{{size|20}}}px|link={{{link|Bangladesh Railway}}}]]
  }}

Mehedi Abedin 17:07, 6 November 2022 (UTC)[reply]

The image is a bit big; isn't the max allowed 20px? Primefac (talk) 15:25, 8 November 2022 (UTC)[reply]
@Primefac: Sorry, my bad. I change the code and brought it to 20px. Also repeated the testcase. Mehedi Abedin 16:43, 9 November 2022 (UTC)[reply]
 Completed. P.I. Ellsworth , ed. put'r there 16:36, 11 November 2022 (UTC)[reply]

Edit request 10 November 2022 (Athens)

Description of suggested change: Improvements to the default size of the Tram and Suburban Railway icons, and link update to reflect recent move of the Athens Suburban Railway article. Test cases: Template:Rail-interchange/testcases#Athens (10 November 2022 - proposed). --Minoa (talk) 02:56, 10 November 2022 (UTC)[reply]

Syntax:

| athens ={{#switch: {{lc: {{{2}}} }}
  | m = [[File:{{#if:{{{3|}}}|Athens Metro Line {{{3}}}|Logo of the Athens Metro Operating Company (AMEL)}}.svg|{{{size|16}}}px|link={{{link|{{#if:{{{3|}}}|Line {{{3}}} (Athens Metro)|Athens Metro}}}}}|alt={{{alt|{{{link|Athens Metro {{#if:{{{3|}}}|Line {{{3}}}}}}}}}}}]]
  | t = [[File:{{#if:{{{3|}}}|Athens Tram Line {{{3}}}|Logo of the Athens Tram (icon only)}}.svg|{{{size|{{#if:{{{3|}}}|16|x16}}}}}px|link={{{link|Athens Tram}}}|alt={{{alt|{{{link|Athens Tram {{#if:{{{3|}}}|Line {{{3}}}}}}}}}}}]]
  | p = [[File:{{#if:{{{3|}}}|Athens Suburban Railway Line {{{3}}}|Proastiakos icon (no text)}}.svg|{{{size|{{#if:{{{3|}}}|16|24}}}}}px|link={{{link|Athens Suburban Railway}}}|alt={{{alt|{{{link|Athens Suburban Railway {{#if:{{{3|}}}|Line {{{3}}}}}}}}}}}]]
  | ose = [[File:OSE-Logo.svg|{{{size|24}}}px|link={{{link|Hellenic Train}}}|alt={{{alt|{{{link|Hellenic Train}}}}}}]]
  }}
Given that both are now on adjacent stations, I wonder if this could be simplified by just wrapping {{rail icon}}? Mackensen (talk) 03:03, 10 November 2022 (UTC)[reply]
Sadly, I am not in a good mood to debate that right now: we'll deal with that later. {{rint}} is easier for use to use for now, because the syntax is shorter. --Minoa (talk) 03:23, 10 November 2022 (UTC)[reply]
Oh, I didn't mean dropping rint, I just meant having rint invoke rail icon. Mackensen (talk) 03:37, 10 November 2022 (UTC)[reply]
I've worked the sandbox code to use rail icon, so it's using the same sizes as defined in the modules. Those can be overridden at the rint level of course. Mackensen (talk) 12:19, 10 November 2022 (UTC)[reply]
Oh no, I got a shorter version:
| athens ={{rail icon|{{#switch:{{lc:{{{2}}}}}
  | m =Athens Metro
  | t =Athens Tram
  | p =Athens Suburban Railway
  | ose =Hellenic Train
  }}|{{{3|}}}|size={{{size|}}}|alt={{{alt|}}}|link={{{link|}}}}}
--Minoa (talk) 12:57, 10 November 2022 (UTC)[reply]
Even better. Done, Mackensen (talk) 22:20, 10 November 2022 (UTC)[reply]

Edit request 28 November 2022

Description of suggested change: I would like to propose that we add a PCC streetcar icon () to the template. This type of streetcar is very commonly used on lines in the United States and would be a much more recognizable icon.

Diff:

| heritage ={{#switch: {{lc: {{{2}}} }}

| rail =[[File:BSicon {{#if:{{{3|}}}|ex|}}lDAMPF.svg|{{{size|15}}}px|link={{{link|Heritage railway}}}|alt={{{alt|{{{link|Heritage railway}}}}}}]]

| tram =[[File:BSicon BRILL.svg|{{{size|18}}}px|link={{{link|Heritage streetcar}}}|alt={{{alt|{{{link|Heritage streetcar}}}}}}]] }}
+
| heritage ={{#switch: {{lc: {{{2}}} }}

| rail =[[File:BSicon {{#if:{{{3|}}}|ex|}}lDAMPF.svg|{{{size|15}}}px|link={{{link|Heritage railway}}}|alt={{{alt|{{{link|Heritage railway}}}}}}]]

| tram =[[File:BSicon BRILL.svg|{{{size|18}}}px|link={{{link|Heritage streetcar}}}|alt={{{alt|{{{link|Heritage streetcar}}}}}}]] }}

I have already made the proposed change in the sandbox for testing. Thank you for your consideration. --RickyCourtney (talk) 14:43, 28 November 2022 (UTC)[reply]

 Completed – see Template:Rail-interchange/testcases#PCC streetcar. P.I. Ellsworth , ed. put'r there 15:31, 29 November 2022 (UTC)[reply]

Wrapper feedback requested 29 November 2022

Description of suggested change: I would like to ask for feedback about my new wrapper for Paris, before I formally propose the change. Test cases: Template:Rail-interchange/testcases#Paris (12 November 2022 - proposed).

Syntax:

| paris ={{rail icon|{{#switch:{{lc:{{{2}}}}}
  | m|metro = Paris Métro
  | r|rer = Réseau Express Régional
  | t|tram = Tramways in Île-de-France
  | i|transilien = Transilien
  | #default = Paris Other
  }}|{{#switch:{{lc:{{{2}}}}}
  | a = a
  | b|bus = b
  | c|cdgval = vc
  | g|gdslignes = g
  | mo|montmartre = m
  | n|noctilien = n
  | o|orlyval = vo
  | te|ter = t
  | #default = {{{3|}}}
  }}|size={{{size|}}}|alt={{{alt|}}}|link={{{link|}}}}}

--Minoa (talk) 23:25, 29 November 2022 (UTC)[reply]

Some of those icons may not conform to WP:ACCESSIBILITY requirements for MOS:CONTRAST. Bazza (talk) 10:08, 1 December 2022 (UTC)[reply]
Hmm, what icons do you think would need swapping out? Because my request was actually kind of behind the scenes technical thing. I hope you know what I mean. --Minoa (talk) 23:02, 1 December 2022 (UTC)[reply]

Template-protected edit request on 30 November 2022

Adding the logo for the Taiyuan Metro.

| taiyuan ={{#switch: {{lc: {{{3}}} }}
  | metro = [[File:Taiyuan Metro logo.svg|{{{size|16}}}px|link={{{link|Taiyuan}}}|alt={{{alt|{{{link|Taiyuan Metro}}}}}}]]

Durian Farmer (talk) 18:18, 30 November 2022 (UTC)[reply]

See test case at Template:Rail-interchange/testcases#Taiyuan Metro – had to use {{#switch: {{lc: {{{2}}} }} to get the image to appear. Is that what you are looking for? P.I. Ellsworth , ed. put'r there 16:29, 1 December 2022 (UTC) – to ping Durian Farmer P.I. Ellsworth , ed. put'r there 03:42, 2 December 2022 (UTC)[reply]