Template:RoadNameInfobox

A searchable database of Lionel O Gauge locomotives

Template:RoadNameInfobox[edit source]

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 road_name parameter. If the logo file does not exist, the road name is displayed as a text label instead.

The successor 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 + $wgPFEnableStringFunctions = true (for #replace to construct logo filename from road_name).

Usage[edit source]

{{RoadNameInfobox
| road_name         = 
| country           = 
| region            = 
| operational_dates = 
| rr_class          = 
| reporting_marks   = 
}}

Parameters[edit source]

Parameter Description If Empty
road_name Full road name. Used to construct the logo filename automatically. (no logo or label shown)
country Country of operation e.g. United States
region Geographic area served e.g. Northeast and Midwest
operational_dates Founded → abandoned or merged e.g. 1846–1968
rr_class Class I, Class II, or Class III
reporting_marks Official reporting mark abbreviation e.g. PRR

Notes[edit source]

  • Logo filename is constructed automatically as File:Logo-[Road-Name].svg
 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[edit source]

Navy throughout — no switching needed.

Element Hex
Header / sub-headers #1E2B7A
Alternating rows #D0D5F0