Template talk:Track gauge/Archive 4

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Archive 1 Archive 2 Archive 3 Archive 4 Archive 5 Archive 6 Archive 7

Module:RailGauge

Hello all. I've just finished writing a Lua version of this template at Module:RailGauge. The gauge data is stored at Module:RailGauge/data and the test cases are at Module talk:RailGauge/testcases. (You need to ignore the big red crosses on the test cases page and check the actual output - it looks like this is a bug in Module:UnitTests rather than actual failed test cases.) I converted the data from the template code using Module:User:Mr. Stradivarius/RGConvert. The Lua version looks to be a lot quicker than the current template. I did a quick and very unscientific speed comparison by testing the all test cases in my sandbox, and MediaWiki processed the Lua version in 0.66 seconds, and the current template in 2.83 seconds. Please have a play around with it, and see if you find any errors. — Mr. Stradivarius ♪ talk ♪ 07:00, 31 July 2013 (UTC)

Ah, I've just realised why the test cases page is showing the crosses - the template uses   to encode spaces quite a few times, but in the module I've converted these to normal spaces, so there is a difference in the wikitext, but not one that should affect the output in any way. Similarly, I've also changed a few of the named gauge links, from e.g. [[Metre gauge|metre gauge]] to [[metre gauge]], which makes the wikitext simpler but doesn't change the output. — Mr. Stradivarius ♪ talk ♪ 04:58, 1 August 2013 (UTC)
You have beaten me. -DePiep (talk) 22:09, 1 August 2013 (UTC)
How did you solve my thoughts: the "factual definition" (in imperial or metric) vs. "id" vs. what to "mention first" by default? -DePiep (talk) 22:14, 1 August 2013 (UTC)
now I see. You use the mm for id. Great idea! ;-) -DePiep (talk) 22:20, 1 August 2013 (UTC)
But no: no ever one can use "id=1588" twice. -DePiep (talk) 22:22, 1 August 2013 (UTC)
The ids are just the ones that were in the template code already, although they weren't being used for anything. In the module I'm only using them in the checking script to make the gauges easier to find on the data page - the id isn't used at all in the main script. I tried to stick exactly to how the template works, so it should all work in the way that you are used to. Having said that, I could make the ids unique if you want. How about splitting them up into "1588imp" and "1588met", etc.? — Mr. Stradivarius ♪ talk ♪ 03:45, 2 August 2013 (UTC)
Second thought: just leave them as they are. Indeed they are intended as you describe: identification of a gauge, irrespective of its presentation. Is the most stable definition. Presentation (imperial or metric first) is defined independently in a different parameter (and can be overruled by |first=imp). -DePiep (talk) 12:38, 3 August 2013 (UTC)
You need to ignore the big red crosses (In the testpage) [1] - sure. -DePiep (talk) 22:30, 1 August 2013 (UTC)
Not that helpful. -DePiep (talk) 14:17, 3 August 2013 (UTC)
To be clear: just make the move template -> module crisp and clear. All target is testcases only. No personal "won't have any effect" edits please. Prove your thing as a pro. -DePiep (talk) 22:38, 1 August 2013 (UTC)
  • See testcase 1000mm with |allk=on|al=on: a difference occurs. Old template overrules |al=, module does not. The input is not consistent or regular, but can occur. -DePiep (talk) 14:46, 3 August 2013 (UTC)
     fixedMr. Stradivarius ♪ talk ♪ 04:43, 4 August 2013 (UTC)
  • About maintenance category: if not data then. Is arg[ 1 ] trimmed, when used as catsort argument (%s)? Note that we cannot test this categorisation outside mainspace. -DePiep (talk) 15:03, 3 August 2013 (UTC)
    It's not trimmed, as it wasn't trimmed in the existing template. Probably trimming it would make sense though - I'll change it. — Mr. Stradivarius ♪ talk ♪ 04:57, 4 August 2013 (UTC)
  • Am I right that the num-and-den error checks in formatImp could be dropped since it is tested in checkData? -DePiep (talk) 15:15, 3 August 2013 (UTC)
     fixed Yes, that's probably for the best. If the error is triggered then it would cause a script error, which is ugly, but if we drop the error checks then it will just skip the fraction part of the output, which is a neater fallback behaviour. I've changed it already. — Mr. Stradivarius ♪ talk ♪ 04:57, 4 August 2013 (UTC)
  • Live now. Compliments & congrats. -DePiep (talk) 12:24, 4 August 2013 (UTC)

Code change proposals

Split into new section to separate from earliest module talk. Now that it is live, we can make change proposales (as opposed to copy-old-behaviour requirements). -DePiep (talk) 13:15, 4 August 2013 (UTC)
Auto document functions
  • Thank you! I did a spot check on a few of the live pages, and everything seemed to be working ok. Let me know if you spot any issues. I think the next stage in development should be to add functions to automatically generate the tables in the documentation. In particular, Template:RailGauge/doc#All input options, Template:RailGauge/doc#Named gauges and Template:RailGauge/entry check look like they would benefit from automatic generation from the /data subpage. For the entry check table we have all the relevant data in the /data subpage already; for the other one we would need a new "notes" field for each gauge. Do you think we could get away with just having one "notes" field, or do we need separate notes fields for the "all input options" and "named gauges" tables? — Mr. Stradivarius ♪ talk ♪ 13:04, 4 August 2013 (UTC)
Didn't see a knot either.
Yes, auto documentation would be great. I thought this just before: create a function say dataOverview that takes the arg[1] input and returns all data (in wikitable columns). Probably the Aliases per gauge will still make a cell-list as is today, not a separate row. Imp and met aliases absolutely most preferably in different columns. The input better be in a loop, not manual ;-). Indeed we'd like very much a separate note field say sources to point to the sources (as I have started recently for the scaled gauges). Another note column should be for free use. I don't think the sources should be in data file, but free addition (there goes the loop?). Other columns: id(mm)-to-inch calculated (Template:RailGauge/entry check could go, unless we want tech info out of sight from /doc readers). If a Named gauge option exists, it could be in a separate column (the wikitable is sortable of course), or the function could filter on this. You know what? Better set up a demo-table here. To be continued. -DePiep (talk) 13:37, 4 August 2013 (UTC)
These tables below are in development and may change over time, following this talk
setup A: one id row per two (met, imp) outputs
setup A, not supported by anyone anymore
{{RailGauge}} documentation: table setup A
id metric aliases imperial aliases name alias dflt1
(first)
returns name link mm-to-inch calculated source rounding & normalisation note note
1435 1435
1435mm
56.5in
4ft8.5in
standard
usstandard
...
met
imp
1,435 mm (4 ft 8+12 in)
4 ft 8+12 in (1,435 mm)
standard gauge 56.496 in Standard gauge
406 16in
16"
1ft4in
1'4"
imp 16 in (406 mm) 15.984 in
1668 1668
1668mm
1.668m
Iberian met 1,668 mm (5 ft 5+2132 in) Iberian gauge 65.669 in
setup B: one row per (id, dflt1) combination
{{RailGauge}} documentation: table setup B
id dflt1 aliases name alias returns name link mm-to-inch calculated source rounding & normalisation note note
1435 met 1435
1435mm
standard
sg
...
1,435 mm (4 ft 8+12 in) standard gauge 56.496 in Standard gauge
1435 imp 56.5in
4ft8.5in
usstandard
ussg
...
4 ft 8+12 in (1,435 mm) standard gauge 56.496 in Standard gauge
406 imp 16in
16"
1ft4in
1'4"
16 in (406 mm) 15.984 in
1668 met 1668
1668mm
1.668m
Iberian 1,668 mm (5 ft 5+2132 in) Iberian gauge 65.669 in
Up for improvement. -DePiep (talk) 14:35, 4 August 2013 (UTC)
  • I think we somehow need to do something with the primary definition/converting/rounding thing. Made it a column for now.
  • Optionally, to create the "Named" table (~25 rows), that could be a reduced subset of this one (not a completely new one). In other words, if we have created the big one, the small can follow (by eliminating row & cols). -DePiep (talk) 14:35, 4 August 2013 (UTC)
  • We could add named input option |id= too, which might make it easy to add notes unambiguously. -DePiep (talk) 14:48, 4 August 2013 (UTC)
  • I have created Setup A and Setup B. Setup A merges two variants id (dflt1=met,imp) into one row. Setup B splits a double id (met, imp) over two rows. At the moment I prefer Setup B, because it reflects the "double id" better. Also sort & search works more usefull. -DePiep (talk) 17:31, 5 August 2013 (UTC)
  • In documentation, aliases without unit (like "1435", "50") should be mentioned last, not first, to discourage usage a bit. Also helps recognising the size (unit is in the first alias of the list). Probably requires reordering in their alias set before automation. -DePiep (talk) 11:40, 6 August 2013 (UTC)
  • Suggest column add: "what was the original input for |1="? (basically very good for checking purposes; not for an editor reading the documentation). -DePiep (talk) 20:23, 11 August 2013 (UTC)
information Postponed, not in todays edit request -DePiep (talk) 14:51, 26 August 2013 (UTC)
Option category-by-size

Rail gauge pages can be categorised by size (and by country, separately and independently). See for example: Category:Narrow gauge railways and Category:3ft gauge railways. Such a category may be defined for a range of sizes (see text on the 3ft category page). The category names, especially the heavier used ones, are quite stable (I remember but currently cannot find a closed discussion that lead into general consensus).
Suggestion: we add to the template+data: option sizecat=on that adds the correct (range) size category. It should be used only in topic pages (about a line with that gauge, pref in the infobox), not on overview pages like "Narrow gauges ...". -DePiep (talk) 13:58, 4 August 2013 (UTC)

Adding: of course automated category adding had backdraws, esp. since an avarage editor cannot 'get' to the addition. OTOH, since the category is defined as a range of gauges, such grouping may be beyond basic editing (one needs to know or find the correct cat name (size, fmt and sp) for the gauge one is entering in an article). That is why this might be an improvement. it could us its own maintenance category for checking (cat for pages that use |sizecat=on)? -DePiep (talk) 19:46, 4 August 2013 (UTC)
We need a table first on how these categories are defined. I expect that in fringes there are issues (e.g., borders narrow--ridable model--scaled). Alseo there may be a imp-defined vs. met-measure issue (to illustrate: there are cats like "rail gauges in imperil measure"). But hey, once we solved this for our 270 gauges, we can go ahead with this one! -DePiep (talk) 20:23, 11 August 2013 (UTC)
information Postponed, not in todays edit request -DePiep (talk) 14:51, 26 August 2013 (UTC)
Rename parameter |lk=

Parameter |lk=on sets the units (ft, in, mm, m) to wikilink. Recently, we (I) have added a check for pages that do so (see maintenance cat, catsort:U). All article pages that showed up (~12?) were edited because it was overlinking (agree there are better ways to check this, e.g. a bot or AWB). Remaining pages are non-mainspace. Background: some 6 months ago I disentangeled the params |al=, |allk= and |lk= in the template. They were confusingly interacting. Remaining is the overload of al and allk, but without conflict.
I propose: 1. Rename the parameter to be |unitlink=on for clarity. It is and should be a very low-used option. 2. Old name not supported any more (linking is not a major target for the template). 3. rm from code the maintenance cat for this one lk=on. 4. fwiw: current link Foot (length) is an R to Foot (unit). -DePiep (talk) 15:27, 4 August 2013 (UTC)

 fixed in the sandbox. — Mr. Stradivarius ♪ talk ♪ 17:03, 5 August 2013 (UTC)
Error check elsewhere

If I read code correct, check for error( 'Non-number mm value detected' ) in formatMet can be in checkData. -DePiep (talk) 14:22, 5 August 2013 (UTC)

 fixed in the sandbox. — Mr. Stradivarius ♪ talk ♪ 16:12, 5 August 2013 (UTC)
Find the Alias without a loop

As it is now, in _main there is a loop to find if alias == searchKey. I wonder, is thare not a slolution that targets the alias straight away, say id = data.alias([searchKey]). It seems simple that a try for data.alias([searchKey]) would give a hit or not. How to get to the id for that alias's single data set I cannot suggest. -DePiep (talk) 14:34, 5 August 2013 (UTC)

You could do it if you changed the alias table format to e.g.
    {
        ["id"] = "1435",
        ["aliases"] = { ["1435"] = true, ["1435mm"] = true, ["sg"] = true, ["standard"] = true },
        ["name"] = "standard gauge",
        ["link"] = "[[standard gauge]]",
        ["dflt1"] = "met",
        ["mm"] = "1435",
        ["ft"] = "4",
        ["in"] = "8",
        ["num"] = "1",
        ["den"] = "2"
    },
Then you could find if the alias exists or not with:
    local data
    for i, t in ipairs( gaugeData ) do
        if t.aliases[ searchKey ] then
            data = t
        end
    end
With the data table in the current format though, you need both for loops. I'm not sure if changing this would have an appreciable effect on performance though. If you're interested in reading about Lua performance, then this seems to be the most widely-read paper on the subject. I did have a look for something comparing performance of pairs() and ipairs() to direct table lookup, but I couldn't find anything specific. — Mr. Stradivarius ♪ talk ♪ 15:17, 5 August 2013 (UTC)
Thanks and no, I don't want to imply to change the data structure. -DePiep (talk) 15:33, 5 August 2013 (UTC)
☒N Not done and not likely to be done
Whitespace error checks

I've added a checkData check to detect unwanted whitespace from the /data subpage values. It detects whitespace surrounding the name and link values, and whitespace anywhere in the other values. — Mr. Stradivarius ♪ talk ♪ 16:32, 5 August 2013 (UTC)

 Done
Trim whitespace from search key

I've changed the search key whitespace trimming so that it trims all whitespace, rather than just spaces. For example, this code now works:

Code Main Sandbox
{{RailGauge|1
m}}
1,000 mm (3 ft 3+38 in) 1,000 mm (3 ft 3+38 in)

Mr. Stradivarius ♪ talk ♪ 16:49, 5 August 2013 (UTC)

 Done
Implicit rules

It appears that the next rules are only implicit.

  • No feet fraction. Output like "2+12 ft" cannot be added. Will have to look like 2 ft 6 in (762 mm).
In this example, "30 in" is the commonly used name so its OK. I do not know of examples/hidden requests.
  • Input unit corresponds with dflt1 definition. If input is in imperial, imp will be the dflt1.
Intuitive for editor. Cannot remember an exception. Always possible to overrule with |first=met of course. Make it an explicit rule (document)? No code change (or in dataCheck).
  • 0+14 in possible? Though not used any more, we could check for technical possibility. -DePiep (talk) 17:47, 5 August 2013 (UTC)
information Postponed, not in todays edit request -DePiep (talk) 14:51, 26 August 2013 (UTC)
Split entry into three
I have added alias "Victorian" to give a third option (next to 1600mm/Irish and 5ft3in). The difference is in the wikilink: |1=Victorian1,600 mm (5 ft 3 in) Victorian broad gauge.
This is not a code change, but it is a new use of the existing data scheme (a third definition). See also below, current gauge additions, about this. -DePiep (talk) 11:56, 12 August 2013 (UTC)
 Done See new input options below. -DePiep (talk) 14:51, 26 August 2013 (UTC)
id = metric input always?

Are there situations where accepted metric input does not match id? What would that mean? -DePiep (talk) 21:38, 13 August 2013 (UTC)

 Not done not a code issue. -DePiep (talk) 14:51, 26 August 2013 (UTC)
Return the full id

I'd like to have the option to have the id returned when entering a gauge. Also, secundary, the input's first could be usefull, and adding the name id ("Victorian") would make the identification complete. (input id = {mm, first, name}) -DePiep (talk) 21:44, 13 August 2013 (UTC)

information Postponed, not in todays edit request -DePiep (talk) 14:51, 26 August 2013 (UTC)
Double unit, check?

I entered twice a unit name: ["id"]=10, ["id"]=11 (in the same id). Wrong by fact, worth checking? -DePiep (talk) 02:07, 3 September 2013 (UTC)

Ugly fractions

As the greatest usage of this template is as ussg, is there some reason it has to display the fractional half as a superscript 1 / subscript 2 rather than just ½? It looks ugly on the page and forces non-standard line spacing before and after.Afterbrunel (talk) 08:47, 24 September 2013 (UTC)

You ask about writing ½ versus 12 (if I understand you well). This way of writing is described in MOS:FRAC. It concludes we better not use the single-character sign you suggest. -DePiep (talk) 20:22, 27 September 2013 (UTC)

Edit request on 8 October 2013

DePiep (talk) 17:24, 8 October 2013 (UTC)

DoneMr. Stradivarius ♪ talk ♪ 21:43, 8 October 2013 (UTC)
Thanks. Documentation todo. -DePiep (talk) 23:59, 8 October 2013 (UTC)

A subtle difference

Resolved
 – added. -DePiep (talk) 09:21, 9 October 2013 (UTC)

For Track gauge#Broad gauge make {{RailGauge|7ft}}, 7 ft (2,134 mm) read like 7 ft 0 in (2,134 mm) or 7 ft (2,134 mm), and thus distinguish it from {{RailGauge|84.25}}, 84.25 Peter Horn User talk 01:24, 13 September 2013 (UTC)

Both are called "Brunel gauge". As I understand its history, it was originally defined 7ft by Brunel. Later on, but not much later on, that same gauge definition was stretched to 7ft 0+14 in. Still it's name was used being "7ft" (nominally then), e.g. in Railway Regulation (Gauge) Act 1846. Today sources and we use "7ft 0+14 in" and "7ft" interchangeable both to mean that same gauge (the true measure being "7ft 0+14").
If we want to point to the exact "7ft" gauge, e.g. when describing the earliest Brunel tracks, we should give it a different name in the template, for example "original 7ft" or "exact 7ft". So that {{RailGauge|original 7ft}} produces gauge 7 ft 0 in (2,134 mm) (new), and 7ft produces the gauge 7 ft (2,134 mm) Brunel gauge unchanged.
Since "7ft" is used to identify the Brunel gauge, correctly as I wrote, we do not have the freedom to switch its meaning or measure.
Concluding, we could add "original 7ft" (or "exact 7ft") to produce that gauge measure. It can be used whereever needed, always being specific (not unknowingly). -DePiep (talk) 11:02, 13 September 2013 (UTC)
So, I propose keep current Brunel options and add that exact one (sandbox examples):
keep
add
  • 7ft exact → 7ft exact
  • exact 7ft → 7ft exact
  • 7ft 0in → 7ft 0in
This one has no named link and the "0 in" is added to be clear.
-DePiep (talk) 13:40, 17 September 2013 (UTC)

Here we go again: September 2013

Resolved
 – Added and changes -DePiep (talk) 09:23, 9 October 2013 (UTC)
Links with "/sbox→" are pointing to current {{RailGauge/sandbox}} version
Sandbox data is in Module:RailGauge/data/sandbox -DePiep (talk) 21:55, 5 September 2013 (UTC)
Demo & tests are in {{RailGauge/testcases}} -DePiep (talk) 22:46, 5 September 2013 (UTC)
  • 8200mm /sbox→ 8,200 mm (26 ft 10+2732 in)
8200mm → 322+2632 in or 322+2732 in -- since we do all larger sizes by 132 in units.
By convert, it would be: 8.2 metres (26 ft 10.8 in)
26ft 11in would yield 8204 mm. Would that fit? We write 8.2m (not 8200mm)? Help. -DePiep (talk) 01:39, 3 September 2013 (UTC)
Go with the nearest 132 or use another suitable fraction, see Iberian gauge and Russian gauge below. Peter Horn User talk 15:09, 3 September 2013 (UTC)
See Funicular#Inclined lift 8200 instead of 8.2 metres (26 ft 10.8 in) Peter Horn User talk 21:40, 1 September 2013 (UTC)
  • 8ft /sbox→ 8 ft (2,440 mm)
By convert: 8 feet (2,400 mm)
8ft → 2438.4 mm
2438 mm → 95.98 ~12ft.?? You meant ~8 ft??? Peter Horn User talk 15:09, 3 September 2013 (UTC)
By conversion logic (including sigfig) we stick to 2400mm. -DePiep (talk) 01:01, 3 September 2013 (UTC)
Johnstown Inclined Plane, 8 ft (2,440 mm) Peter Horn User talk 17:50, 2 September 2013 (UTC)
  • 1850mm /sbox→ 1,850 mm (6 ft 2732 in)
1850mm = 1,850 millimetres (73 in)
By convert: 1,850 millimetres (73 in)
Falls Incline Railway, 1,850 mm (6 ft 2732 in) Peter Horn User talk 21:40, 1 September 2013 (UTC)
  • 68in /sbox→ 5 ft 8 in (1,727 mm)
68in = 68 inches (1,727.20 mm) -DePiep (talk) 21:51, 4 September 2013 (UTC)
Wait. 68in=1727.2mm. Why the rounding? Why not: "68in=1730mm" (rounds OK when from mm to in). In general: a mm is (Order)10x more precise than an inch. Solved. -DePiep (talk) 22:02, 4 September 2013 (UTC)
Don't round to 1730 mm but 68 in (1,727 mm)
As found by Peter Horn:
In the mean time I need 68 for Fisherman's Walk Cliff Railway. Peter Horn User talk 20:59, 4 September 2013 (UTC)
As well as for Babbacombe Cliff Railway#Specifications 68Peter Horn User talk 01:15, 5 September 2013 (UTC)
I need 68 for Babbacombe Cliff Railway#Specifications as well Peter Horn User talk 01:23, 5 September 2013 (UTC)
  • 1300mm /sbox→ 1,300 mm (4 ft 3+316 in)
1300mm = 1,300 millimetres (51.181 in) (by {{convert}})
51+632 in makes 1300.1625 mm. So 51+316 in is our fact. -DePiep (talk) 22:59, 5 September 2013 (UTC)
As found by Peter Horn:
And for Funiculars of Lyon#History and Funiculars of Lyon#F2 (Saint-Jean - Fourvière) 1,300 mm (4 ft 3.18 in) ---> 1300 Peter Horn User talk 16:26, 5 September 2013 (UTC)
  • 985mm /sbox→ 985 mm (3 ft 2+2532 in)
985mm = 985 millimetres (38.780 in) (by {{convert}})
985mm → 38+2532 in. -DePiep (talk) 22:37, 6 September 2013 (UTC)
Zugerbergbahn funicular
  • 1638mm /sbox→ 1638mm
1638 mm = 1,638 millimetres (64.4882 in) (by {{convert}})
64.5 in = 64.5 inches (1,638.30 mm) (by {{convert}})
Rounding to 64.5 in is precise enough, since we can round the 0.3 mm consistently (sigfig). Also, the source says 64.5 in.
So added: 1638mm → 5 ft 4+12 in. -DePiep (talk) 14:03, 12 September 2013 (UTC)
For Tram track gauge#Broad gauge and Baltimore Streetcar System 1,638 instead of 1,638 mm or 5 ft 4.49 in or 5 ft 4+12 in or 1,638 mm "Railroad Gauge Width". Паровоз ИС. Российский железнодорожный портал. Archived from the original on July 17, 2012. Retrieved 2007-11-29.

General topics

I reorganised gauges: 8200mm, 8ft, 1850mm, 68in sourced by Peter Horn. -DePiep (talk) 00:06, 3 September 2013 (UTC), adding 86in: -DePiep (talk) 21:51, 4 September 2013 (UTC)

Not all larger sizes are increased by 132 inch units, e.g. 1,668 mm (5 ft 5+2132 in) Iberian gauge and 1,520 mm (4 ft 11+2732 in) Russian gauge, any suitable fraction will do. Peter Horn User talk 13:15, 3 September 2013 (UTC)
1850mm = 1,850 millimetres (72.8 in), 0.2 inches (5.1 mm) is more than 132 or 0.003125 inch. And 8 feet (2,438.4 mm), 1.6 millimetres (0.0630 in) which is about 116 or 0.0625 inch. Peter Horn User talk 15:09, 3 September 2013 (UTC)
Fractions of inches are traditionally 12, 14, 18, 116 etc. The examples you mention, 110 or 13 and such others, are to be replaced. -DePiep (talk) 13:34, 4 September 2013 (UTC)
... I propose here (clarity). -DePiep (talk) 20:42, 4 September 2013 (UTC)
Scales (rulers) calibrated in 16 and 112 of an inch do exist, rare though they may be. I have a North American triangular engineer's scale that is calibrated in 110, 150, 120, 140, 130 and 160 (in pairs per side) of an inch. The unusual fractions may just be a tad more accurate or realistic. Best to leave well enough alone. In the mean time I need 68 for Fisherman's Walk Cliff Railway. Peter Horn User talk 20:59, 4 September 2013 (UTC)
The "68inch" now deserves its own entry (in sandbox too). I noted it is a PH finding. -DePiep (talk) 21:51, 4 September 2013 (UTC)
As you write, Peter Horn, about these 110 inches: "rare". So why would we use them here? I propose we turn them into 132 according to their mm correspondence. One exception: if there is a source that defines a gauge in these rare fractures -- I am the first one to go with it. -DePiep (talk) 22:18, 4 September 2013 (UTC)
Peter Horn, please understand. First, I have put your new (well sourced) gauges in our /sandbox. That gives us a test check. Within days or weeks, we will put them into live. Some five new ones in a bunch. OK? -DePiep (talk) 21:44, 5 September 2013 (UTC)
No problem, I will periodically watch this discussion. Peter Horn User talk 01:36, 7 September 2013 (UTC)

Into 132 units

List of entries, over 2in, that are not by 132 units:

  • 785 mm live: 785 mm (2 ft 6+2932 in)
/sbox: 785 mm (2 ft 6+2932 in)
785 mm convert: 785 millimetres (30.9055 in)
reverse calc: 30+2932 inches (785.01875 mm)
  • 802 mm live: 802 mm (2 ft 7+916 in)
/sbox: 802
mm convert: 802 millimetres (31.5748 in)
reverse calc: 31+916 inches (801.68750 mm)
  • 891 mm live: 891 mm (2 ft 11+332 in)
/sbox: 891
mm convert: 891 millimetres (35.0787 in)
reverse calc: 35+332 inches (891.38125 mm)
  • 1050 mm live: 1,050 mm (3 ft 5+1132 in)
/sbox: 1050
mm convert: 1,050 millimetres (41.3386 in)
reverse calc: 41+1132 inches (1,050.1312 mm)
  • 1188 mm live: 1,188 mm (3 ft 10+2532 in)
/sbox: 1188
mm convert: 1,188 millimetres (46.7717 in)
reverse calc: 46+2532 inches (1,188.2438 mm)
  • 1217 mm live: 1,217 mm (3 ft 11+2932 in)
/sbox: 1217
mm convert: 1,217 millimetres (47.9134 in)
reverse calc: 47+2932 inches (1,216.8187 mm)
/sbox: 1520
mm convert: 1,520 millimetres (59.8425 in)
reverse calc: 59+2732 inches (1,520.0313 mm)
/sbox: 1668
mm convert: 1,668 millimetres (65.6693 in)
reverse calc: 65+2132 inches (1,667.6688 mm)
  • 1672 mm live: 1,672 mm (5 ft 5+1316 in)
/sbox: 1672
mm convert: 1,672 millimetres (65.8268 in)
reverse calc: 65+1316 inches (1,671.6375 mm)

Over 2in, still using decimal

  • 63 mm live: 63mm
/sbox → 63mm
reverse calc: 2+1532 inches (62.706 mm)
  • 64 mm live: 64 mm (2+12 in)
/sbox → 64 mm (2+12 in)
reverse calc: 2+1732 inches (64.294 mm)
  • 2.781in live: 2.781 in (70.69 mm)
/sbox → 2.781 in (70.69 mm)
I seriously propose to drop this one. Let's see where it is used. Removed from sandbox. -DePiep (talk) 22:33, 27 September 2013 (UTC)
Affected pages will show up in the maintenance category, for review. -DePiep (talk) 22:39, 27 September 2013 (UTC)
-DePiep (talk) 21:47, 27 September 2013 (UTC)

7ft 0in exact

See below, here for overview:

keep
add
  • 7ft exact → 7ft exact
  • exact 7ft → 7ft exact
  • 7ft 0in → 7ft 0in
This one has no named link and the "0 in" is added to be clear.
(copy added here) -DePiep (talk) 00:40, 29 September 2013 (UTC)

Conclude

Concluding, we can say & propose:

  1. Nine new rail gauges are proposed, as we do regularly here.
  2. 7ft 0in exact gauge is possible. It differs from nominal 7ft (with or without +14 inch) Brunel.
  3. All gauges over 2 inch are represented in 132 inch. Three were written in decimals, nine were in fractions like 16 (including Russian and Iberian gauge I must note).
See Template:RailGauge/testcases.
All proposals are in /sandbox and /testcases page (see thread top). If we agree, I'll write an edit request here. -DePiep (talk) 01:12, 29 September 2013 (UTC)
Peter Horn, do you still want us to leave alone the measurements that are not 132, as you stated above? If so, pls explain. Example: 1,668 mm (5 ft 5+2132 in). -DePiep (talk) 09:30, 4 October 2013 (UTC)

Gauge proposals, October 2013

Sandbox data is in Module:RailGauge/data/sandbox
Demo & tests are in RG/testcases
See also Category:Pages with incorrect use of RailGauge template‎
  • 15+14 in
Track gauge#Temporary Way - Permanent Way (writes 387mm), Yunnan-Burma [2]
{{RailGauge|15.25in}} → 15+14 in (387 mm)
{{RailGauge/sandbox|15.25in}} → 15+14 in (387 mm)
15.25in = 15.25 inches (387.35000 mm)
Input 15.25in
-DePiep (talk) 10:14, 9 October 2013 (UTC)
 Done in /sandbox, see RG/testcases -DePiep (talk) 08:45, 11 November 2013 (UTC)
  • 39+310 in
Is mentioned; [3]. Ever constructed?
{{RailGauge|39.3in}} → 39.3in
{{RailGauge/sandbox|39.3in}} → 39.3in
39.3in = 39.3 inches (998.22000 mm)
Input 39.3in
Could this be a conversion from 1000mm? 1,000 mm (3 ft 3+38 in)
-DePiep (talk) 10:14, 9 October 2013 (UTC)
 Not done
This looks like a small conversion error by the source (the paper). Esp since it was not build there, we can assume it is not an existing gauge. -DePiep (talk) 06:02, 26 October 2013 (UTC)
  • 2.781 in, 70.64 mm, 70.69 mm
in List of rail transport modelling scale standards (scale: F or 15 mm)
Source: proto scale "proto:20.3" says 2.781 in or 70.64 mm (2004). By NMRA
Elsewhere NMRA says: fine scale "F" equals 1:20.3 NMRA 2010: 70.69mm (given in metric; would be 70.69 millimetres (2.7830709 in).
Note that the same source gives two different definitions in metric.
Input options should be metric and imperial, as the source defines them both too.
We could/should fold the two mm-sizes input into one output.
{{RailGauge|2.781in}} → 2.781 in (70.69 mm)
{{RailGauge/sandbox|2.781in}} → 2.781 in (70.69 mm)
{{RailGauge|70.64 mm}} → 70.69 mm (2.781 in)
{{RailGauge/sandbox|70.64 mm}} → 70.69 mm (2.781 in)
Usually, sizes over 2 inch we turn into 132 inch fractions or larger (116 etc.). But since this one is sourced in decimal inches, we maintain the decimals.
To be reintroduced, was deleted recently (my suggestion, could not find source then). -DePiep (talk) 06:02, 26 October 2013 (UTC)
Elaborated -DePiep (talk) 06:37, 26 October 2013 (UTC)
 Done in /sandbox with four input options, see RG/testcases -DePiep (talk) 08:45, 11 November 2013 (UTC)

For List of track gauges#Broad gauge 1,980 mm (6 ft 6 in) 1,945 mm (6 ft 4+916 in) 1,750 mm (5 ft 8+78 in) 1,672 mm (5 ft 5+1316 in) and others to come. Peter Horn User talk 18:17, 15 October 2013 (UTC)

Or 1,945 mm (6 ft 4+916 in) 1,980 mm (6 ft 6 in) 1,750 mm (5 ft 8+78 in) 1,672 mm (5 ft 5+1316 in). OK, this will do. Peter Horn User talk 18:20, 15 October 2013 (UTC)
1,980 mm (6 ft 6 in) not yet supported. Peter Horn User talk 18:32, 15 October 2013 (UTC)
All these are used? Please note pages here. Or better, write in the page like {{RailGauge|1672 mm}} so it will show the right value and the page is listed in our maintenance category. -DePiep (talk) 14:35, 18 October 2013 (UTC)
OK, here is the list;
  • Carmelit, {{RailGauge|1980mm}}, not yet supported. The article itself gives 1,435 mm (4 ft 8+12 in)!
  • Hollandsche IJzeren Spoorweg-Maatschappij, {{RailGauge|1945mm}} 1,945 mm (6 ft 4+916 in), supported
  • Ligne de Sceaux, {{RailGauge|1750mm}} but appears as 1,750 mm (5 ft 8+78 in) (1.75 m instead of 1700 mm) and thus needs correction.
  • Proto Iberian gauge (Spain) {{RailGauge|1672mm}} 1,672 mm (5 ft 5+1316 in), supported
  • More to be added later

Peter Horn User talk 17:59, 18 October 2013 (UTC) Peter Horn User talk 00:39, 21 October 2013 (UTC)

  • 1700mm
1,700 millimetres (66.929134 in)
66+1516 in or 5 ft 6+1516 in
1700mm
1700mm
in Ligne de Sceaux (to be?)
 Not done: misreading: 1700mm is not the gauge for Ligne de Sceaux; french fr:Ligne de Sceaux says 1750mm without source. Anyway, 1700mm not used, not needed.
Removed from /sandbox. -DePiep (talk) 08:45, 11 November 2013 (UTC)
  • 1980mm
1,980 millimetres (77.952756 in)
77+1516 in or 6 ft 5+1516 in
1,980 mm (6 ft 6 in)
1,980 mm (6 ft 6 in)
in Carmelit (Haifa) (to be added there?)
[4]Doesn't look like a 2m gauge. Not even standard. Where does the 1980mm figure come from? -DePiep (talk) 22:53, 2 November 2013 (UTC)
Question? needs source or will not be included in template. (currently in RG/testcases) -DePiep (talk) 08:45, 11 November 2013 (UTC)
  • 1945mm
1,945 mm (6 ft 4+916 in)
Already available. What is the question?
I understand that the article text should be changed, to include this correct gauge.
 Done, already in the template. -DePiep (talk) 08:45, 11 November 2013 (UTC)
  • 1750mm
1,750 mm (5 ft 8+78 in)
Already available. What is the question?
I understand that the article text should be changed, to include this correct gauge.
 Done, already in the template. -DePiep (talk) 08:45, 11 November 2013 (UTC)
  • 1672mm
1,672 mm (5 ft 5+1316 in)
Already available. What is the question?
I understand that the article text should be changed, to include this correct gauge.
 Done, already in the template. -DePiep (talk) 08:45, 11 November 2013 (UTC)
-DePiep (talk) 18:22, 25 October 2013 (UTC) I get it. -DePiep (talk) 07:17, 26 October 2013 (UTC)

For Santos tramways, and the articles linked to it, 1350 Santos The Tramways of Santos Retrieved on 26 June 2008. Peter Horn User talk 03:32, 18 October 2013 (UTC)

Make that 1,350 mm (4 ft 5+532 in) Peter Horn User talk 03:35, 18 October 2013 (UTC)
Linked to it are:

Peter Horn User talk 18:07, 18 October 2013 (UTC) .

None of these pages have "1350" in them. Why not enter the value today (with or without conversion)? We must have a source. -DePiep (talk) 18:09, 25 October 2013 (UTC)
Got it. I found [5] that says 1350mm indeed in Santos_tramways#South_America. (Interestingly, the source converts it to "45 13 inch", though it is 4 ft 5 in ...) So here we go.
It is also found in [Santos The Tramways of Santos Retrieved on 26 June 2008, the link that I gave before (See above). Just scroll DOWN. Peter Horn User talk 02:45, 26 October 2013 (UTC)
I could not find it (not using search "1350", not by rereading it today), sorry. It helped me finding the excellent site of Allen Morrison, though. -DePiep (talk) 05:52, 26 October 2013 (UTC)
  • 1350mm
1,350 millimetres (53.149606 in)
so 53+532 in or 4 ft 5+532 in
1,350 mm (4 ft 5+532 in)
1,350 mm (4 ft 5+532 in)
in Santos_tramways#South_America

-DePiep (talk) 19:32, 25 October 2013 (UTC)

Still needed instead of 1,350 mm or 4 ft 5+532 in, {{RailGauge|1350mm|disp=or}} (1,350 mm or 4 ft 5+532 in) Peter Horn User talk 01:59, 11 November 2013 (UTC)
 Done in /sandbox with input option 1350mm, see RG/testcases -DePiep (talk) 08:45, 11 November 2013 (UTC)
re Peter Horn: ready for deployment, just waiting for two gauges (1009mm, 1800mm) to be sourced. If these sources do not appear, we'll go ahead without these two. -DePiep (talk) 09:08, 11 November 2013 (UTC)
Peter Horn@. General notes. Better always use the construct like {{RailGauge|1350mm}} (good) for gauges. That way the page is listed in the category, and so can be found, checked and corrected when the new gauge is in. The same for conversions like {{RailGauge|1350mm {{convert|1350mm|...}}}} (good) and questions {{RailgGauge|1013 mm (disputed)}} (good): these are listed in the tracking category and so can be addressed later.
Also, in the future please describe a request here more specific, in a regular sentence, and answer follow up questions. Just throwing in some words leaves it to others to investigate elaborately what you already know. Same for responding to questions like "what do you mean" or "where did you see this". I will not go into researching such sloppy talks any more, while you are sitting on the answers. -DePiep (talk) 09:08, 11 November 2013 (UTC)

The article metre gauge mentions a temporary gauge of 1,013 mm (3 ft 3.88 in) (3+78) in {{RailGauge|1013mm}} for the Sofia Tramway Peter Horn User talk 01:55, 1 November 2013 (UTC)

So it was temporally in history, but it was defined and maintained so we should add it permanently to the template. I suggest (we have lots of gauges that are obsolete). It could be mentioned in the Sofia Tramway article too. Will work on this, now busy IRL. -DePiep (talk) 12:08, 1 November 2013 (UTC)
  • 1013mm
1,013 millimetres (39.881890 in)
so 39+78 in or 3 ft 3+78 in (check: 39+78 inches (1,012.8250 mm)
Should be named "metre gauge" nominally for its history.
1013mm
1013mm
in metre gauge when about Sofia Tramway -DePiep (talk) 14:24, 2 November 2013 (UTC)
This one still needs a source. -DePiep (talk) 14:34, 2 November 2013 (UTC)
Question? needs source, or will not be included (is present in RG/testcases). -DePiep (talk) 08:45, 11 November 2013 (UTC)
  • 1009mm
Should be named "metre gauge" nominally, given its history.
1,009 mm (3 ft 3+2332 in) metre gauge
1,009 mm (3 ft 3+2332 in) metre gauge
In: Sofia Tramway (see also 1013mm) -DePiep (talk) 22:43, 2 November 2013 (UTC)
Something strange: source [6] says that the rolling stock ordered was 1009mm, and the gauge was 1000. This story needs more description. -DePiep (talk) 20:12, 3 November 2013 (UTC)
 Done added name "metre gauge" to existing 1009mm option; outgoing only. -DePiep (talk) 08:45, 11 November 2013 (UTC)

 Added to template: 2.781in, 70.64/70.69mm, 1009mm=metre, 1350mm -DePiep (talk) 15:18, 12 November 2013 (UTC)

Gauge proposals, November 2013

Sandbox data is in Module:RailGauge/data/sandbox
Demo & tests are in RG/testcases
See also Category:Pages with incorrect use of RailGauge template
-DePiep (talk) 15:18, 12 November 2013 (UTC)
  • 7mm
7 mm (0.276 in)
7 mm (0.276 in)
7 millimetres (0.27559055 in)
In HOe scale#Related scales: HOn2 -- 1:87 -- 7 mm (0.276 in) -- 2 ft (610 mm)
 Done -DePiep (talk) 13:12, 26 December 2013 (UTC)
  • 30in, 2.5ft See below, about "imperial gauge" and "2 ft 6 in gauge"
Add option "2.5ft"
2 ft 6 in (762 mm)
2 ft 6 in (762 mm)
2.5ft
2.5ft
-DePiep (talk) 10:52, 28 November 2013 (UTC)
  • 14 in, 14" to add
Chicago Tunnel Company#Construction (sourced, book)
14 in (356 mm) -- live
14 in (356 mm) -- sandbox
14 inches (355.60000 mm) --convert
356 millimetres (14.0 in) -- return calc
Rounding mm's to 3 figures is OK then. -DePiep (talk) 16:11, 17 December 2013 (UTC)
 Done
  • 22.2 mm
On30 Source: "Auf neuer Spur" (PDF) (in German). BEMO. 2012. Retrieved 2013-12-23.
22.2 mm (0.874 in) -- live
22.2 mm (0.874 in) -- sandbox
22.2 millimetres (0.87401575 in) --convert
0.874 inches (22.2 mm) -- return calc
Source = "BEMO" -DePiep (talk) 19:49, 24 December 2013 (UTC)
 Done

2 ft 6 in

  • 2ft 6in, from imperial gauge name change (page move)
Page imperial gauge has been moved to Two foot six inch gauge railways recently by @Aaron-Tripel: [7]. To me, it looks like an improvement, and a stable one (no more move expected). Now this template should adapt the changes.
Current (old) {{RailGauge}}:
  1. old {RailGauge|imperial|allk=on}} → imperial
  2. old {RailGauge|imperial}} → imperial -- no link asked, so ok
  3. old {RailGauge|2ft6in|allk=on}} → 2 ft 6 in (762 mm)
  4. old {RailGauge|2'6"|allk=on}} → 2 ft 6 in (762 mm)
  5. old {RailGauge|30in|allk=on}} → 2 ft 6 in (762 mm)
  6. old {RailGauge|two feet six inch|allk=on}} → two feet six inch -- not recognised in old
  7. old {RailGauge|762mm|allk=on}} → 762 mm (2 ft 6 in) -- does not link by design
New {{RailGauge/sandbox}} (testcases):
  1. new {RailGauge/sandbox|imperial|allk=on}} → imperial
  2. new {RailGauge/sandbox|imperial}} → imperial
  3. new {RailGauge/sandbox|2ft6in|allk=on}} → 2 ft 6 in (762 mm)
  4. new {RailGauge/sandbox|2'6"|allk=on}} → 2 ft 6 in (762 mm)
  5. new {RailGauge/sandbox|30in|allk=on}} → 2 ft 6 in (762 mm)
  6. new {RailGauge/sandbox|two feet six inch|allk=on}} → two feet six inch
  7. new {RailGauge/sandbox|762mm|allk=on}} → 762 mm (2 ft 6 in) -- link this one? (change designed behaviour)
  8. new {RailGauge/sandbox|30in|allk=on}} → 2 ft 6 in (762 mm)
  9. new {RailGauge/sandbox|2.5ft|allk=on}} → 2.5ft -- new input option for this
  10. new label text: "2 ft 6 in (762 mm) 2 ft 6 in railway" -- what label text for the link?
  11. new, different format: "2 ft 6 in (762 mm)" -- do we expect it to be like this, when set |alllk=on?
  12. new {RailGauge/sandbox|Two foot six inch gauge railways|allk=on}} → Two foot six inch gauge railways -- eponymous should be available
Ideas? -DePiep (talk) 10:19, 14 December 2013 (UTC)
  • Bosnian gauge
760 mm (2 ft 5+1516 in) Bosnian gauge

What should be the output for |bosnian and |760mm input? There seems to be a connection with 2 ft 6 in (762 mm), but there is also a ~2 millimetres (0.079 in) (~132 in) difference. -DePiep (talk) 12:02, 14 December 2013 (UTC)

Although the difference is only 2mm, each gauge has a specific own history. See Narrow gauge railway#750 mm (2 ft 5 1⁄2 in), Bosnian gauge and Two foot six inch gauge railways--Aaron-Tripel (talk) 12:53, 14 December 2013 (UTC)
So we keep treating them as totally different gauges, and no changes in the Bosnian one. Is there, from the age of more tolerance, an overlap & mixing of these two gauges? (I got the impression from wp here, but did not research that). If that's not common, I guess your link should describe that enough. Glad to learn that "imperial" refers to England, not the Hungarian-Austrain one. -DePiep (talk) 14:13, 14 December 2013 (UTC)
610 and 610 stock was interchanged between the networks of metric South-West Africa and imperial South Africa. This doesn't seem the case with 760 and 760. --Aaron-Tripel (talk) 14:29, 14 December 2013 (UTC)
Right. Any comments about the new 2 ft 6 in formattings above? What to make? -DePiep (talk) 18:36, 14 December 2013 (UTC)
Keep the distinction between imperial gauge and Bosnian gauge, but perhaps imperial gauge could be renamed "British imperial gauge". Peter Horn User talk 21:19, 17 December 2013 (UTC)

I'd like to hear from Aaron-Tripel. Full title is too long to use inline. -DePiep (talk) 19:34, 24 December 2013 (UTC)

Only keep the following as output: 2 ft 6 in (762 mm). Looks sufficient to me. --Aaron-Tripel (talk) 19:52, 24 December 2013 (UTC)
Even when |allk=on? I mean, it is a "named link" now: 2 ft 6 in (762 mm). But OK, can do it. -DePiep (talk) 20:11, 24 December 2013 (UTC)
  •  Done. |allk=on now shows no name and no link. -DePiep (talk) 13:12, 26 December 2013 (UTC)

Here we go again Nov 2013

For Chicago Tunnel Company#Construction {{RailGauge|14}} 14 instead of {{convert|14|in|mm|0|abbr=on}} 14 in (356 mm) Peter Horn User talk 01:33, 29 November 2013 (UTC)

 Done. Changed the Chicago page. -DePiep (talk) 13:16, 26 December 2013 (UTC)

Gauge proposals, January–March 2014

Sandbox data is in Module:RailGauge/data/sandbox
Demo & tests are in RG/testcases
See also Category:Pages with incorrect use of RailGauge template

Added: multiple suggestions, as entered in documentation page: [8]. These additions have been turned into requests here. All were added Jan/Feb by IPs. See #Notes about the process of these proposals below for process issues. -DePiep (talk) 11:06, 27 February 2014 (UTC)


  • Add 3.2 mm request
Used on page(s): ?
Source, usage: noted "s.g. by 1:450; 1520mm gauge by 1:480; 1600mm gauge by 1:500"
3.2mm -- live
3.2mm -- sandbox
3.2 millimetres (0.12598425 in) -- convert
0.126 inches (3.2 mm) -- return calc
-DePiep (talk) 14:11, 8 January 2014 (UTC)

Question? Needs source. -DePiep (talk) 11:54, 27 February 2014 (UTC)

  • Add 9.6 mm request
Used on page(s): ?
Source, usage: "s.g. by 1:150; 1520mm gauge by 1:160"
9.6 mm -- live
9.6 mm -- sandbox
9.6 millimetres (0.37795276 in) -- convert
0.378 inches (9.6 mm) -- return calc
-DePiep (talk) 11:06, 27 February 2014 (UTC)

Question? Needs source. -DePiep (talk) 11:54, 27 February 2014 (UTC)

  • Add 15mm, 0.591in, 0.591" request
Used on page(s): ?
Source, usage: ?
From mm:
15mm -- live
15mm -- sandbox
15 millimetres (0.59055118 in) -- convert
0.591 inches (15.0 mm) -- return calc
From inches:
0.591in -- live
0.591" -- live
0.591in -- sandbox
0.591" -- sandbox
0.591 inches (15.011400 mm) -- convert
15 millimetres (0.59 in) -- return calc
-DePiep (talk) 11:06, 27 February 2014 (UTC)

Question? Needs source. -DePiep (talk) 11:54, 27 February 2014 (UTC)


  • Add 20 mm request
Usage: ?
Source: ?
Demos: todo
DePiep -11:50, 27 February 2014 (UTC)

Question? Needs source. -DePiep (talk) 11:54, 27 February 2014 (UTC)

  • Add 24.7 mm request
Used on page(s): ?
Source, usage: "2140mm gauge by 1:87"
24.7 mm -- live
24.7 mm -- sandbox
24.7 millimetres (0.97244094 in) -- convert
972 inches (24,700 mm) -- return calc
-DePiep (talk) 11:06, 27 February 2014 (UTC)

Question? Needs source. -DePiep (talk) 11:54, 27 February 2014 (UTC)

  • Add 25.4 mm request
Used on page(s): ?
Source, usage: "3000mm gauge by 1:120"
25.4mm -- live
25.4mm -- sandbox
25.4 millimetres (1.0000000 in) -- convert
1 inch (25 mm) -- return calc
1 inch (25.4 mm) -- return calc sigfig=3
-DePiep (talk) 11:06, 27 February 2014 (UTC)

Question? Needs source. -DePiep (talk) 11:54, 27 February 2014 (UTC)

  • Add 26.4 mm request
Used on page(s): ?
Source, usage: "1676mm gauge by 1:64"
26.4 mm -- live
26.4 mm -- sandbox
26.4 millimetres (1.0393701 in) -- convert
1.04 inches (26 mm) -- return calc
1.039 inches (26.4 mm) -- return calc
-DePiep (talk) 11:06, 27 February 2014 (UTC)

Question? Needs source. -DePiep (talk) 11:54, 27 February 2014 (UTC)

  • Change 2.781 in/70.69 mm to show imperial measure first?
|2.781 in2.781 in (70.69 mm) -- live
|70.69 mm70.69 mm (2.781 in) -- live
|2.781 in2.781 in (70.69 mm) -- sandbox
|70.69 mm70.69 mm (2.781 in) -- sandbox
checkY is error, will be done
-DePiep (talk) 11:06, 27 February 2014 (UTC)
 Done -DePiep (talk) 20:50, 7 March 2014 (UTC)
  • Add 1: Russian=60in, 60", 5', 5ft . Add 60in options for this gauge existing for metric input.
Used on page(s): ?
Source, usage: ?
|allk=on
5 ft (1,524 mm) -- live
5 ft (1,524 mm) -- sandbox
60 inches (1,524.0000 mm) -- convert
1,524 millimetres (60.0 in) -- return calc
-DePiep (talk) 11:06, 27 February 2014 (UTC)

Question? Needs source. -DePiep (talk) 11:54, 27 February 2014 (UTC)


  • Change Russian 2: inches are primary request 2: change 'Russian' from metric into inches as the primary definition.
Used on page(s): ?
Source, usage: ?
|allk=on
1,520 mm (4 ft 11+2732 in) Russian gauge -- live
1,520 mm (4 ft 11+2732 in) Russian gauge -- sandbox
Removed the "metRussian" addition, since it does not exist and is misguiding.
-DePiep (talk) 11:06, 27 February 2014 (UTC)

Question? Needs source. -DePiep (talk) 11:54, 27 February 2014 (UTC)


  • Add Russian, 3: 5ft exact, 60in add thisas being the "original Russian gauge"
Used on page(s): ?
Source, usage: ?
|allk=on
From inches
5 ft exact -- live
5 ft (1,524 mm) -- live
5 ft exact -- sandbox
5 ft (1,524 mm) -- sandbox
5 feet (1,524.0000 mm) -- convert
1,524 millimetres (60.0 in) -- return calc
Input 60 in can result in only one defined gauge measure output (in a mm/in pair), not two (mm/in pairs). Similar to original exact Brunel gauge, the historical one best be named like 5 ft exact. That is, when sourced.
-DePiep (talk) 11:06, 27 February 2014 (UTC)

Question? Needs source. -DePiep (talk) 11:54, 27 February 2014 (UTC)

  • Add 1.676m (meter) option for existing 1676mm option.
Source: ?
Used: ?
1,676 mm (5 ft 6 in) (no changes) -- live
1.676m -- live
1.676m -- sandbox
Meter input only when commonly used. Otherwise it would add confusion as to which meter input is available.
-DePiep (talk) 11:06, 27 February 2014 (UTC)

Question? Needs source. -DePiep (talk) 11:54, 27 February 2014 (UTC)


  • Add 118.11in, 118.11", 9ft10.11, 9'10.11" (imperial measure for Breitspur)
Usage: Did the Nazis really define this in imperial inches?
Source: ?
DePiep -11:50, 27 February 2014 (UTC)

Question? Needs source. -DePiep (talk) 11:54, 27 February 2014 (UTC)


  • Add 84.0in for 7 ft exact = brunel. Source: ?
  • Add Nazi. Source: ?
  • Add Stephenson. Source: ?
  • Add metBrunel  Not done - Even if option met/imp were added, not by this input
No sources for actual usage. 84.0in was never written this way in Brunels time. No need to introduce an arbitrary circumscribing option next to the clear obvious one. -DePiep (talk) 11:06, 27 February 2014 (UTC)

Question? Needs source. -DePiep (talk) 11:54, 27 February 2014 (UTC)

  • Imperial gauge remove completely
See Talk:Two foot six inch gauge railways (formerly page Imperial gauge). That name is not found in sources
Todo: remove from RailGauge list, catch usages in articles in maintenance cat. -DePiep (talk) 21:52, 6 March 2014 (UTC)
 Done -DePiep (talk) 20:50, 7 March 2014 (UTC)

Notes about the process of these proposals

Changes [9] by IPs 180.199.41.157@, 180.199.36.78@, 180.199.48.148@, 180.199.41.6@, 180.199.32.49@.

All requests were added by IPs in the documentation page, as edits. Of course, a change to the documentation does not change the template. This time I have turned the edits into full requests here, including conversion calculations etc. Next time, a change proposal must be written on this talkpage first (document changes this way will be reversed, beacause doc is for existing code, not requested code). Also, the unsourced notes and examples that were added must be sourced, or they will be deleted. They are tagged for this. -DePiep (talk) 11:06, 27 February 2014 (UTC)

al=on or allk=on - request for partial nowrap output

When the al or allk parameter is on, and especially when the RailGauge template is being used in an infobox, the "[name] gauge" output sometimes wraps (or breaks) in the middle (ie between "[name]" and "gauge"). See, eg, the infobox in Trams in Mainz, in which there is a wrap (or break) between "metre" and "gauge". A wrap (or break) at that point makes the overall output look much less attractive than a wrap (or break) between the figure and the "[name] gauge" portion would do. Could an administrator or template editor please therefore place the Template:Nowrap around the "[name] gauge" outputs that emerge when the al or allk parameter is on? Thanks in anticipation, Bahnfrend (talk) 12:33, 21 January 2014 (UTC)

Good idea, I'll work on this. -DePiep (talk) 17:53, 21 January 2014 (UTC)
These days not much time to do so. If someone else likes to pick it up: fine. -DePiep (talk) 13:12, 30 January 2014 (UTC)

demo:

1435 1435 1435 1435 1435

-DePiep (talk) 20:09, 7 March 2014 (UTC)  Done. See #Code and data change 07 March 2014. @Bahnfrend:. -DePiep (talk) 20:49, 7 March 2014 (UTC)

Including article links with RailGauge templates

I have been editing several articles over the past three months related to narrow gauge railways (mostly 36 gauge, 30 gauge, and 24 gauge) and making links for the rail gauges themselves to their relevant articles listing multiple railways using the same gauge. Below are examples of the links I have been adding on each individual page one-by-one:
36
30
24
Someone on my talk page suggested that this work could be decreased if links to these article links appeared automatically simply by only typing the rail gauge template itself. Is this possible to do? If so, could this be done for some of the more common rail guages, such as the ones in the track gauge sidebar? Also, if this can be done, perhaps the less common gauges could simply be directed to the List of track gauges article by default, and the very small ridable gauges (say, 500 mm and below, for example) could be directed to the Ridable miniature railway article by default? Jackdude101 (Talk) 18:25, 16 February 2014 (UTC)

Only track gauge templates having a corresponding page should be linked, in my opinion.--Aaron-Tripel (talk) 18:35, 16 February 2014 (UTC)
Alright, that's reasonable. Jackdude101 (Talk) 18:47, 16 February 2014 (UTC)
Yes, very nice. A month ago Aaron-Tripel's edits also lead to this idea (see #2 ft 6 in above). At the moment it can produce link this way (in named gauges):
  • {RailGauge|1435|allk=on}} → 1435
(allk from "alternative name to link").
Your suggestion is OK, and for those article pages only. Just keep the list up to complete I'd say, right here.
Unfortunately, I am buzy in RL next weeks. If someone else comes along to do it: fine. Else I'll be back in March. -DePiep (talk) 22:21, 16 February 2014 (UTC)

Links to be made this way:

Why not link all gauges this way, inclusing the named gauge:

-- instead of current 1,435 mm (4 ft 8+12 in) standard gauge

-DePiep (talk) 19:03, 27 February 2014 (UTC)

Please take a look below, and add this idea. -DePiep (talk) 20:40, 5 March 2014 (UTC)
I copied this remark to the section below. -DePiep (talk) 05:00, 6 March 2014 (UTC)

 Done. See #Code and data change 07 March 2014. @Aaron-Tripel and Jackdude101:. -DePiep (talk) 20:47, 7 March 2014 (UTC)

@DePiep: Great work! I noticed something unusual happening at about the same time that you completed this. Check the opening statement for the Bosnian gauge article. The links for the Two foot six inch gauge railways article and the 750 mm gauge railways article with the embedded RailGauge templates no longer function as links and are displayed in the article the same way as they would appear on the edit screen (brackets are visible). This is also the case on all the other pages with these same links. So far, only links to these two pages seem to be effected. Jackdude101 (Talk) 21:04, 7 March 2014 (UTC)

Oops! Yes, a bad effect of my changes. What happened? First some good news. I have added a new tracking category for all Bosnian/750mm/762mm gauges: they are listed in Category:Articles with template RailGauge that may need attention. So from there you all can check each and every article that mentions these gauges (through {RailGauge}). Also all those Cape/3ft6in/1067mm pages are listed, under 'Y'. So we can do a full check.

But then: that category text comes with the template onto the page. When it is in your wikilink label (as it is used there, to get that link), the Category-codetext disrupts the text before being put at the bottom of the page. e.g.
Solution

Code in article:

 ... [[750 mm gauge railways|{{RailGauge|750}}]] ...

Produces bad text now. Corrected:

 ... {{RailGauge|750|lk=on}} ...

OK?

This happens only in these kind of wikilinks. And in articles only, not categories or so. If this is a big problem, l'll have to switch that listing category off... -DePiep (talk) 21:26, 7 March 2014 (UTC)

Recent proposals

More requests:

Long list
  • Examples:
    • Metric input: {{RailGauge/metric|mm=26.4|lk={{{lk}}}|disp={{{disp}}}|in=1.039|num=|den=}}
    • Imperial input: {{RailGauge/imperial|ft=9|in=10|num=1|den=8|lk={{{lk}}}|disp={{{disp}}}|mm=3000}}

180.199.48.216 (talk) 07:29, 5 March 2014 (UTC)

I don't see any request. You expect others to search for your edits? Just name the proposed gauge to add, provide a source and a article link. For each. If you are the same editor active earlier here, there are some questions to be answered above in #Gauge proposals, Januari 2014. -DePiep (talk) 07:42, 5 March 2014 (UTC)

New feature: link the gauge size itself

  • In {{RailGauge/sandbox}} there is a new feature in development: link the railgauge size to an article.
{{RailGauge/sandbox|1435mm|lk=on}}1,435 mm (4 ft 8+12 in).

These are the rules:

1. Switch on by |lk=on (when that gauge has a link defined)
2. Only the definition measure (imperial or metric) will be linked.
3. Forget about |allk=on and those named gauge links. Red XN
4. To be sure: do forget about those named links right now. Red XN
5. We will not accept badly defined links (such as "Cape gauge" for generic 3ft 6in).
Questions
  • Which gauges should have such an option?
  • To which page should it link?

This table lists some candidates. Any suggestions? -DePiep (talk) 19:08, 5 March 2014 (UTC)

This table will evolve. You can add & edit suggestions! Please discuss below.
Gauge link (or not)?
nr Input mm RailGauge Target page See also Note
{{Template:RailGauge/testcases/check2|sg|nr=1|see also=[[standard gauge]]}}
{{Template:RailGauge/testcases/check2|ussg|nr=2|see also=}}
{{Template:RailGauge/testcases/check2|1m|nr=3|see also=}}
{{Template:RailGauge/testcases/check2|600mm|nr=4|see also=}}
{{Template:RailGauge/testcases/check2|610mm|nr=5|see also=}}
{{Template:RailGauge/testcases/check2|2ft|nr=6|see also=}}
{{Template:RailGauge/testcases/check2|2ft6in|nr=7|see also=}}
{{Template:RailGauge/testcases/check2|3ft|nr=8|see also=}}
{{Template:RailGauge/testcases/check2|39.375in|nr=9|see also=}}
{{Template:RailGauge/testcases/check2|762mm|nr=10|see also=}}
{{Template:RailGauge/testcases/check2|1067mm|nr=11|see also=3ft6in}}
{{Template:RailGauge/testcases/check2|54in|nr=12|see also=[[Scotch gauge]]{{Hmmm|12}}}}
{{Template:RailGauge/testcases/check2|58in|nr=13|see also=[[Ohio gauge]]{{Hmmm|12}}}}
{{Template:RailGauge/testcases/check2|1473mm|nr=14|see also=[[Ohio gauge]]{{Hmmm|12}}}}
{{Template:RailGauge/testcases/check2|1495mm|nr=15|see also=[[Toronto gauge]]{{Hmmm|12}}}}
{{Template:RailGauge/testcases/check2|62.25in|nr=16|see also=[[Pennsylvanian trolley gauge]]{{Hmmm|12}}}}
{{Template:RailGauge/testcases/check2|1588mm|nr=17|see also=[[Pennsylvanian trolley gauge]]{{Hmmm|12}}}}
{{Template:RailGauge/testcases/check2|1600mm|nr=18|see also=[[Irish gauge]]{{Hmmm|12}}}}
{{Template:RailGauge/testcases/check2|63in|nr=19|see also=[[Irish gauge]]{{Hmmm|12}}}}
{{Template:RailGauge/testcases/check2|victorian|nr=20|see also=[[Victorian broad gauge]]{{Hmmm|12}}}}
{{Template:RailGauge/testcases/check2|1676mm|nr=21|see also=[[Indian gauge]]{{Hmmm|12}}}}
{{Template:RailGauge/testcases/check2|66in|nr=22|see also=[[Indian gauge]]{{Hmmm|12}}}}
{{Template:RailGauge/testcases/check2|1520mm|nr=23|see also=[[Russian gauge]]{{Hmmm|12}}}}
{{Template:RailGauge/testcases/check2|1668mm|nr=24|see also=[[Iberian gauge]]{{Hmmm|12}}}}
{{Template:RailGauge/testcases/check2|2140mm|nr=25|see also=[[Brunel gauge]]{{Hmmm|12}}}}
{{Template:RailGauge/testcases/check2|84.25in|nr=26|see also=[[Brunel gauge]]{{Hmmm|12}}}}
{{Template:RailGauge/testcases/check2|750mm|nr=27|target=[[750 mm gauge railways]]|see also=}}
{{Template:RailGauge/testcases/check2|29.5in|nr=28|target=[[750 mm gauge railways]]|see also=}}
{{Template:RailGauge/testcases/check2|760mm|nr=29|target=[[760 mm gauge railways]]|see also=[[Bosnian gauge]] {{Hmmm|12}}|}}
{{Template:RailGauge/testcases/check2|3ft6in|nr=30|see also=[[Cape gauge]] {{nay}}}}

After sugestions by Jackdude101, Aaron-Tripel, section above. More sandbox effects are shown in RailGauge/doc/sandbox. -DePiep (talk) 19:08, 5 March 2014 (UTC)

As with all gauges, we use {RailGauge} to show a formatted size+conversion size first. That is where the 1,000 mm (3 ft 3+38 in) is from. A link the the gauge name can be added like this: |allk=on: 1,000 mm (3 ft 3+38 in) metre gauge.
Proposed is, to link the measure to an article: 1,000 mm (3 ft 3+38 in). So that option is arriving soon. I do not support writing the name (+link) in place of the size. -DePiep (talk) 18:06, 7 March 2014 (UTC)
 Done for the clear ones. -DePiep (talk) 20:52, 7 March 2014 (UTC)

Code and data change 07 March 2014

  • Remove visible space in fraction. Follow {{frac}}.
4 ft 8+12 in (1,435 mm)
  • Forbid wrapping halfway in named gauge like 'Standard<br>gauge'
See above
  • Removed input option 'Imperial'
Imperial -- name does not exist any more in WP. See 2ft6in.
  • Removed input option '89'. Usage will show in maintenance category
89 -- use 89mm or 3.5in.
  • Gauges 2.781in and 70.69mm: swap first mentioning (when in then in etc.).
2.781 in (70.69 mm)
70.69 mm (2.781 in)
  • Add option |lk=on to link the defined gauge to an article
1,435 mm (4 ft 8+12 in)
4 ft 8+12 in (1,435 mm)
1,000 mm (3 ft 3+38 in)
600 mm (1 ft 11+58 in)
610 mm (2 ft)
2 ft (610 mm)
2 ft 6 in (762 mm)
3 ft (914 mm)
39.375in
762 mm (2 ft 6 in)
1,067 mm (3 ft 6 in)
750 mm (2 ft 5+12 in)
2 ft 5+12 in (750 mm)
760 mm (2 ft 5+1516 in) -- not done
3 ft 6 in (1,067 mm)
See #New feature: link the gauge size itself
  • Added maintenance categories:
Category:Articles with template RailGauge with unrecognized input -- Input errors
Category:Articles with template RailGauge that may need attention -- Lists tracked RailGauges
  • Category deprecated, to be deleted:
Category:Pages with incorrect use of RailGauge template‎ --- bad name
checkY in preparation. -DePiep (talk) 20:18, 7 March 2014 (UTC)
 Done -DePiep (talk) 20:53, 7 March 2014 (UTC)

@Jackdude101:@Aaron-Tripel:.

Side effects

A bad effect occured after this change in some situations. What happened? First some good news. I have added the new tracking category for all Bosnian/750mm/762mm gauges: they are listed in Category:Articles with template RailGauge that may need attention. So from there you all can check each and every article that mentions these gauges (through {RailGauge}). Also all those Cape/3ft6in/1067mm pages are listed, under 'Y'. So we can do a full check.

But then: When the {RailGAuge} template adds that category, it is first in the wikilink label (where the template sits). The Category-codetext disrupts the wikitext before being put at the bottom of the page.

Solution

Code in article:

 ... [[750 mm gauge railways|{{RailGauge|750}}]] ...

Produces bad text now. To correct:

 ... {{RailGauge|750|lk=on}} ...

OK? This happens only in these kind of wikilinks, and only in tracked articles (tracked gauges like 762mm; see category). If this is a big problem, I can switch that listing category off (remove it from the template). -DePiep (talk) 21:39, 7 March 2014 (UTC)

I have gone back and manually corrected the screwy RailGauge links in all of the articles linked to the primary Two foot six inch gauge railways article, as well as all of the other articles that I can recall where I also posted those links prior to this coding change. I also skimmed through some of the articles linked to the 750 mm gauge railways article and corrected the few bad links that I found. I never did a top-to-bottom RailGauge linking process for 750 mm gauge railways or for any of the other non-imperial-measurement-based track gauge articles, so I am assuming that the errors for the 30 gauge and 750 gauge are now more-or-less eradicated. Jackdude101 (Talk) 6:39, 8 March 2014 (UTC)
Thanks! I'm sorry for the inconvenience (I saw 2500 pages are listed as potential problems ...). To be improved in next code change. -DePiep (talk) 07:26, 8 March 2014 (UTC)
Been sifting through the 2500 potential problem pages, no shocking errors.--Aaron-Tripel (talk) 14:36, 8 March 2014 (UTC)
Even better. I had to make these two bad edits though: [11], [12]. Plan to reverse them when it's safe again. -DePiep (talk) 15:24, 8 March 2014 (UTC)
Restored the better texts, now that {RailGauge} can handle being in a wikilabel. (Using |addcat=no). -DePiep (talk) 14:35, 3 April 2014 (UTC)

Gauge links, March 2014

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Gauge link (or not)?
nr Done? Input mm RailGauge Target page See also Note
{{Template:RailGauge/testcases/check2|sg|nr=1|see also=[[standard gauge]]|done={{aye}}}}
{{Template:RailGauge/testcases/check2|ussg|nr=2|see also=|done={{aye}}}}
{{Template:RailGauge/testcases/check2|1m|nr=3|see also=|done={{aye}}}}
{{Template:RailGauge/testcases/check2|600mm|nr=4|see also=|done={{aye}}}}
{{Template:RailGauge/testcases/check2|610mm|nr=5|see also=|done={{aye}}}}
{{Template:RailGauge/testcases/check2|2ft|nr=6|see also=|done={{aye}}}}
{{Template:RailGauge/testcases/check2|2ft6in|nr=7|see also=|done={{aye}}}}
{{Template:RailGauge/testcases/check2|3ft|nr=8|see also=|done={{aye}}}}
{{Template:RailGauge/testcases/check2|39.375in|nr=9|see also=|done={{aye}}}}
{{Template:RailGauge/testcases/check2|762mm|nr=10|see also=|done={{aye}}}}
{{Template:RailGauge/testcases/check2|1067mm|nr=11|see also=3ft6in|done={{aye}}}}

{{Template:RailGauge/testcases/check2|54in|nr=12|see also=[[Scotch gauge]]|done=}}
{{Template:RailGauge/testcases/check2|1372mm|nr=12b|see also=[[Scotch gauge]]|done=}}

{{Template:RailGauge/testcases/check2|4ft10in|nr=13|see also=[[Ohio gauge]]}}
{{Template:RailGauge/testcases/check2|1473mm|nr=14|see also=[[Ohio gauge]]}}

{{Template:RailGauge/testcases/check2|1495mm|nr=15|see also=[[Toronto gauge]]}}

{{Template:RailGauge/testcases/check2|62.25in|nr=16a|see also=[[Pennsylvanian trolley gauge]]{{Hmmm|12}} - to track}}
{{Template:RailGauge/testcases/check2|1581mm|nr=17a|see also=[[Pennsylvanian trolley gauge]]{{Hmmm|12}} - to track}}
{{Template:RailGauge/testcases/check2|62.5in|nr=16b|see also=[[Pennsylvanian trolley gauge]]}}
{{Template:RailGauge/testcases/check2|1588mm|nr=17b|see also=[[Pennsylvanian trolley gauge]]}}

{{Template:RailGauge/testcases/check2|1600mm|nr=18|see also=[[Irish gauge]]}}
{{Template:RailGauge/testcases/check2|63in|nr=19|see also=[[Irish gauge]]}}
{{Template:RailGauge/testcases/check2|victorian|nr=20|see also=[[Victorian broad gauge]]}}

{{Template:RailGauge/testcases/check2|1676mm|nr=21|see also=[[Indian gauge]]}}
{{Template:RailGauge/testcases/check2|66in|nr=22|see also=[[Indian gauge]]}}

{{Template:RailGauge/testcases/check2|1668mm|nr=24|see also=[[Iberian gauge]]}}

{{Template:RailGauge/testcases/check2|750mm|nr=27|target=[[750 mm gauge railways]]|see also=|done={{aye}}}}
{{Template:RailGauge/testcases/check2|29.5in|nr=28|target=[[750 mm gauge railways]]|see also=|done={{aye}}}}
{{Template:RailGauge/testcases/check2|760mm|nr=29|target=|see also=[[Bosnian gauge]]|done=}}
{{Template:RailGauge/testcases/check2|3ft6in|nr=30|see also=[[Cape gauge]] {{nay}}|done={{aye}}}}

{{Template:RailGauge/testcases/check2|914mm|nr=55a|target=|see also=|done=}}
{{Template:RailGauge/testcases/check2|900mm|nr=55a|target=|see also=|done=}}

{{Template:RailGauge/testcases/check2|891mm|nr=65c|target=|see also=Swedish 3 ft|done=}}

{{Template:RailGauge/testcases/check2|1676mm|nr=77a|target=|see also=|done=}}
{{Template:RailGauge/testcases/check2|5ft6in|nr=77a|target=|see also=|done=}}
{{Template:RailGauge/testcases/check2|indian|nr=77a|target=|see also=|done=}}

{{Template:RailGauge/testcases/check2|1445mm|nr=85a|target=it|see also=|done=No 'Italian' definition}}
{{Template:RailGauge/testcases/check2|950mm|nr=85b|target=it|see also=|done=No 'Italian' definition}}
{{Template:RailGauge/testcases/check2|700mm|nr=85c|target=it|see also=|done=No 'Italian' definition}}

{{Template:RailGauge/testcases/check2|58.875in|nr=88a|target=|see also=|done=}}
{{Template:RailGauge/testcases/check2|toronto|nr=88a|target=|see also=|done=}}
{{Template:RailGauge/testcases/check2|1495mm|nr=88a|target=|see also=|done=}}

{{Template:RailGauge/testcases/check2|russian|nr=88a|target=|see also=|done=}}
{{Template:RailGauge/testcases/check2|1524mm|nr=88a|target=|see also=|done=}}
{{Template:RailGauge/testcases/check2|1520mm|nr=88a|target=|see also=|done=}}
{{Template:RailGauge/testcases/check2|5ft|nr=88a|target=|see also=|done=}}

{{Template:RailGauge/testcases/check2|Iberian|nr=90a|target=|see also=|done=}}
{{Template:RailGauge/testcases/check2|1664mm|nr=90a|target=|see also=|done=}}
{{Template:RailGauge/testcases/check2|1668mm|nr=90b|target=|see also=|done=}}
{{Template:RailGauge/testcases/check2|1672mm|nr=90c|target=|see also=|done=}}

{{Template:RailGauge/testcases/check2|brunel|nr=101a|target=brunel|see also=|done=}}
{{Template:RailGauge/testcases/check2|7ft0.25in|nr=101b|target=brunel|see also=|done=}}
{{Template:RailGauge/testcases/check2|2140mm|nr=101c|target=brunel|see also=|done=}}
{{Template:RailGauge/testcases/check2|7ft exact|nr=101a|target=brunel|see also=|done=}}

{{Template:RailGauge/testcases/check2|3000mm|nr=31|target=breitsp|see also=|done=}}

{{Template:RailGauge/testcases/check2|Baltimore|nr=Bmore|target=|see also=|done=}}
{{Template:RailGauge/testcases/check2|1638mm|nr=Bmore|target=|see also=|done=No metric def}}
{{Template:RailGauge/testcases/check2|5ft4.5in|nr=Bmore|target=|see also=|done=}}

{{Template:RailGauge/testcases/check2|15in|nr=15 in|target=[[Fifteen-inch gauge railway]]|see also=|done=}}
{{Template:RailGauge/testcases/check2||nr=999|target=|see also=|done=}}

{{Template:RailGauge/testcases/check2|400 mm|nr=201|target=|see also=|done=}}
{{Template:RailGauge/testcases/check2|450 mm|nr=202|target=|see also=|done=}}
{{Template:RailGauge/testcases/check2|500 mm|nr=203|target=|see also=|done=}}
{{Template:RailGauge/testcases/check2|17in|nr=205|target=|see also=|done=}}
{{Template:RailGauge/testcases/check2|18in|nr=206|target=|see also=|done=}}
{{Template:RailGauge/testcases/check2|19in|nr=207|target=|see also=|done=}}

-DePiep (talk) 21:03, 8 March 2014 (UTC)

The discussion above is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.

Gauge proposals, March 2014

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


  • 89mm: existing gauge?
See 89mm from Europe - a film title. Difference between gauges (gauge break).
Does not seem to be a (model) gauge at all. Delete.
89 mm (3+12 in) --live
89 mm (3+12 in) --/sandbox
3+12 in (89 mm) --live 3.5in
3+12 in (89 mm) --/sandbox
-DePiep (talk) 21:23, 8 March 2014 (UTC)
checkY removed, see sandbox. -DePiep (talk) 12:05, 22 March 2014 (UTC)
  • 78in, 6ft6in, 1981mm - to research
Mentioned in Scarborough_funiculars#North_Cliff_Lift. Check Category:6 ft 6 in gauge railways
6 ft 6 in (1,981 mm) --live
6 ft 6 in (1,981 mm) --/sandbox
6 feet 6 inches (1,981.2000 mm) -- check
1,981 millimetres (77.992126 in) -- check
-DePiep (talk) 22:31, 8 March 2014 (UTC)
checkY In sandbox. -DePiep (talk) 12:05, 22 March 2014 (UTC)
  • 90in, 7ft6in
To check Category:7 ft 6 in gauge railways
See Scarborough_funiculars#St_Nicholas_Cliff_Lift
7 ft 6 in (2,286 mm) --live
7 ft 6 in (2,286 mm) --/sandbox
90 inches (2,286.00 mm)* --check
Needs source(s) -- see article Green tickY
-DePiep (talk) 22:31, 8 March 2014 (UTC)
checkY In sandbox. -DePiep (talk) 12:05, 22 March 2014 (UTC)
  • 108in, 9ft
To check Category:9 ft gauge railways
See Knoxville Incline. Has sources.
9 ft (2,743 mm) --live
9 ft (2,743 mm) --/sandbox
9 feet (2,743.2000 mm) --check
-DePiep (talk) 22:31, 8 March 2014 (UTC)
checkY In sandbox. -DePiep (talk) 12:05, 22 March 2014 (UTC)
  • 68 in add option 5ft8in. fmt "ft in" not "68in"
Category:5 ft 8 in gauge railways
5 ft 8 in (1,727 mm) --live 68in
5 ft 8 in (1,727 mm) --live
5 ft 8 in (1,727 mm) --/sandbox
Will not add " and ' input options - not standard wiki anyway (not convert, not plain text)
-DePiep (talk) 20:54, 20 March 2014 (UTC)
checkY In sandbox. -DePiep (talk) 12:05, 22 March 2014 (UTC)
  • 5ft 3.5in 1613 mm
See Category:5 ft 3½ in gauge railways
5 ft 3+12 in (1,613 mm) --live ftin
5 ft 3+12 in (1,613 mm) --ftin sbox
1613mm --sbox mm: not covered.
5 feet 3.5 inches (1,612.9000 mm) check
-DePiep (talk) 21:10, 20 March 2014 (UTC)
checkY In sandbox. -DePiep (talk) 12:05, 22 March 2014 (UTC)
  • 1040 mm
Festungsbahn (Salzburg)
1,040 mm (3 ft 5 in) --live
1,040 mm (3 ft 5 in) --sbox
1,040 millimetres (40.944882 in) --check
+40+3032 inches (1,039.8125 mm) --check 15/16 that is Red XN
-DePiep (talk) 17:15, 21 March 2014 (UTC)
In sandbox. -DePiep (talk) 12:05, 22 March 2014 (UTC)
or 3ft 5in, or 3ft4.75in ?
3ft5in --live
3ft5in --sandbox 3ft5in
3 feet 5 inches (1,041.4000 mm) --check
3 ft 4+34 in (1,035 mm) --live. Red XN
-DePiep (talk) 05:31, 24 March 2014 (UTC)
plus Added 1040 mm as 3 ft 5 in. More precise in ft in is not sourced (3ft5in is 1.4 mm off = < 1%).
checkY In sandbox, both imp and metric. -DePiep (talk) 23:24, 2 April 2014 (UTC)
  • 783 mm by imp frac, not .83 in
783 mm --live
783 mm --sbox
783 millimetres (30.826772 in) --check
+30+2732 inches (783.43125 mm) --check
+30+2632 inches (782.63750 mm) --check so 13/16 it is
-DePiep (talk) 19:49, 21 March 2014 (UTC)
checkY In sandbox. -DePiep (talk) 12:05, 22 March 2014 (UTC)
  • 5ft4.5inBaltimore must be imperial only defined, not met
1638 mm --live
1638 mm --sbox
5 ft 4+12 in (1,638 mm) --live
5 ft 4+12 in (1,638 mm) --sbox
5 ft 4+12 in (1,638 mm) --live
nbaltimore --sbox lk=on
-DePiep (talk) 11:50, 22 March 2014 (UTC)
checkY In sandbox. -DePiep (talk) 12:05, 22 March 2014 (UTC)


  • sg names following standard gauge#Naming more or less: accept EUsg, UICsg, metsg, UKsg, impsg. As always, A=a.
EUsg --live
UICsg --live
1,435 mm (4 ft 8+12 in) --live
4 ft 8+12 in (1,435 mm) --live
4 ft 8+12 in (1,435 mm) --live
EUsg --sandbox EUsg
UICsg --sandbox UICsg
1,435 mm (4 ft 8+12 in) --sandbox metsg
4 ft 8+12 in (1,435 mm) --sandbox UKsg
4 ft 8+12 in (1,435 mm) --sandbox impsg
-DePiep (talk) 12:37, 29 March 2014 (UTC)
checkY Added to sandbox. -DePiep (talk) 12:41, 29 March 2014 (UTC)
  • 915mm equals 914mm. 915mm is defined by the Chemnitz, early on. Shold mean 3ft.
See Trams in Chemnitz, and its German page+talkpage de:Straßenbahn_Chemnitz.
914 mm (3 ft) --live 914mm
915 mm (3 ft) --live 915mm
915 mm (3 ft) --sandbox 915mm
checkY In sandbox -DePiep (talk) 00:15, 3 April 2014 (UTC)

General changes (not gauge-specific)

  • Make sure that category ns pages also are tracked for new gauges.
checkY In sandbox. -DePiep (talk) 12:05, 22 March 2014 (UTC)
  • fmt imperial: '2 ft 4 in' not "28 in" above 2ft. Below: ask WP:TRAIN.
checkY In sandbox. -DePiep (talk) 12:05, 22 March 2014 (UTC)
  • All mm input must have unit ("mm"). rm all mm shortcuts like "123" for "123mm". help the next editor, less code more explicit.
Pages will be listed in maintenance category (input not recognised).
Kept for rounded oblivious ones, like 800 for 800 mm.
checkY In sandbox. -DePiep (talk) 12:05, 22 March 2014 (UTC)
red-outlined triangle containing exclamation point Warning -- expect multiple listings in "unrecognised" category. Pages to edit.
  • Deprecate ' and " for ft in.
rm from documentation, don't advertise.
Some have been removed already from the input list.
red-outlined triangle containing exclamation point Warning -- removal from list will list pages in the 'unrecognised' category.
-DePiep (talk) 10:47, 3 April 2014 (UTC)
  • Check 699 mm, 27.5in, 1581mm, 1588 mm (Penn), 1680mm=near Indian?
maintcat ="X"
checkY In sandbox. -DePiep (talk) 12:05, 22 March 2014 (UTC)
  • Italian gauges (like 700mm) is not a worldwide id. To check: Use size page to link to, not the cultural name.
DePiep (talk) 04:49, 24 March 2014 (UTC)
checkY removed links from the three 'Italian' gauges (700, 950, 1445 mm - no target pages for now). -DePiep (talk) 20:29, 29 March 2014 (UTC)
  • Anchor here option
In keyboard/ascii text.
-DePiep (talk) 05:39, 24 March 2014 (UTC)
 Not done. Later maybe. -DePiep (talk) 10:47, 3 April 2014 (UTC)
  • Don't track option: don't categorize pages from/by gauge infobox template &tc.
-05:42, 24 March 2014 (UTC)
Same for individual calls. -DePiep (talk) 13:11, 29 March 2014 (UTC)
red-outlined triangle containing exclamation point Warning This option must be available before doing any more categorize-in-wikilink. -DePiep (talk) 16:21, 30 March 2014 (UTC)
|addcat=no will skip the maintenance categorization. Allows code like:
[[History of Panama|{{RailGauge|710mm|addcat=no}}]]. (otherwise, the category would disrupt the wikilabel).
checkY. In sandbox. -DePiep (talk) 11:24, 3 April 2014 (UTC)
  • Todo research these few gauges that are still on the list (see category unrecognised).
-DePiep (talk) 05:50, 24 March 2014 (UTC)
 Not done postponed. Issues now in archive 4. -DePiep (talk) 10:47, 3 April 2014 (UTC)
  • Allow comma in input. like 1,435mm
1,435 mm (4 ft 8+12 in) -- live
1,435 mm (4 ft 8+12 in) -- sbox
1,000 mm (3 ft 3+38 in) -- sbox
0,800m -- 0,800 m Red XN (won't work)
plus Added to sandbox. -DePiep (talk) 13:18, 29 March 2014 (UTC)
checkY In sandbox. -DePiep (talk) 11:37, 3 April 2014 (UTC)
  • Allow 'disp==' and 'disp=/' to express the definition: "1524 mm = 5 ft" and direct slash.
1,435 mm = 4 ft 8+12 in -- == live
1,435 mm = 4 ft 8+12 in -- == sbox
1,435 mm / 4 ft 8+12 in -- =/ live
1,435 mm / 4 ft 8+12 in -- =/ sbox
1,435 mm / 4 ft 8+12 in -- =s live
1,435 mm / 4 ft 8+12 in -- =s sbox
1,435 mm (4 ft 8+12 in) -- = live
1,435 mm (4 ft 8+12 in) -- = sbox
-DePiep (talk) 10:50, 2 April 2014 (UTC)
checkY in sandbox. -DePiep (talk) 15:57, 2 April 2014 (UTC)
The discussion above is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
  1. ^ NMRA 70.64mm
  2. ^ NMRA 70.69mm
  3. ^ "Toy railway". 1939-12-08. Retrieved 2013-11-10.
  4. ^ Philip Pacey. "A visitors'guide to Nordic (Scandinavian) narrow gauge railways". Retrieved 2013-08-06.
  5. ^ "Collection" (in Dutch). Decauville Spoorweg Museum. Retrieved 2013-08-06. In de collectie bevinden zich voertuigen met 350, ..., 550, ..., 620, ... mm spoorwijdte.
  6. ^ Andrew Goodwin; Stephen Goodwin; Dave Meller (2004). "Kruszwica sugar works". Retrieved 2013-08-06. Existed until 1923.
  7. ^ "Faxe Jernbane" (in Danish). Retrieved 2013-08-06. Google translated: In the following book, Østbanen 1879-2004, indicated gauge to 2 ½ feet or 791 mm. Nevertheless acquired Garde in 1866 a used German mine locomotive gauge 785 mm. This difference in gauge targets impossible did not [did not make impossible], however, use of the locomotive, which was in operation on the field all the way to 1921. This is perhaps one of the reasons for the doubts surrounding the runway actual gauge, there are several places specified for both 785 mm (evp have even one such example) and 791 mm. Thus mention Wikipedia [da:Faxe Jernbane]: "There is no doubt about the route originally used gauge. Figures have admittedly several places in the literature as 791 mm, but in the delivery protocol of train factory Krauss set in 1874, 1907, 1914 and 1927 having delivered locomotives gauge 785 mm. It is somewhat unclear why mentioned one at the track width 791 mm. There should probably be a shift over the years, since Faxe Limestone Quarry around 1970 ordered 2 diesel locomotives in Schöma with a desired track width of 791 mm."
  8. ^ "The Tramways of Santos (São Paulo state), Brazil". June 2006. Retrieved 2013-11-12. {{cite web}}: |first1= missing |last1= (help); Missing pipe in: |first1= (help)CS1 maint: multiple names: authors list (link) CS1 maint: numeric names: authors list (link)