User:Dp67/Templates/Testexamples
Appearance
EMD GP30 | |
---|---|
km/h) | |
Power output | 2,250 hp (1,680 kW) |
Tractive effort | 63,375 lbf (282 kN) |
Career | |
---|---|
Locale | North 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 name | Stevens (after C&A president Robert L. Stevens) |
Delivered | September 4 1831 |
First run | September 15 1831 |
Retired | 1866 |
Restored | September 15 1981 |
Current owner | Smithsonian Institution |
Disposition | Static 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 = }}