Jump to content
Toggle sidebar
Rail Roster Database
Search
Create account
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Talk
Contributions
Navigation
Main page
Recent changes
Locomotives
Locomotive Types
Steam Locomotives
Diesel Locomotives
Electric Locomotives
Cab Car
Other Locomotives
Browse by
Road Names
Wheel Arrangements
Catalog Years
Custom Run
Scale
Non-Scale
Product Lines
VisionLine
Legacy
LionMaster
LionChief+ 2.0
LionChief+
LionChief
TMCC
Conventional
About
Lionel LLC
Tools
What links here
Related changes
Special pages
Page information
Editing
Template:LocoTypeInfobox
Template
Discussion
English
Read
Edit source
View history
More
Read
Edit source
View history
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<noinclude> == Template:LocoTypeInfobox == Infobox for Loco Type category pages. A single template handles both steam and non-steam variants β the <code>loco_category</code> parameter drives the color scheme and controls whether the Wheel Arrangement field renders as a navigational link (steam) or plain descriptive text (non-steam). Requires: ParserFunctions extension (ships with MediaWiki 1.39, enabled by default). Does NOT require the Variables extension. === Usage === <pre> {{LocoTypeInfobox | loco_category = | wheel_arr = | proto_manufacturer = | era = }} </pre> === Parameters === {| class="wikitable" ! Parameter !! Description !! Values !! If Empty |- | <code>loco_category</code> || Drives color scheme and steam/non-steam behavior. Linked to Loco Category page (displayed as "[Value] Locomotives"). || Steam / Diesel / Electric / Other || β |- | <code>wheel_arr</code> || Steam: linked to Wheel Arrangement category page. Non-steam: plain descriptive text, no link. || e.g. 4-6-2, B-B || β |- | <code>proto_manufacturer</code> || Prototype builder. Non-steam: linked to Proto Mfg category page. Steam: plain text, informational only β no category tag. || e.g. EMD, GE, Baldwin || β |- | <code>era</code> || Years the prototype was in active production or primary service. Drawn from the Prototype Era column of the Loco Types sheet. || e.g. 1945β1949, 1918β1960s || β |} === Parameter Values === The <code>loco_category</code> parameter uses the SHORT form (no "Locomotives" suffix). The template constructs the full category page name and display text internally. {| class="wikitable" ! Spreadsheet value !! Category page linked !! Display text |- | <code>Steam</code> || [[:Category:Steam Locomotives]] || Steam Locomotives |- | <code>Diesel</code> || [[:Category:Diesel Locomotives]] || Diesel Locomotives |- | <code>Electric</code> || [[:Category:Electric Locomotives]] || Electric Locomotives |- | <code>Other</code> || [[:Category:Other Locomotives]] || Other Locomotives |} === Steam vs Non-Steam Behavior === {| class="wikitable" ! Field !! Non-Steam (Diesel / Electric / Other) !! Steam |- | Wheel Arr. || Plain text β no link || Linked to Wheel Arrangement category page |- | Proto. Manufacturer || Linked to [[:Category:[Name] Locomotives]] || Plain text β informational only, no category tag |- | Color scheme || Gray / Amber / Navy (by loco_category) || Burgundy |} === Color Reference === Colors are applied automatically via the short-form loco_category value. Do not set manually. {| class="wikitable" ! loco_category value !! Header (dark) !! Alt rows (light) |- | Steam || #6B1E2A || #F5E6E8 |- | Diesel || #4A4A4A || #F0F0F0 |- | Electric || #8B6914 || #FDF6D8 |- | Other / default || #1E2B7A || #D0D5F0 |} </noinclude><includeonly><div class="railrosterdb-infobox loco-type-infobox" style="float:right; clear:right; margin:0 0 1em 1em; width:280px; border:1px solid #aaa; background:#fff; font-size:0.9em; line-height:1.5;"> <!-- INFOBOX TITLE --> <div style="background:{{#switch:{{{loco_category|}}}|Steam=#6B1E2A|Diesel=#4A4A4A|Electric=#8B6914|#default=#1E2B7A}}; color:#ffffff; font-weight:bold; padding:5px 8px; text-align:center;">{{PAGENAME}}</div> <!-- FIELDS --> <table style="width:100%; border-collapse:collapse;"> <tr style="background:{{#switch:{{{loco_category|}}}|Steam=#F5E6E8|Diesel=#F0F0F0|Electric=#FDF6D8|#default=#D0D5F0}};"> <th style="padding:3px 6px; text-align:left; font-weight:bold; width:45%;">Loco Category</th> <td style="padding:3px 6px;">{{#if:{{{loco_category|}}}|{{#switch:{{{loco_category|}}}|Cab Car=[[Cab Car|Cab Car]]|[[{{{loco_category}}} Locomotives|{{{loco_category}}} Locomotives]]}}|β}}</td> </tr> <tr> <th style="padding:3px 6px; text-align:left; font-weight:bold;">Wheel Arr.</th> <td style="padding:3px 6px;">{{#if:{{{wheel_arr|}}}|{{#switch:{{{loco_category|}}}| Steam = [[{{{wheel_arr}}}|{{{wheel_arr}}}]]| {{{wheel_arr}}}}}|β}}</td> </tr> <tr style="background:{{#switch:{{{loco_category|}}}|Steam=#F5E6E8|Diesel=#F0F0F0|Electric=#FDF6D8|#default=#D0D5F0}};"> <th style="padding:3px 6px; text-align:left; font-weight:bold;">Proto. Manufacturer</th> <td style="padding:3px 6px;">{{#if:{{{proto_manufacturer|}}}|{{#switch:{{{loco_category|}}}| Steam = {{{proto_manufacturer}}}| [[{{{proto_manufacturer}}}|{{{proto_manufacturer}}}]]}}|β}}</td> </tr> <tr> <th style="padding:3px 6px; text-align:left; font-weight:bold;">Era</th> <td style="padding:3px 6px;">{{#if:{{{era|}}}|{{{era}}}|β}}</td> </tr> </table> </div></includeonly>
Summary:
Please note that all contributions to Rail Roster Database may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Rail Roster DB:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)