Template:Infobox Locomotive Base

From Wikipedia, the free encyclopedia

This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here.






Please enter a name
{{{name}}}
Please add a caption for this image
[[Image:{{{image2}}}|{{{image2size}}}px|{{{name2}}}]]
Please add a caption for this image
Power type Missing power type
Designer {{{designer}}}
Builder {{{builderother}}}
Serial number {{{serialnumber}}}
Model {{{buildmodel}}}
Type of service {{{service}}}
Build date {{{builddate}}}
Total production {{{totalproduction}}}
Configuration {{{whytetype}}}
AAR wheel arr. {{{aarother}}}
UIC classification {{{uicclass}}}
Gauge {{{gauge}}}
Trucks {{{trucks}}}
Bogies {{{bogies}}}
Leading wheel size {{{leadingsize}}}
Driver size {{{driversize}}}
Wheel diameter {{{wheeldiameter}}}
Trailing wheel size {{{trailingsize}}}
Wheelbase {{{wheelbase}}}
Length {{{length}}}
Width {{{width}}}
Height {{{height}}}
Frame size {{{framesize}}}
Axle load {{{axleload}}}
Weight on drivers {{{weightondrivers}}}
Total weight {{{weight}}}
Locomotive and tender combined weight {{{locotenderweight}}}
Fuel type {{{fueltype}}}
Fuel capacity {{{fuelcap}}}
Water capacity {{{watercap}}}
Tender capacity {{{tendercap}}}
Fuel consumption {{{consumption}}}
Water consumption {{{watercons}}}
Electric system(s) {{{electricsystem}}}
Collection method {{{collectionmethod}}}
Prime mover {{{primemover}}}
Engine type {{{enginetype}}}
Aspiration {{{aspiration}}}
Displacement {{{displacement}}}
Alternator {{{alternator}}}
Generator {{{generator}}}
Traction motors {{{tractionmotors}}}
Boiler {{{boiler}}}
Boiler pressure {{{boilerpressure}}}
Feedwater heater {{{feedwaterheater}}}
Fire grate area {{{firearea}}}
Heating surface: Tubes {{{tubearea}}}
Heating surface: Flues {{{fluearea}}}
Heating surface: Tubes & flues {{{tubesandflues}}}
Heating surface: Firebox {{{fireboxarea}}}
Heating surface: Total {{{totalsurface}}}
Superheater type {{{superheatertype}}}
Superheater area {{{superheaterarea}}}
Cylinders {{{cylindercount}}}
Cylinder size {{{cylindersize}}}
Front cylinder size {{{frontcylindersize}}}
Rear cylinder size {{{rearcylindersize}}}
High-pressure
cylinder size
{{{hpcylindersize}}}
Low-pressure
cylinder size
{{{lpcylindersize}}}
Valve gear {{{valvegear}}}
Transmission {{{transmission}}}
Top speed {{{topspeed}}}
Power output {{{poweroutput}}}
Tractive effort {{{tractiveeffort}}}
Factor of adhesion {{{factorofadhesion}}}
Locomotive brakes {{{locobrakes}}}
Train brakes {{{trainbrakes}}}
Safety systems {{{safety}}}
Career {{{railroad}}}
Class {{{railroadclass}}}
Number in class {{{numinclass}}}
Number(s) {{{roadnumber}}}
Official name {{{officialname}}}
Nicknames {{{nicknames}}}
Locale {{{locale}}}
Delivered {{{deliverydate}}}
First run {{{firstrundate}}}
Last run {{{lastrundate}}}
Retired {{{retiredate}}}
Preserved {{{preservedunits}}}
Restored {{{restoredate}}}
Scrapped {{{scrapdate}}}
Current owner {{{currentowner}}}
Disposition {{{disposition}}}
WikiProject Trains
{{Infobox Locomotive Auto}}

This is a modified version of the {{Infobox Locomotive}} template. Several new features have been added such as auto-linking, default values for common fields that may be over ridden if another value is entered. Several optional features such as a secondary image, railroad logo and manufactures logo have also been added.

[edit] Usage

Working examples can be here This template has a large number of parameters, but only two are required:

  • name - The name that will appear above the top line of the infobox. If no name is provided "Please enter a name" will be displayed.
  • powertype - The type of power that the locomotive employs. If no power type is given, "Missing power type" will be displayed. (e.g. "steam", "diesel", "diesel-electric", "electric", etc.)

The remaining parameters are as follows (in the order that they will appear in the template output):

  • image - The filename for the primary infobox image. If no image is provided the default image will be added. Also, if no primary image is added the article will automatically be added to Category:Rail transport articles needing images. When a primary image is provided, or added the article will automatically be removed from this category.
  • imagesize - The size of the image in pixels (as in imagesize=200|), default value is 200; to use the image's actual size, specify imagesize as a blank value (as in imagesize=|). Setting image size above 300px are not recommended.
  • caption - The image caption that will be displayed

Optional secondary image added in new Infobox version.

  • image2 - The filename for the sedcondary infobox image. The secondary image is optional added for convenience. It is the editors choice how to use this option. (Perhaps e.g. cab view of the locomotive, different perspective, etc.)
  • image2size - The size of the image in pixels (as in imagesize=200|), default value is 200; to use the image's actual size, specify imagesize as a blank value (as in imagesize=|). Setting image size above 300px are not recommended.
  • caption2 - The image caption that will be displayed. If the image2 option is not used, this caption will not be displayed.
The following options may be ommitted and the field will not be displayed unless otherwise noted.
  • designer - The name of the locomotive's designer
  • serialnumber - The locomotive's serial number
  • buildmodel - The builder's model number
  • service - Type of service (e.g. "switcher/shunter", "road switcher", "passenger", "general purpose", "special duty", etc.)
  • builddate - The date(s) that the locomotive (or locomotive model) was built
  • totalproduction - The total number of locomotives of the given class that were built
  • whytetype - The wheel arrangement in Whyte notation (Steam locomotive)
  • uicclass - The UIC classification (European wheel arrangement)
  • gauge - The rail gauges on which the locomotive operated. Note: If no value is given standard gauge, 4 ft 8½ in (1,435 mm) is assumed.
  • trucks - The type of trucks (U.S.)
  • bogies - The type of bogies
  • leadingsize - The size of the locomotive's leading wheels (Usually on steam only)
  • driversize - The size of the locomotive's driving wheels (Usually on steam only)
  • wheeldiameter - The diameter of the locomotive's wheels
  • trailingsize - The size of the locomotive's trailing wheels (Usually on steam only)
  • wheelbase - The locomotive's wheelbase
  • length - The locomotive's total length
  • width - The locomotive's total width
  • height - The locomotive's total height
  • framesize - The size of the locomotive frame
  • axleload - max. axle load
  • weightondrivers - The weight on the driven wheels only. (Usually on steam only)
  • weight - The locomotive's total weight
  • locotenderweight - The combined locomotive and tender total weight (Usually on steam only)
  • fueltype - The type of fuel that the locomotive consumes
  • fuelcap - The locomotive's full fuel capacity
  • watercap - The tender's full water capacity (Usually on steam only)
  • tendercap - The tender's full fuel and water capacity (Usually on steam only)
  • consumption - The locomotive's average fuel consumption rate
  • watercons - The locomotive's average water consumption rate (Usually on steam only)
  • electricsystem - The electric system(s) under which the locomotive operates
  • collectionmethod - The locomotive's (electrical) current collection method (i.e. pantograph, third rail, etc.)
  • primemover - The locomotive's prime mover model
  • enginetype - The specific engine type
  • aspiration - The method that the engine uses to mix fuel and air
  • displacement - The engine displacement
  • alternator - The locomotive's alternator type/model
  • generator - The locomotive's generator type/model
  • tractionmotors - The type/model of traction motors
  • boiler - The locomotive's boiler size (Usually on steam only)
  • boilerpressure - The total boiler pressure rating (Usually on steam only)
  • feedwaterheater - Type of feedwater heater installed (Usually on steam only)
  • firearea - The area of the locomotive's fire grate (Usually on steam only)
  • tubearea - Heating surface - tubes (Usually on steam only)
  • fluearea - Heating surface - flues (Usually on steam only)
  • tubesandflues - Heating surface - tubes and flues (if not broken out in published specs) (Usually on steam only)
  • fireboxarea - Heating surface - firebox (Usually on steam only)
  • totalsurface - Heating surface - total (Usually on steam only)
  • superheatertype - Superheater type (Usually on steam only)
  • superheaterarea - Superheater area (Usually on steam only)
  • cylindercount - The number of cylinders
  • cylindersize - The size of the engine's cylinders
  • frontcylindersize - Size of the front cylinders in an articulated locomotive, if they differ (Usually on steam only)
  • rearcylindersize - Size of the rear cylinders (Usually on steam only)
  • hpcylindersize - Size of the high-pressure cylinders in a compound (explain arrangement in cylindercount) (Usually on steam only)
  • lpcylindersize - Size of the low-pressure cylinders in a compound (Usually on steam only)
  • valvegear - Type of valve-gear used on a steam locomotive (Usually on steam only)
  • transmission - The type of transmission used
  • topspeed - The locomotive's top speed
  • poweroutput - The locomotive's total power output
  • tractiveeffort - The locomotive's total tractive effort
  • factorofadhesion - Factor of adhesion (weight on drivers divided by tractive effort)
  • locobrakes - The type of locomotive brakes installed, Note: if no value is given by default this value is "Straight air".
  • trainbrakes - The type of train brake system installed. Note: if no value is given, by default this value is "26-L air", the most common braking system.
  • safety - The safety systems installed (auto train stop, cab signalling, etc)
  • railroad - The railroad(s) where the locomotive operated (for articles about individual locomotives and not generic locomotive models); creates a colored heading line like the powertype parameter
  • railroadclass - The class designation assigned by the operating railroad
  • numinclass - The number of locomotives in the same railroad class
  • roadnumber - The operating number(s) assigned by the railroad
  • officialname - The official name(s) assigned by the railroad, and who or what the locomotive is named after
  • nicknames - Nicknames given to the locomotive
  • locale - The locale where the locomotive was operated
  • deliverydate - The date that the locomotive was delivered
  • firstrundate - The date of the locomotive's first run
  • lastrundate - The date of the locomotive's last regular operation
  • retiredate - The date the locomotive was retired from regular service
  • restoredate - The date the locomotive was restored to operating condition
  • scrapdate - The date the locomotive was scrapped
  • currentowner - The locomotive's current owner
  • disposition - The locomotive's current disposition