Template talk:Stnlnk

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Trains / Stations / in UK (Rated Template-class)
WikiProject icon This 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
 Template  This template does not require a rating on the project's quality scale.

Station Disambig[edit]

Would it be possible to add a second param so stations like Sheffield Midland and Sheffield Victoria can be distinguished between? Sfan00 IMG (talk) 12:21, 13 June 2012 (UTC)

I see an optional parameter has been added, to allow for cases where the disambiguation is in brackets, e.g. Bramley (Hampshire) railway station. This won't help in the case of the Sheffield stations listed above. However, this depends on how the user wants to display the result - e.g. Sheffield Midland or Sheffield. As there are various permutations possible, it would be easier simply to use a piped link in these circumstances. It's also worth bearing in mind that the method of disambiguating stations is inconsistent - see Whitchurch railway station for example.  An optimist on the run! 12:59, 13 June 2012 (UTC)
Where would be the best place to sart a disscussion about naming consistency?
UK Approach seems to be <name> (<locality>|<operator>) for open stations and <name> (<company>) for historical.

Sfan00 IMG (talk) 13:27, 13 June 2012 (UTC)

A couple of hiccups with today's edits. Firstly, {{stnlnk|Bramley|Hampshire}} resolves to Bramley(Hampshire) railway station rather than Bramley (Hampshire) railway station. Secondly the documentation talks of [[Bramley (Hampshire) railway station|Newport]], and I assume it was intended to be [[Bramley (Hampshire) railway station|Bramley]]. - David Biddulph (talk) 13:13, 13 June 2012 (UTC)
Looks like the first hiccups been fixed - result is now Bramley. I've corrected my mistake in the documentation.  An optimist on the run! 13:49, 13 June 2012 (UTC)
I believe that the position of the disambiguator depends upon whether or not the disambiguator was part of the official name. However, the best place for discussion would be at Wikipedia talk:Naming conventions (UK stations) (where there have been inconclusive discussions in the past). If starting a new thread there, or restarting the existing one, you should also pop a note at WT:UKRAIL, WT:STATIONS and WT:RAIL pointing back to that discussion. --Redrose64 (talk) 15:54, 13 June 2012 (UTC)
You're welcome to raise this issue again on the talk page of the article which Redrose mentions. There is a discussion there from 2010 to which I contributed where much banging of heads against walls took place. Lamberhurst (talk) 19:43, 13 June 2012 (UTC)

Station Disambiguation (again)[edit]

Would it be possible to add a (named) parameter so that a disambiguation name could be included after a separating comma, in the manner of {{StnlnkA}}? (Hopefully this would be a non-controversial addition.) Useddenim (talk) 22:05, 16 June 2013 (UTC)

Which stations use a comma instead of a parenthesis? --Redrose64 (talk) 09:21, 17 June 2013 (UTC)
I haven't figured out how to get a listing of all the articles that contain “railway station, ” in the page name, but there are many from Australia (Adelaide, Brisbane, Melbourne, New South Wales, Perth), with a number of others for Scotland, and a few from the USA (Chicago, West Virginia), and Canada (Montreal). Useddenim (talk) 13:50, 17 June 2013 (UTC)
Which ones in Scotland? --Redrose64 (talk) 18:20, 17 June 2013 (UTC)
There's probably more around and about, but these are the ones I've found so far. Useddenim (talk) 22:37, 17 June 2013 (UTC)
These are aberrations which need to be fixed rather than accommodated. The use of parentheses after the station name is the standard method of disambiguation used in railway material. Lamberhurst (talk) 07:34, 18 June 2013 (UTC)
I'm sure the Aussies appreciate being referred to as aberrations. — Preceding unsigned comment added by (talk) 16:37, 18 June 2013 (UTC)
Since when was Scotland part of Australia? --Redrose64 (talk) 17:41, 18 June 2013 (UTC)

208 238 stations in Australia and New Zealand are of the form “Name, Place”. This is more than just “an aberration”.


Useddenim (talk) 00:07, 19 June 2013 (UTC)

Not quite sure how this helps given that Australian and New Zealand stations are covered by {{StnlnkA}} which, as is rightly mentioned above, incorporates the functionality sought here. Lamberhurst (talk) 07:39, 19 June 2013 (UTC)
I wrote {{Stnlnk2}} as a quick hack when I saw that {{Stnlnk}} was edit protected. I expanded its functionality and renamed it when all I got were snide remarks (“aberrations”, “Scotland part of Australia”) instead of help.
Nonetheless, this still doesn't address the issue noted previously of “Name (Disambig) railway stationvs.Name railway station (Disambig)”. Useddenim (talk) 00:02, 20 June 2013 (UTC)
My comment here was not directed at you but at the comment immediately above, which was itself a response to Lamberhurst. I took Lamberhurst's remark about "aberrations" as referring to the three Scottish stations which have a comma. --Redrose64 (talk) 10:04, 20 June 2013 (UTC)
I'm afraid that I don't see any snide remarks in the above discussion except perhaps that of the anonymous ip. If you feel that my remarks caused offence, please accept my apology. Lamberhurst (talk) 12:44, 20 June 2013 (UTC)

Change request[edit]

Would it be possible to change the coding of the template
from [[{{#if:{{{2|}}}|{{{1}}} ({{{2}}})|{{{1}}}}} railway station|{{{1}}}]]
  to   [[{{#if:{{{2|}}}|{{{1}}} ({{{2}}})|{{{1}}}}} railway station|{{{alt|{{{1}}}}}}]] ?

This would allow for the use of the optional parameter alt= to change the wikilink text, but would not affect any existing usage of the template. Useddenim (talk) 00:41, 9 October 2013 (UTC)

Question: Why not just use the explicit |1= that already exists? — {{U|Technical 13}} (tec) 23:26, 28 February 2014 (UTC)
Because the template, as it currently is written, uses the same input for both the wikilink target and text. However, it is not always desirable to have both the same. For example, a local diagram would want to differentiate between say [[Exeter St Davids railway station]] and [[Exeter St Thomas railway station]], but on a cross-country RDT [[Exeter Central railway station|Exeter]] may be sufficient. Useddenim (talk) 01:18, 1 March 2014 (UTC)
Would [[{{#if:{{{2|}}}|{{{1}}} ({{{2}}})|{{{1}}}}} railway station|{{#if:{{{2|}}}|{{{1}}} ({{{2}}})|{{{1}}}}}]] resolve the problem? I really dislike the idea of adding a new parameter here if it can be avoided (makes the template more confusing and cluttered for inexperienced editors). Marking as answered since I'm now watching it while we figure what is best. :) — {{U|Technical 13}} (tec) 02:15, 1 March 2014 (UTC)
No, because that would eliminate the (internal) disambiguation (and IMHO also be more confusing to try and understand). My thinking is that making it a named parameter would make it less likely for inexperienced editors to muck around with it (because it requires slightly more thought about what they’re doing). Useddenim (talk) 15:58, 1 March 2014 (UTC)
Useddenim, do you really need this? {{stnlnk|Exeter Central|Exeter}} is not that shorter than [[Exeter Central railway station|Exeter]]. I only use such templates (and I do use them extensively, as you may know) when they really improve code readability. In this case there is not much difference, IMHO, while adding another clause for such an ubiquitous template isn't very good. YLSS (talk) 11:54, 1 March 2014 (UTC)
Perhaps Exeter isn’t the best example, though; but the London Mainline termini are variously referred to as “London”, “London Foo” or “Foo”, depending on context, but all are linked to [[London Foo railway station]]. (And after being ignored for five months, now suddenly there’s objections?) Useddenim (talk) 15:58, 1 March 2014 (UTC)
  • Don't you think that is a bit of an exaggeration? You posted this request "17:27, 28 February 2014 (UTC)" according to the page's history. That is when the request was made, not when you first posted the idea months ago and got no input (because no-one was looking until you posted the request. The fact that a tree makes a noise when it falls in the forest means nothing if no-one hears it). Anyway, I need to go right now, but there seems to be a lack of consensus at the moment. — {{U|Technical 13}} (tec) 16:31, 1 March 2014 (UTC)
Yeah, a little. Useddenim (talk) 17:03, 1 March 2014 (UTC)

Template-protected edit request on 12 August 2015[edit]

This template would work better if there was a third parameter allowing text different from parameter 1 to be displayed within the link to ensure better MOS:LINK compliance, as demonstrated in the template sandbox here. Specifically, the contents of the template ought to be adjusted as follows:

[[{{#if:{{{2|}}}|{{{1}}} ({{{2}}})|{{{1}}}}} railway station|{{{1}}}]]

[[{{#if:{{{2|}}}|{{{1}}} ({{{2}}})|{{{1}}}}} railway station|{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}]]

This ensures that, assuming there is a third parameter, it is used and displayed, otherwise falling back on the default case. This would not affect any change in the template in its current usage.

Strzegom (talk) 05:42, 12 August 2015 (UTC)

@Strzegom: Red information icon with gradient background.svg Not done: please establish a consensus for this alteration before using the {{edit template-protected}} template. Also, I see that you have been altering a lot of station links to display the word "station" - where was this discussed? --Redrose64 (talk) 16:30, 12 August 2015 (UTC)
Mild weak support, although I still prefer an explicitly named parameter that clearly indicates that text has been substituted. (And where were you a year-and-a-half ago when I made that suggestion?) Useddenim (talk) 18:57, 12 August 2015 (UTC) |alt= is preferable to unnamed parameter creep. Also, citing MOS:LINK is too vague. Exactly what are you referring to, Strzegom? Useddenim (talk) 19:27, 12 August 2015 (UTC)
@Useddenim: Link clarity. For example, when referring to a station "X", it would either simply be referred to in the article as [[X railway station|X]], or alternatively, as [[X railway station|X]] station, in which case it might be more appropriate to link to the word "station" as well, as the link refers not to the location "X", but the station "X"; in other words, it would be formatted as [[X railway station|X station]], hence the necessitating a third parameter. Note that when referring to two stations, however, this is not necessary; either it is simply formatted as [[X railway station|X]] and [[Y railway station|Y]], or alternatively, as [[X railway station|X]] and [[Y railway station|Y]] station(s). See sections "Link clarity", "Link specificity", and "Piped links" for further clarification. By the way, I'd be fine with using an |alt= parameter as opposed to an unnamed third parameter; it's probably preferable in any case. Strzegom (talk) 20:28, 12 August 2015 (UTC)
Also, is there any possibility of deprecating the RWS template? It's redundant to this and MOS:ALLCAPS dictates that it's unnecessary (i.e., articles listed here with "Railway Station" capitalized should be moved). Strzegom (talk) 20:42, 12 August 2015 (UTC)
Why on earth deprecate the rws template which is shorter and easier to use than this one? MOS:ALLCAPS is of no assistance whatsoever here. Lamberhurst (talk) 21:42, 12 August 2015 (UTC)
I'm referring to this template, which is used almost nowhere and provides nearly-identical functionality. {{rws}} merely redirects here. Strzegom (talk) 21:46, 12 August 2015 (UTC)
The {{RWS}} template is not at all equivalent to {{stnlnk}}. If fed with identical values, the results are different. Consider for example {{RWS|Banbury}} and {{stnlnk|Banbury}} - these produce Banbury and Banbury; the redlink makes those obviously different, so try {{RWS|Morningside}} and {{stnlnk|Morningside}} - these produce Morningside and Morningside. --Redrose64 (talk) 22:58, 12 August 2015 (UTC)
@Strzegom: The more you refer to MOS:LINK the less inclined I become to agree with you, as {{stnlnk}}/{{rws}} et al. are primarily used in WP:Route diagram templates where the word “Station” is generally superfluous. I still agree with the idea that it should be possible to override the default text, but not for the reasons you suggest. Useddenim (talk) 01:04, 13 August 2015 (UTC)
Although that's the intended use of the template, it is also often used in articles' prose sections, hence this edit request. I personally don't see any reason that it should be used in this way and wouldn't have any objection to simply replacing usages of it in prose to normal link wiki markup, but in what cases would it be necessary to override it otherwise? Strzegom (talk) 01:15, 13 August 2015 (UTC)