साँचा:Track gauge
इस साँचे का इस्तेमाल कई बड़ी संख्या के पृष्ठों में किया जा रहा है। बड़े पैमाने पर व्यवधान और अनावश्यक सर्वर लोड से बचने के लिए, किसी भी बदलाव के पहले इस साँचे के /प्रयोगपृष्ठ उपपृष्ठ या अपने उपयोगकर्ता स्थान पर उसे जांच कर देख ले। जांचे गये बदलावों को इस साँचे में एक बार में जोड़ा जा सकता है।अन्य उपयोगकर्ताओं के खातिर, बदलाव करने से पहले उससे सम्बंधित बात-चीत वार्ता पृष्ठ पर करें। |
This template uses Lua: |
This template accepts a track gauge and returns that defined track gauge well formatted, plus the converted size value by another unit:
{{Track gauge|1520 mm}}
→ साँचा:RailGauge/compose{{Track gauge|4 ft}}
→ साँचा:RailGauge/compose
Extra options are available:
{{Track gauge|1520 mm|lk=on}}
→ साँचा:RailGauge/compose{{Track gauge|1520 mm|al=on}}
→ साँचा:RailGauge/compose Russian gauge{{Track gauge|1520 mm|allk=on}}
→ साँचा:RailGauge/compose Russian gauge
Input options
The first parameter specifies the gauge:
→ साँचा:RailGauge/compose{{Track gauge|1435 mm}}
→ साँचा:RailGauge/compose{{Track gauge|4 ft 8.5 in}}
→ 4 ft 8 1/2 in{{Track gauge|4 ft 8 1/2 in}}
→ साँचा:RailGauge/compose{{Track gauge|56.5 in}}
→ Standard gauge{{Track 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: {{Track gauge|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
is a safer bet.mm
List of defined track gauges
साँचा:Track gauge/doc/input options
Formatting input
When entering a track gauge (like {{Track gauge|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
).
Parameter input |
Result | Note |
---|---|---|
|
साँचा:RailGauge/compose | standard gauge |
|
standard gauge | standard gauge, by name |
|
साँचा:RailGauge/compose | standard gauge, this way puts imperial units first |
|
UK sg | standard gauge, this way puts imperial units first |
|
साँचा:RailGauge/compose | standard gauge, by all-inches |
|
56 1/2" | standard gauge, using primes |
|
56 1/2 in | standard gauge, using slash for fraction |
|
साँचा:RailGauge/compose | 1 m is recognised, but not many more in . Better use
|
|
साँचा:RailGauge/compose | HO scale model railway |
|
साँचा:RailGauge/compose | Miniature railway |
|
साँचा:RailGauge/compose | Brunel |
|
साँचा:RailGauge/compose | Not recognised (so no converted value). This track gauge, Brunel's, is not defined in mm. |
|
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
{{Track gauge
|
| 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
}}
Parameter | What it does | Example (code) | Example (output) | |
---|---|---|---|---|
lk=on | Links the defining measure (first measure) "defined size" depends on input |
{{Track gauge|3ft6in|lk=on}}
|
साँचा:RailGauge/compose साँचा:RailGauge/compose | |
al=on | Adds the alternate name after the gauge measurement values | {{Track gauge|sg|al=on}}
|
साँचा:RailGauge/compose standard gauge | |
allk=on | Adds a wikilink to the alternate name where applicable | {{Track gauge|sg|allk=on}}
|
साँचा:RailGauge/compose standard gauge | |
first=imp first=met |
Puts the requested measure first (metric, imperial) | {{Track gauge|1000mm|first=imp}}
|
साँचा:RailGauge/compose | |
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).
|
{{Track gauge|sg|disp=also defined as being}}
|
साँचा:RailGauge/compose | |
disp=s or / | Uses a slash as a separator rather than parentheses | {{Track gauge|sg|disp=s}}
|
साँचा:RailGauge/compose | |
disp=[] | Uses a square brackets rather than parentheses | {{Track gauge|sg|disp=[]}}
|
साँचा:RailGauge/compose | |
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)
|
{{Track gauge|sg|disp=1}}
|
साँचा:RailGauge/compose | |
disp=br | Forces a line break after the first size (and also before any gauge name) | {{Track gauge|sg|disp=br}}
|
साँचा:RailGauge/compose | |
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.) | {{Track gauge|sg|nowrap=on}}
|
साँचा:RailGauge/compose | |
addcat=no | Will not add a maintenance category | {{Track gauge|sg|addcat=no}}
|
साँचा:RailGauge/compose | |
unitlink=on | Adds wikilinks to the measurement unit labels | {{Track gauge|sg|unitlink=on}}
|
साँचा:RailGauge/compose |
- Names can be universal, being defined worldwide. For example: Iberian gauge, साँचा:RailGauge/compose Iberian gauge. Other names can be localor culturally restricted, for example the name "Cape gauge" is used in South Africa for साँचा:RailGauge/compose, 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 |
---|---|---|
{{Track gauge|Baltimore gauge|al=on}} | Baltimore gauge | |
{{Track gauge|Baltimore|al=on}} | Baltimore | Omitting " gauge", same effect |
{{Track gauge|baltimore|al=on}} | baltimore | Case-insensitive (A=a) |
{{Track gauge|baltimore|al=on}} | baltimore | |al=on shows the alternative name
|
{{Track gauge|baltimore|allk=on}} | baltimore | |allk=on shows the alternative name, linked
|
{{Track gauge|baltimore|lk=on|al=on}} | baltimore | |lk=on links the size (as always)
|
{{Track gauge|Baltimore streetcar gauge|al=on}} | Baltimore streetcar gauge | This one has more names |
{{Track gauge|Bosnian|al=on}} | साँचा:RailGauge/compose Bosnian gauge | |
{{Track gauge|Brunel|al=on}} | साँचा:RailGauge/compose Brunel gauge | |
{{Track gauge|Cape|al=on}} | साँचा:RailGauge/compose Cape gauge | |
{{Track gauge|Iberian|al=on}} | साँचा:RailGauge/compose Iberian gauge | |
{{Track gauge|Indian|al=on}} | साँचा:RailGauge/compose Indian gauge | |
{{Track gauge|Victorian|al=on}} | साँचा:RailGauge/compose Irish gauge | |
{{Track gauge|Irish|al=on}} | साँचा:RailGauge/compose Irish gauge | |
{{Track gauge|metre|al=on}} | साँचा:RailGauge/compose metre gauge | |
{{Track gauge|Ohio|al=on}} | साँचा:RailGauge/compose Ohio gauge | |
{{Track gauge|Pennsylvania|al=on}} | साँचा:RailGauge/compose Pennsylvanian trolley gauge | |
{{Track gauge|Pennsylvania trolley|al=on}} | Pennsylvania trolley | |
{{Track gauge|Russian|al=on}} | साँचा:RailGauge/compose Russian gauge | |
{{Track gauge|Scotch|al=on}} | साँचा:RailGauge/compose Scotch gauge | |
{{Track gauge|standard gauge|al=on}} | standard gauge | Also: "sg", "metsg" (metric units first) |
{{Track gauge|US sg|al=on}} | साँचा:RailGauge/compose standard gauge | Also: "imp sg", "UK sg", "NA sg" (imperial units first) |
{{Track gauge|Swedish three foot|al=on}} | Swedish three foot | |
{{Track gauge|Swedish|al=on}} | Swedish | |
{{Track gauge|Toronto|al=on}} | साँचा:RailGauge/compose Toronto gauge | |
{{Track 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:
{{track gauge|1000mm|allk=on|engvar=en-US}}
→ साँचा:RailGauge/compose metre gauge
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:
- {{Convert|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: साँचा:RailGauge/compose.
- 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 Category:Articles using Template:Track gauge with unrecognized input (0).
TemplateData
TemplateData for Track gauge
The template formats a track gauge size into standard notation and adds the conversion into the imperial/metric (other) size
|
See also
साँचा:Navbox track gauge categories
- {{Track gauge/status}} - talkpage infobox of a track gauge, to be used on the talkpage
- List of scale model sizes
- Rail transport modelling scales
- Category:Rubber-tyred metros (0)
- Category:Dual gauge railways (0)
External links; sources
Sources
- Light Rail Transit Association (LRTA)
- Morrisson, Allen (2013). "Electric transport in latin america". Latin America is very well covered
- "A world of trams and urban transit". Light Rail Transit Association (LRTA)). UK based, covering most countries
- de:Liste_der_Spurweiten (checking here in Template talk:Track gauge/dewiki list)
Scaled rail models
- "S-3.1 Trackwork, Proto & Fine Scales". NMRA. 2004.
- "S-3.2 Trackwork Standard Scales (metric)" (PDF). NMRA. 2010.
ऊपर दिए गए निर्देश साँचा:Track gauge/doc से लिए गए है।(संपादन | इतिहास) संपादक इस साँचे के प्रयोगस्थल व प्रयोग पन्नों में प्रयोग कर सकते है। sandbox (create) and testcases (create) pages. कृपया /doc उपपृष्ठ पर श्रेणियाँ व विकियों के बिच की कड़ियाँ जोड़े। इस साँचे के उपपृष्ठ। |