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:RoadNameInfobox
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:RoadNameInfobox == Infobox for Road Name category pages. Navy color scheme throughout β no color switching needed since all road name pages use navy. The road name logo is integrated into the infobox header. The template automatically constructs the filename from the <code>road_name</code> parameter. If the logo file does not exist, the road name is displayed as a text label instead. The <code>successor</code> field has been removed from the infobox. Predecessor/successor relationships are now displayed exclusively in the See Also section of the page as a visual railroad chain diagram. Requires: ParserFunctions extension + <code>$wgPFEnableStringFunctions = true</code> (for <code>#replace</code> to construct logo filename from road_name). === Usage === <pre> {{RoadNameInfobox | road_name = | country = | region = | operational_dates = | rr_class = | reporting_marks = }} </pre> === Parameters === {| class="wikitable" ! Parameter !! Description !! If Empty |- | <code>road_name</code> || Full road name. Used to construct the logo filename automatically. || (no logo or label shown) |- | <code>country</code> || Country of operation e.g. United States || β |- | <code>region</code> || Geographic area served e.g. Northeast and Midwest || β |- | <code>operational_dates</code> || Founded β abandoned or merged e.g. 1846β1968 || β |- | <code>rr_class</code> || Class I, Class II, or Class III || β |- | <code>reporting_marks</code> || Official reporting mark abbreviation e.g. PRR || β |} === Notes === * Logo filename is constructed automatically as <code>File:Logo-[Road-Name].svg</code> with spaces replaced by hyphens. No logo parameter is needed. * When no logo file exists, a styled placeholder is shown inside the infobox header β a dashed-border box containing the road name in bold and an "add one" prompt linking to the contributing guide. This placeholder is self-contained within this template. * The successor field has been removed. Predecessor and successor relationships are handled entirely by the visual railroad chain in the See Also section, driven by the predecessor and successor parameters of the page scaffold template. * All empty fields display β. === Color Reference === Navy throughout β no switching needed. {| class="wikitable" ! Element !! Hex |- | Header / sub-headers || #1E2B7A |- | Alternating rows || #D0D5F0 |} </noinclude><includeonly><div class="railrosterdb-infobox road-name-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;"> <!-- SINGLE TABLE β logo, title, and fields all inside one table for consistent full width --> <table style="width:100%; border-collapse:collapse;"> <!-- ROAD NAME LOGO / PLACEHOLDER --> <tr><td colspan="2" style="background:#1E2B7A; padding:8px; text-align:center; border-bottom:1px solid rgba(255,255,255,0.2);">{{#ifexist:File:Logo-{{{road_name_slug|}}}.png | [[File:Logo-{{{road_name_slug|}}}.png|260px|center|{{{road_name|}}} logo]] | <div style="border:1px dashed rgba(255,255,255,0.4); border-radius:3px; padding:10px 8px;"> <div style="color:#ffffff; font-weight:bold; font-size:1.05em; margin-bottom:4px;">{{{road_name|}}}</div> <div style="color:rgba(255,255,255,0.5); font-size:0.8em; font-style:italic;">[{{fullurl:Special:Upload|wpDestFile=Logo-{{{road_name_slug|}}}.png}} Upload a logo]</div> </div> }}</td></tr> <!-- INFOBOX TITLE --> <tr><td colspan="2" style="background:#1E2B7A; color:#ffffff; font-weight:bold; padding:5px 8px; text-align:center; border-top:1px solid rgba(255,255,255,0.2);">{{PAGENAME}}</td></tr> <!-- FIELDS --> <tr style="background:#D0D5F0;"> <th style="padding:3px 6px; text-align:left; font-weight:bold; width:45%;">Country</th> <td style="padding:3px 6px;">{{#if:{{{country|}}}|{{{country}}}|β}}</td> </tr> <tr> <th style="padding:3px 6px; text-align:left; font-weight:bold;">Region / Territory</th> <td style="padding:3px 6px;">{{#if:{{{region|}}}|{{{region}}}|β}}</td> </tr> <tr style="background:#D0D5F0;"> <th style="padding:3px 6px; text-align:left; font-weight:bold;">Operational Dates</th> <td style="padding:3px 6px;">{{#if:{{{operational_dates|}}}|{{{operational_dates}}}|β}}</td> </tr> <tr> <th style="padding:3px 6px; text-align:left; font-weight:bold;">Railroad Class</th> <td style="padding:3px 6px;">{{#if:{{{rr_class|}}}|{{{rr_class}}}|β}}</td> </tr> <tr style="background:#D0D5F0;"> <th style="padding:3px 6px; text-align:left; font-weight:bold;">Reporting Marks</th> <td style="padding:3px 6px;">{{#if:{{{reporting_marks|}}}|{{{reporting_marks}}}|β}}</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)