Template talk:Track gauge
To help centralize discussions and keep related topics together, most talk pages of subtemplates and modules redirect here |
Template:Track gauge 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. |
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
|
This page has archives. Sections older than 730 days may be automatically archived by Lowercase sigmabot III. |
Unexpected effects
editI 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:
- {{Track gauge|uksg}} (in lede)
- expct: 4 ft 8 1⁄2 in (1,435 mm)
- shows: 4 ft 8 ½ in (1,435 mm)
- {{Convert|11 1/2|mi|km|0|adj=on}} section (in body)
- expct: 11 1⁄2-mile (19 km) section
- shows: 11 ½-mile (19 km) section
- That is: the " " and "½" (fraction character) are unexpected. This also happens within {{Infobox GWR}}.
Research & reproduce: I found that when {{Infobox GWR}} is removed (absent), the output is regular. To reproduce: in Special:ExpandTemplates put the lede (and the {{Convert}} code from body), and check with/without {{Infobox GWR}}.
This is as far as I could get. Has to do with TS? @Izno: -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
formatImp
. 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)
- The issue is in
- 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#All . -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
edit- @DePiep: I'm still seeing the (but not the fraction character) at Track gauge#Early track gauges ("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)
- @Hairy Dude:. 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)
- 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)
- @Hairy Dude:. 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)
- @DePiep: I'm still seeing the (but not the fraction character) at Track gauge#Early track gauges ("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)
- Izno, could you take a look?
- In mobile view, Track gauge#Early track gauges using {{Track gauge|4ft6.5in}} 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)
- This change should work around it. Izno (talk) 13:22, 11 September 2021 (UTC)
Dual gauge?
editHow 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:
{{Track gauge|4ft81/2in|allk=on)}} and {{Track gauge|3ft|allk=on}}
→- 4 ft 8 1⁄2 in (1,435 mm) and 3 ft (914 mm).
- DePiep (talk) 08:20, 31 December 2022 (UTC)
- Make that {{Track gauge|3ft|lk=on}} 3 ft (914 mm) Peter Horn User talk 00:43, 5 March 2023 (UTC)
- Could be helpful: Category:Dual gauge railways (6). DePiep (talk) 06:31, 5 March 2023 (UTC)
Rennes Metro
edit- {{Track gauge}} list definition: (Not defined, not in the list)
- Unit conversion (calculation): 1,620 mm converts to 63.7795 inches (or 5 feet 3 25⁄32 inches)
- Article: Rennes Metro
- Defined in source: (none, see talk below)
- Currently in sandbox: 1620 mm
- Conclusion: Not approved Not added. Consulting fr:Métro de Rennes resulted: Rubber-tyred metro, not fit for the Track gauge list.
References
For the Rennes Metro please add {{Track gauge|1620mm}} 1620mm (1,620 mm (5 ft 3 25⁄32 in)) Peter Horn User talk 02:23, 4 February 2023 (UTC) Peter Horn User talk 02:26, 4 February 2023 (UTC)
- @DePiep: Could it be that fr: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 fr:wiki fr: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" — 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#Écartement métro de Rennes. 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)
- Good idea! The process I refer to is WP:VERIFY: "material likely to be challenged" — which we do at this point. Good luck with your French. DePiep (talk) 07:44, 7 February 2023 (UTC)
- I revised fr:wiki fr: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)
- fr:Métro de Rennes now givves now gives "Documentation technique du VAL 206 [dont le VAL 208 en est l'évolution]" (PDF). http://www.traction-electrique.ch. Retrieved 7 February 2023.
{{cite web}}
: External link in
(help) This link .</ref> Peter Horn User talk 01:19, 8 February 2023 (UTC) Peter Horn User talk 17:38, 8 February 2023 (UTC)|website=
- OK then. Don't think we should list this in/as {{Track gauge}}. I propose you use simple {{Convert}} 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 Category:Rubber-tyred metros (24). DePiep (talk) 05:41, 8 February 2023 (UTC)
- OK then. Don't think we should list this in/as {{Track gauge}}. I propose you use simple {{Convert}} in the infobox (here, enwiki), and maybe note this detail with it. DePiep (talk) 05:39, 8 February 2023 (UTC)
Swedish foot gauges
editThere is a discussion at Talk:List of track gauges § Swedish inches (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
editFor Clifton Rocks Railway#Operations 3 ft 2.5 in {{TrackGauge|3 ft 2.5 in}} Peter Horn User talk 21:13, 21 July 2023 (UTC)
- For Lynton and Lynmouth Cliff Railway#Technical details 3 ft 8 in {{TrackGauge|3 ft 8 in}} Peter Horn User talk 00:20, 22 July 2023 (UTC)
non breaking space instead of comma
editcan we please use 1435 mm ({{val|1435}}) instead of 1,435 mm, as suggested in Wikipedia:Manual_of_Style/Dates_and_numbers? ThurnerRupert (talk) 00:03, 28 July 2023 (UTC)
'comma' parameter
editThis 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)
Template-protected edit request on 21 August 2024
editThis edit request to Module:Track gauge/data has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please change the link for the 1432 mm gauge to Standard-gauge railway#Modern almost standard gauge railways instead of the current Track gauge in Hong Kong. Hong Kong is not the only place with that gauge. Ita140188 (talk) 13:04, 21 August 2024 (UTC)
- Completed. P.I. Ellsworth , ed. put'er there 17:17, 2 September 2024 (UTC)
A missed track gauge
editFor U Line add track gauge 1620 mm Peter Horn User talk 02:23, 23 November 2024 (UTC)
Something amiss/does not match
edit- Scarborough funiculars#St Nicholas Cliff Lift gauge 7 ft 6 in (2,286 mm)
- Scarborough funiculars#North Bay Cliff Lift gauge 6 ft 6 in (1,981 mm)
Peter Horn User talk 03:50, 23 November 2024 (UTC) Peter Horn User talk 03:56, 23 November 2024 (UTC)
Another missed track gauge
editFor List of track gauges Busan Metro Line 4 & Sillim Line 1,700 mm gauge. Peter Horn User talk 01:45, 24 November 2024 (UTC)