Template talk:LIRR links
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||
|
Display of stations with two words in name
[edit]@Train2104: I've been working on cleaning up and fixing the code, but I can't figure out how to get stations with two words in their names to display correctly. I tried using an #ifexist statement, but couldn't get it to work. Maybe you could take a look at my sandbox to get an idea of what I was trying to do? Thanks! –Daybeers (talk) 23:15, 4 May 2018 (UTC)
- @Useddenim: Any ideas for this? –Daybeers (talk) 23:17, 4 May 2018 (UTC)
- @Daybeers: I’m not sure I understand what you’re asking. Do you mean that the template works correctly for Xxx station, but not Xxx (LIRR station)? If that is the problem, then the solution is to check if the last character of
{{PAGENAMEBASE}}
is “)”. I.e.:{{#ifeq:{{Str mid|{{{1}}}|-1}}|)|
if ends in )|
otherwise}}
.
See Template:UK road for an example of how this is implemented. Useddenim (talk) 10:33, 5 May 2018 (UTC)- @Useddenim: No, I've gotten it to work with "xxx station" and "xxx (LIRR station)" but not with stations with two words in their names, ex. Great Neck (LIRR station). –Daybeers (talk) 15:35, 5 May 2018 (UTC)
- Actually, I just realized this won't be a problem once all the moves are completed from "xxx (LIRR station)" to "xxx station (LIRR)". –Daybeers (talk) 15:37, 5 May 2018 (UTC)
- @Daybeers: I’m not sure I understand what you’re asking. Do you mean that the template works correctly for Xxx station, but not Xxx (LIRR station)? If that is the problem, then the solution is to check if the last character of
LIRR Branch Timetable
[edit]Could a section be added for branch timetables like what is done for the subway? Thanks.--Kew Gardens 613 (talk) 23:36, 6 May 2018 (UTC)
- Can you give me an example? I'm not familiar. –Daybeers (talk) 01:15, 7 May 2018 (UTC)
Traintime
[edit]Now that Template:MNR links provides links to Traintime realtime status (replacing AVIS links) for Metro-North, maybe LIRR should do the same, since the Traintime website supports both. Possibly I should not have done the filtering I did in Template:MNR links traintime code or should have named that template differently, but I didn't think of this issue. Thoughts? I'll let someone else do it unless you need help. jhawkinson (talk) 00:10, 4 November 2023 (UTC)