User:Dp67/Templates/Testexamples

Source: Wikipedia, the free encyclopedia.
EMD GP30
km/h)
Power output2,250 hp (1,680 kW)
Tractive effort63,375 lbf (282 kN)
Career
LocaleNorth America

The two infoboxes shown to the right are examples of using this template for a generic locomotive model (the EMD GP30 example) and for a specific locomotive (the John Bull example). The necessary code for each locomotive example is displayed on the left.

Note: although I prefer to use the "| option = value" method, as opposed to the "option = value|" method both examples work fine on all examples of this template. However, if you choose to use the "| option = value" method, be sure to omit the | (pipe) at the end of the template name (e.g. "{{Infobox Locomotive Auto" and not "{{Infobox Locomotive Auto|" ), as the pipe will be placed on the newline instead..

Basic diesel-electric

{{Infobox Locomotive Auto
 | name =
 |  powertype = 
 | gauge =
 | image =
 | caption =
 | builder = (See notes)
 | builderother = (See notes)
 | aarwheels = (See notes)
 | cylindercount =
 | primemover =
 | builddate =
 | totalproduction =
 | locale =
 | poweroutput =
 | maxspeed =
 | weight =
 | tractiveeffort =
 | length =
 | enginetype =
 | aspiration =
 | cylindersize =
 | displacement =
 | transmission =
 | locobrakes =
 | trainbrakes =
 | buildmodel =
}}
John Bull
Camden and Amboy Railroad,
Pennsylvania Railroad (initial preservation)
Official nameStevens (after C&A president Robert L. Stevens)
DeliveredSeptember 4 1831
First runSeptember 15 1831
Retired1866
RestoredSeptember 15 1981
Current ownerSmithsonian Institution
DispositionStatic display in Washington, D.C.

Detailed steam

{{Infobox Locomotive Auto
|  name=
|  caption       =
|  image         =
|  powertype   =
|  gauge         =
|  builder        =
|  builderother = (See notes)
|  builddate    =
|  operator       =
|  whytetype    =
|  boiler           =
|  firegrate      =
|  cylindersize =
|  driversize     =
|  wheelbase   =
|  framesize     =
|  firstrundate   =
|  uicclass        =
|  deliverydate =
|  currentowne =
|  retiredate     =
|  restoredate  =
|  disposition   =
|  fleetnumber =
|  officialname =
}}