Template talk:Rail-interchange: Difference between revisions
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. Ellsworth</span>]]''''' , [[Editor|<span style="color:black">ed.</span>]] [[User talk:Paine Ellsworth|<sup>put'r there</sup>]] <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. Ellsworth</span>]]''''' , [[Editor|<span style="color:black">ed.</span>]] [[User talk:Paine Ellsworth|<sup>put'r there</sup>]] <small>16:29, 1 December 2022 (UTC)</small> |
Revision as of 03:43, 2 December 2022
Template:Rail-interchange is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
Trains Template‑class | |||||||
|
|
|||||||
This page has archives. Sections older than 30 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present. |
Edit request 30 October 2022 (Guadalajara)
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
- Testcases: Guadalajara
- Sandbox: Updated entry for Guadalajara mass transit system (Mi Movilidad)
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)
Edit request 30 October 2022
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Description of suggested change: Add Monterrey Metro to the template.
- Testcases: Monterrey
- Sandbox: Added entry for Monterrey's Metrorrey
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)
Template-protected edit request on 6 November 2022
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Description of suggested change: Add Bangladesh to the template.
- Testcases: Bangladesh
- Sandbox: Added entry for Bangladesh' Railway
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)
- The image is a bit big; isn't the max allowed 20px? Primefac (talk) 15:25, 8 November 2022 (UTC)
- @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)
- Completed. P.I. Ellsworth , ed. put'r there 16:36, 11 November 2022 (UTC)
Edit request 10 November 2022 (Athens)
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
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)
- 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)
- Oh, I didn't mean dropping rint, I just meant having rint invoke rail icon. Mackensen (talk) 03:37, 10 November 2022 (UTC)
- 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)
- Oh no, I got a shorter version:
- --Minoa (talk) 12:57, 10 November 2022 (UTC)
| 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|}}}}}
- Even better. Done, Mackensen (talk) 22:20, 10 November 2022 (UTC)
- 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)
Edit request 28 November 2022
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
- Completed – see Template:Rail-interchange/testcases#PCC streetcar. P.I. Ellsworth , ed. put'r there 15:31, 29 November 2022 (UTC)
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)
- Some of those icons may not conform to WP:ACCESSIBILITY requirements for MOS:CONTRAST. Bazza (talk) 10:08, 1 December 2022 (UTC)
- 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)
Template-protected edit request on 30 November 2022
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
- 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)