Template talk:Track gauge

Unexpected effects
I found this, not sure if it has to do with TemplateStyles etc. Article Great Western Railway uses Infobox GWR, Track gauge and Convert.
 * It has template output like:
 * (in lede)
 * expct:
 * shows: 4 ft 8+&frac12; in (1,435 mm)
 * 11+1/2 mi section (in body)
 * expct: 11+1/2 mi section
 * shows: 11+&frac12;-mile (19 km) section


 * That is: the "+" and "&frac12;" (fraction character) are unexpected. This also happens within.

Research & reproduce: I found that when is removed (absent), the output is regular. To reproduce: in put the lede (and the  code from body), and check with/without.

This is as far as I could get. Has to do with TS? -DePiep (talk) 09:52, 17 May 2021 (UTC)


 * This is due to the specific template first using this module when the module is wrapping the gauge in a link and is fundamentally this issue. Let me see if I can fix it here. Izno (talk) 15:10, 17 May 2021 (UTC)
 * The issue is in . I think I can do a limited fix though I hate that I must do it the way in question. Let me tweak the sandbox. Izno (talk) 15:17, 17 May 2021 (UTC)
 * First fix works. I will see if I like one of the other solutions I was thinking about. Izno (talk) 15:32, 17 May 2021 (UTC)
 * I think I do prefer this version. Please feel free to sync as desired. Izno (talk) 15:49, 17 May 2021 (UTC)
 * Test #1. Basic input options look fine, using Module:Track gauge/sandbox: see Template:Track_gauge/testcases ✅. -DePiep (talk) 21:23, 17 May 2021 (UTC)
 * Test #2: Article Great Western Railway with Track gauge/sandbox, also in Infobox GWR/sandbox. OK in preview. ✅. -DePiep (talk) 21:38, 17 May 2021 (UTC)
 * OK. Edit request: Please someone put all code Module:Track gauge/sandbox into Module:Track gauge (diff). -DePiep (talk) 21:38, 17 May 2021 (UTC)

Recurring bug

 * I'm still seeing the + (but not the fraction character) at Track gauge ("the Dundee and Newtyle Railway (1831) in the north-east of Scotland adopted 4 ft 6+1⁄2 in (1,384 mm)"). The correct output appears in preview. Hairy Dude (talk) 12:48, 24 August 2021 (UTC)
 * . OK here. Did you try to Purge the article (=click on clock topright on the page)? (Could be you have an old version in the cache). Anyway, I have made a minor edit, so the article should reload anyway. OK now? -DePiep (talk) 12:55, 24 August 2021 (UTC)
 * That was the first thing I tried after I saw the preview was correct. And I also made a minor edit to check. Are you not seeing it? Maybe it's some quirk of the mobile interface. Hairy Dude (talk) 13:04, 24 August 2021 (UTC)
 * ah, mobile. Yes wrong on my mobile device too. Don't know from here. -DePiep (talk) 18:47, 24 August 2021 (UTC)


 * , could you take a look?
 * In mobile view, Track gauge using shows the "+"-sign in a fraction. -DePiep (talk) 11:02, 11 September 2021 (UTC)
 * This change should work around it. Izno (talk) 13:22, 11 September 2021 (UTC)
 * Coming back two years later, I'm still seeing these pluses at Track gauge. Hairy Dude (talk) 13:00, 21 August 2023 (UTC)

Lego Trains
DePiep (talk) 15:11, 30 August 2022 (UTC)


 * Prepared in sandbox. -DePiep (talk) 15:53, 30 August 2022 (UTC)

4ft 2 1/2in (1283 mm)
-DePiep (talk) 16:03, 30 August 2022 (UTC)
 * prepared in sandbox, see testcases. -DePiep (talk) 16:16, 30 August 2022 (UTC)

1522 mm (Helsinki metro)
-DePiep (talk) 16:59, 30 August 2022 (UTC)
 * prepared in sandbox. -DePiep (talk) 17:01, 30 August 2022 (UTC)

Template-protected edit request on 30 August 2022
Please replace all code in Module:Track gauge/data &larr; Module:Track gauge/data/sandbox

Changes: three new sourced gauge-definitions are added. Also (minor), trivial comma replaced by period (46&times;).

Test: testcases 1, 2, 3. DePiep (talk) 16:48, 30 August 2022 (UTC), added #3 -DePiep (talk) 17:12, 30 August 2022 (UTC)
 * ✅.  P.I. Ellsworth &thinsp;, ed.  put'r there 19:31, 30 August 2022 (UTC)

1ft 11in
I'm kind of surprised this one isn't already on the list. Still: Grachester (talk) 23:54, 13 December 2022 (UTC)
 * , great report! I understand this one is in the source. If so, a well-defined one.
 * I have a question though: could you check whether this one is the same as:
 * A. (=$22 3/4$ in; )? or maybe
 * B. (defined in metric only; List of track gauges)
 * C. (defined in metric only; List of track gauges)?


 * What we want to have is the definition of a gauge, say: the size as ordered. So when in practice, when it is ~$1/4$ inch off, it might be the same gauge (but source is imprecize).
 * Then, when these are the same, that explains why you were surprised: they are present under a different size.
 * OTOH, if these are not the same (i.e., they are absolutely defined to be different by original order), this is an unique gauge railway.
 * -DePiep (talk) 21:52, 27 December 2022 (UTC)
 * All in :
 * Lakeside Amusement Park
 * Dinorwic quarry
 * Penrhyn Castle Railway Museum
 * Penrhyn Quarry Railway
 * Inny Valley Railway
 * -DePiep (talk) 22:11, 27 December 2022 (UTC)


 * Hi . The source gives the gauge of the tramway as 1ft 11in, as distinct to other close variants, so I believe it is the definition of the gauge. I'm surprised this gauge isn't used more, since it would be an obvious variant of "near-2ft" gauges. Anyway, I do believe this is a unique (or at least rare) gauge that should be separately defined in the template. Thanks, Grachester (talk) 02:17, 28 December 2022 (UTC)
 * OK, thanks, yes that is plausible. Now the other part of my (confusing) question is:
 * Are the other, nearby gauge sizes possibly the same as this 1 ft 11 in, but only more sloppy researched/documented ?
 * Because, it is very likely that these are originally defined the same. Why would there be such small variations? Why would the Hendre-Ddu Tramway have an unique gauge by itself? (surprising indeed, as you said yourself). So the 2nd question is: could you take a look at the other lines, whether their gauge is well-sourced to be different? DePiep (talk) 21:08, 28 December 2022 (UTC)
 * it's entirely possible that there are other railways at 1ft 11in. Those listed above as 1 ft 10¾ in gauge are correct. There are a lot of tramways and railways in Wales that served mines and quarries that were "around" 2ft gauge. Most of these are either undocumented, and/or were roughly laid and their gauge varied by +/- an inch or even two. So stating a precise gauge for them is difficult. I don't have a list of other known 1ft 11in gauge railways, but there certainly would have been some. These small differences didn't matter for horse/human worked tramways, but did make a difference once the railways were locomotive-worked, as the Hendre Ddu was from 1921 onwards. So I do think it is meaningful to list this specific version of "2ft gauge" even if the Hendre Ddu is the only (so far) documented example. Grachester (talk) 00:21, 29 December 2022 (UTC)
 * OK, we will add it.
 * The grouping you mention put on the todo-list (e.g., widening the scope of into ".. circa 2 ft"). DePiep (talk) 08:23, 31 December 2022 (UTC)

Template-protected edit request on 31 December 2022

 * Please replace all code from Module:Track gauge/data/sandbox into Module:Track gauge/data.
 * Change: add gauge 1ft 11in, per sourced request.
 * Test: see section header box. DePiep (talk) 08:58, 31 December 2022 (UTC)
 * ✅ * Pppery * it has begun... 22:13, 1 January 2023 (UTC)

Dual gauge?
How is dual gauge (e.g., 4'8-1/2" and 3') presented with this template? Casey (talk) Casey (talk) 02:00, 31 December 2022 (UTC)


 * Only as separate gauges:  &rarr;
 * and.
 * DePiep (talk) 08:20, 31 December 2022 (UTC)
 * Make that  Peter Horn User talk 00:43, 5 March 2023 (UTC)
 * Could be helpful: . DePiep (talk) 06:31, 5 March 2023 (UTC)

Rennes Metro
For the Rennes Metro please add  (1,620 mm) Peter Horn User talk 02:23, 4 February 2023 (UTC) Peter Horn User talk 02:26, 4 February 2023 (UTC)
 * Could it be that Métro de Rennes, the "source" of this strange gauge, has an error? Peter Horn User talk 11:33, 4 February 2023 (UTC) Peter Horn User talk 11:37, 4 February 2023 (UTC)
 * I'm not that interested where an error comes from ;-), which answers nothing. I'd like to see a confirming source :-).
 * At first, a new metro way in the 1960s(!) in France(!) would hardly have a non-standard gauge. However, since the city has a history in fr:Tramway de Rennes from 19th century, a distinct gauge could be plausible. That is, the new metro would have chosen the same gauge as their old tramways...
 * For now, finding a source is best, probably frwiki is better positioned. If in say a few months a source is not found, we'll have to remove any gauge number as not-verifiable. DePiep (talk) 12:15, 4 February 2023 (UTC)
 * I revised wiki Métro de Rennes to 1435 mm on the basis that I got to a previous revision. I'll see what will bee their reaction. Peter Horn User talk 02:36, 7 February 2023 (UTC)
 * Good idea! The process I refer to is WP:VERIFY: "material likely to be challenged" &mdash; which we do at this point. Good luck with your French. DePiep (talk) 07:44, 7 February 2023 (UTC)
 * I got a reply on fr:Discussion utilisateur:Peter Horn. There is NO conventional track, only twu roll ways. The 1620 mm is the distance between them. Mystery solved. Peter Horn User talk 00:52, 8 February 2023 (UTC)
 * Métro de Rennes now givves now gives This link . Peter Horn User talk 01:19, 8 February 2023 (UTC) Peter Horn User talk 17:38, 8 February 2023 (UTC)
 * OK then. Don't think we should list this in/as Track gauge. I propose you use simple in the infobox (here, enwiki), and maybe note this detail with it. DePiep (talk) 05:39, 8 February 2023 (UTC)
 * Oops, you already did ;-) DePiep (talk) 06:26, 8 February 2023 (UTC)
 * Found . DePiep (talk) 05:41, 8 February 2023 (UTC)

Swedish foot gauges
There is a discussion at (conversion of old Swedish units of measurement; Narrow-gauge railways in Sweden). Pls discuss there. DePiep (talk) 06:52, 1 March 2023 (UTC)

Yet another new track gauge
For Clifton Rocks Railway  Peter Horn User talk 21:13, 21 July 2023 (UTC)
 * For Lynton and Lynmouth Cliff Railway  Peter Horn User talk 00:20, 22 July 2023 (UTC)

non breaking space instead of comma
can we please use $1,435$ mm ( $1,435$ ) instead of 1,435 mm, as suggested in Manual_of_Style/Dates_and_numbers? ThurnerRupert (talk) 00:03, 28 July 2023 (UTC)

'comma' parameter
This template admits a parameter comma which is described almost nowhere in the description. By "almost nowhere", I mean that the only place where I found it mentioned is at the bottom of the TemplateData rollout, as "Parameter: comma; Description: no description; Type: Unknown; Status: optional". That's rather uninformative, don't you think ? After having seen that parameter in use in several places in the article Dual gauge, I wanted to know what it did, and after reading the above, I still didn't know. Then I guessed that comma=no suppressed the thousands comma in the gauge widths, but after trying to add an example as part of this comment, the preview still separated the thousands with a comma. So please, someone, complete the description of the comma parameter at the bottom of the TemplateData rollout, and also add some examples of its use here and there in the rest of the description. — Tonymec (talk) 15:37, 21 September 2023 (UTC)