Template:Rail color box/doc

Usage
This template is intended to be used within station and line infoboxes to show a small color box and a link to the associated line or service name.

For systems where multiple colors are used to designate different lines, the appropriate color will be selected based on the combination of the system and line parameters.

The template can be abbreviated as rcb where the explicit parameter names system, line, and inline can be omitted.

Examples
and  produce

and  produce

The inline parameter yes allows rail color box output to appear inline with text. Both  and   produce. The other two options are

System abbreviations
A full list of the available systems is at Category:Rail transport color templates.