مندرجات کا رخ کریں

سانچہ:ریلوے گیج

آزاد دائرۃ المعارف، ویکیپیڈیا سے

This template accepts a track gauge and returns that defined track gauge well formatted, plus the converted size value by another unit:

  • {{ریلوے گیج|1520 mm}}1,520 ملی میٹر (4 فٹ 11 2732 انچ)
  • {{ریلوے گیج|4 ft}}4 فٹ (1,219 ملی میٹر)

Extra options are available:

  • {{ریلوے گیج|1520 mm|lk=on}}1,520 ملی میٹر (4 فٹ 11 2732 انچ)
  • {{ریلوے گیج|1520 mm|al=on}}1,520 ملی میٹر (4 فٹ 11 2732 انچ) Russian gauge
  • {{ریلوے گیج|1520 mm|allk=on}}1,520 ملی میٹر (4 فٹ 11 2732 انچ) Russian gauge

Input options

[ترمیم]

The first parameter specifies the gauge:

  • {{ریلوے گیج|1435 mm}}1,435 ملی میٹر (4 فٹ 8 12 انچ)
  • {{ریلوے گیج|4 ft 8.5 in}}4 فٹ 8 12 انچ (1,435 ملی میٹر)
  • {{ریلوے گیج|4 ft 8 1/2 in}}4 فٹ 8 12 انچ (1,435 ملی میٹر)
  • {{ریلوے گیج|56.5 in}}4 فٹ 8 12 انچ (1,435 ملی میٹر)
  • {{ریلوے گیج|Standard gauge}} → Standard gauge

Rail track gauges can be entered as they are defined: in units mm or ft in. Also common accepted names can be used, see below.

The input value (a length, in metric or imperial units) must be a defined track gauge. Currently 135 gauges are defined by metric units, and 148 by imperial units. Some are defined in both unit systems, such as the standard gauge.

  • When an input value is not recognised by the template, the template simply returns the input as it is: {{ریلوے گیج|25in}} → 25in
The page with this unknown input is also listed in a maintenance category, in the background, that signals interested editors that there is a new rail gauge used in Wikipedia. More on this below.
  • Some gauges in metric are defined in metres: 1 m is recognised. However, it is not available for all metric defined gauges. Using mm is a safer bet.

List of defined track gauges

[ترمیم]

سانچہ:Track gauge/doc/input options

Formatting input

[ترمیم]

When entering a track gauge (like {{ریلوے گیج|1435mm}}, these are formatting options. Keep in mind that only defined gauges are recognised.

Spacing is free, and fractions can be used in imperial units. Primes (' and ") may be used for [foot, inch]. Any [foot, inch] size can be entered in all-inches (4 ft 8 1/2 in equals 56 1/2 in and 56.5 in).

Input options, examples
Parameter
input
Result Note
1435 mm 1,435 ملی میٹر (4 فٹ 8 12 انچ) standard gauge
standard gauge standard gauge standard gauge, by name
4 ft 8.5 in 4 فٹ 8 12 انچ (1,435 ملی میٹر) standard gauge, this way puts imperial units first
UK sg 4 فٹ 8 12 انچ (1,435 ملی میٹر) standard gauge, this way puts imperial units first
56.5 in 4 فٹ 8 12 انچ (1,435 ملی میٹر) standard gauge, by all-inches
56.5" 56 1/2" standard gauge, using primes
56 1/2 in 4 فٹ 8 12 انچ (1,435 ملی میٹر) standard gauge, using slash for fraction
1 m 1,000 ملی میٹر (3 فٹ 3 38 انچ) 1 m is recognised, but not many more in m. Better use mm
16.5 mm 16.5 ملی میٹر (0.65 انچ) HO scale model railway
16.5 in 16 12 انچ (419 ملی میٹر) Miniature railway
7 ft 0.25 in 7 فٹ 14 انچ (2,140 ملی میٹر) Brunel
2140 mm 2140 mm Not recognised (so no converted value). This track gauge, Brunel's, is not defined in mm.
65 in 65 in Input not recognised (so no converted value); output copies the input.
This is a good way to enter an uncovered rail gauge on a page: other editors will notice (and can add a new gauge to the template!).

Parameters

[ترمیم]
{{ریلوے گیج
|
| lk=on
| first=imp, met
| disp= s, /, 1, br, [], <any literal text>
| al=on
| allk=on
| nowrap=off (default), on, all
| addcat=no
| unitlink=on
}}
Optional parameters
Parameter What it does Example (code) Example (output)
lk=on Links the defining measure (first measure)
"defined size" depends on input
{{ریلوے گیج|3ft6in|lk=on}}

{{ریلوے گیج|1067mm|lk=on}}

لوا خطا ماڈیول:Track_gauge میں 179 سطر پر: bad argument #4 to 'format' (no value)۔
1,067 ملی میٹر (3 فٹ 6 انچ)
al=on Adds the alternate name after the gauge measurement values {{ریلوے گیج|sg|al=on}} 1,435 ملی میٹر (4 فٹ 8 12 انچ) standard gauge
allk=on Adds a wikilink to the alternate name where applicable {{ریلوے گیج|sg|allk=on}} 1,435 ملی میٹر (4 فٹ 8 12 انچ) معیاری گیج
first=imp
first=met
Puts the requested measure first (metric, imperial) {{ریلوے گیج|1000mm|first=imp}} 3 فٹ 3 38 انچ (1,000 ملی میٹر)
disp=any text The text will be written between the measurements, two spaces added. Brackets are omitted. Text must be 2 characters or more. (codes for |disp= are processed as described: 1, s, /, br). {{ریلوے گیج|sg|disp=also defined as being}} 1,435 ملی میٹر also defined as being 4 فٹ 8 12 انچ
disp=s or / Uses a slash as a separator rather than parentheses {{ریلوے گیج|sg|disp=s}} 1,435 ملی میٹر/​4 فٹ 8 12 انچ
disp=[] Uses a square brackets rather than parentheses {{ریلوے گیج|sg|disp=[]}} 1,435 ملی میٹر [4 فٹ 8 12 انچ]
disp=1 Only shows the first measure (may be used when repeated on a page
or in conjunction with first= to display the output only)
{{ریلوے گیج|sg|disp=1}} 1,435 ملی میٹر
disp=br Forces a line break after the first size (and also before any gauge name) {{ریلوے گیج|sg|disp=br}} 1,435 ملی میٹر
(4 فٹ 8 12 انچ)
nowrap=off (default), on, all Sets possible line break (line wrap): after between the measurements (off=defalt), not (on, all), or not at all when named gauge is present. (note: until May 2014, default behaviour was no break between the measurements. This has changed.) {{ریلوے گیج|sg|nowrap=on}} 1,435 ملی میٹر (4 فٹ 8 12 انچ)
addcat=no Will not add a maintenance category {{ریلوے گیج|sg|addcat=no}} 1,435 ملی میٹر (4 فٹ 8 12 انچ)
unitlink=on Adds wikilinks to the measurement unit labels {{ریلوے گیج|sg|unitlink=on}} 1,435 ملی میٹر (فٹ 8 12 انچ)
  • Names can be universal, being defined worldwide. For example: Iberian gauge, 1,668 ملی میٹر (5 فٹ 5 2132 انچ) Iberian gauge. Other names can be localor culturally restricted, for example the name "Cape gauge" is used in South Africa for 3 فٹ 6 انچ (1,067 ملی میٹر), but not in Japan (in Japan that same track gauge is not named).
  • Also, two sizes can lead to one gauge name.

Named gauges

[ترمیم]

Established gauge names can be entered. The word "gauge" can be omitted. Case-insensitive (A=a). See also the |al=, |allk= parameters (below), to show a gauge name in the outcome.

Input Result Note
{{ریلوے گیج|Baltimore gauge|al=on}} Baltimore gauge
{{ریلوے گیج|Baltimore|al=on}} 5 فٹ 4 12 انچ (1,638 ملی میٹر) Baltimore streetcar gauge Omitting " gauge", same effect
{{ریلوے گیج|baltimore|al=on}} 5 فٹ 4 12 انچ (1,638 ملی میٹر) Baltimore streetcar gauge Case-insensitive (A=a)
{{ریلوے گیج|baltimore|al=on}} 5 فٹ 4 12 انچ (1,638 ملی میٹر) Baltimore streetcar gauge |al=on shows the alternative name
{{ریلوے گیج|baltimore|allk=on}} 5 فٹ 4 12 انچ (1,638 ملی میٹر) Baltimore streetcar gauge |allk=on shows the alternative name, linked
{{ریلوے گیج|baltimore|lk=on|al=on}} لوا خطا ماڈیول:Track_gauge میں 179 سطر پر: bad argument #4 to 'format' (no value)۔ |lk=on links the size (as always)
{{ریلوے گیج|Baltimore streetcar gauge|al=on}} Baltimore streetcar gauge This one has more names
{{ریلوے گیج|Bosnian|al=on}} 760 ملی میٹر (2 فٹ 5 1516 انچ) Bosnian gauge
{{ریلوے گیج|Brunel|al=on}} 7 فٹ (2,134 ملی میٹر) Brunel gauge
{{ریلوے گیج|Cape|al=on}} 3 فٹ 6 انچ (1,067 ملی میٹر) Cape gauge
{{ریلوے گیج|Iberian|al=on}} 1,668 ملی میٹر (5 فٹ 5 2132 انچ) Iberian gauge
{{ریلوے گیج|Indian|al=on}} 5 فٹ 6 انچ (1,676 ملی میٹر) Indian gauge
{{ریلوے گیج|Victorian|al=on}} 1,600 ملی میٹر (5 فٹ 3 انچ) Victorian broad gauge
{{ریلوے گیج|Irish|al=on}} 5 فٹ 3 انچ (1,600 ملی میٹر) Irish gauge
{{ریلوے گیج|metre|al=on}} 1,000 ملی میٹر (3 فٹ 3 38 انچ) میٹر گیج
{{ریلوے گیج|Ohio|al=on}} 4 فٹ 10 انچ (1,473 ملی میٹر) Ohio gauge
{{ریلوے گیج|Pennsylvania|al=on}} 5 فٹ 2 12 انچ (1,588 ملی میٹر) Pennsylvania trolley gauge
{{ریلوے گیج|Pennsylvania trolley|al=on}} 5 فٹ 2 12 انچ (1,588 ملی میٹر) Pennsylvania trolley gauge
{{ریلوے گیج|Russian|al=on}} 1,520 ملی میٹر (4 فٹ 11 2732 انچ) Russian gauge
{{ریلوے گیج|Scotch|al=on}} 4 فٹ 6 انچ (1,372 ملی میٹر) Scotch gauge
{{ریلوے گیج|standard gauge|al=on}} standard gauge Also: "sg", "metsg" (metric units first)
{{ریلوے گیج|US sg|al=on}} 4 فٹ 8 12 انچ (1,435 ملی میٹر) standard gauge Also: "imp sg", "UK sg", "NA sg" (imperial units first)
{{ریلوے گیج|Swedish three foot|al=on}} 891 ملی میٹر (2 فٹ 11 332 انچ) Swedish three foot
{{ریلوے گیج|Swedish|al=on}} 891 ملی میٹر (2 فٹ 11 332 انچ) Swedish three foot
{{ریلوے گیج|Toronto|al=on}} 4 فٹ 10 78 انچ (1,495 ملی میٹر) Toronto gauge
{{ریلوے گیج|Lego|al=on}} Lego

English variant (ENGVAR)

[ترمیم]

This template defaults to UK-English. For articles written in US-English, set parameter |engvar to |engvar=en-US. In this situation, the US-English spelling is shown:

{{ریلوے گیج|1000mm|allk=on|engvar=en-US}}1,000 ملی میٹر (3 فٹ 3 38 انچ) میٹر گیج

As of 2016, the only two gauges impacted are the 1000 mm and 1009 mm gauges. In UK-English these are spelled metre, in US-English these are spelled meter.

Why not use {{Convert}}?

[ترمیم]

To convert a track gauge, using {{Convert}} comes to mind. For example, standard gauge:

  • {{تحویل|1435|mm|ftin|abbr=on}} → 1,435  ملی میٹر (4 فٹ 8.5 انچ)
However, this has some disadvantages. First of all, track gauges are defined by an institute, not just measured. The list of those defined track gauges is limited, and overseeable (today some 270 physical sizes are defined).
Using {{Track gauge}} allows us to track (follow) all articles with a specific gauge. This way the list can be made more accurate, correct and complete.
Also, the track definition can be directly linked to the sourcing article: 1,067 ملی میٹر (3 فٹ 6 انچ).
Further more, the template allows to recognise named gauges such as "Russian gauge".

Tracking category

[ترمیم]
{{Track gauge}} detects that an undefined gauge is entered, and signal the page for maintenance. For example, metre gauge is only defined in metric. Entering an imperial size would categorise that article in زمرہ:Articles using Template:Track gauge with unrecognized input (0).

TemplateData

[ترمیم]
ذیل میں اس سانچہ کی معلومات سانچہ دستاویز درج ہے جنہیں بصری خانہ ترمیم اور دیگر آلات استعمال کرتے ہیں۔

معلومات سانچہ ریلوے گیج

The template formats a track gauge size into standard notation and adds the conversion into the imperial/metric (other) size

محددات سانچہ[انتظام TemplateData]

پیرامیٹروضاحتطرزحالت
Track gauge definition1

Defined track gauge, in mm or ft in. Also can accept: ' '', m, gauge name

اِسٹرنگمطلوب
Link top measurement unitslk

=on: adds link to the gauge defining article

اِسٹرنگاختیاری
Alternative nameal

=on: Add gauge name (if existing)

اِسٹرنگاختیاری
Alternative name, linkedallk

=on: Add gauge name (if existing) and link to its wiki page

اِسٹرنگاختیاری
Display converted gaugedisp

Separator for the converted value: 1=none (first value only); =s, /: slash separator; =''Any text'' (2 or more characters): Any literal text written between the two values.

طے شدہ
(...) brackets
اِسٹرنگاختیاری
Which unit to mention firstfirst

=met: metric first; =imp: imperial first (default: input unit)

طے شدہ
By input
اِسٹرنگاختیاری
Allow line wrapping of textnowrap

wrap=off, on, all: allows lin breaking between the two measurements. Default: on. 'all' disallows linebreaking wiothing an alternative name

طے شدہ
off
اِسٹرنگاختیاری
Wikilink unitsunitlink

=on: do wikilink

اِسٹرنگاختیاری
Categorize pageaddcat

=no: do not categorize

طے شدہ
yes
اِسٹرنگاختیاری
ENGVARengvar

When set to en-US, "metRE" is spelled "metER"

طے شدہ
en-UK
مثال
meter gauge only
Unknownاختیاری
commacomma

کوئی وضاحت نہیں

Unknownاختیاری