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 optional 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. {	"params": { "inline": { "type": "string" },		"system": { "type": "string" },		"line": { "type": "string" },		"branch": { "type": "string" },		"note": { "type": "string" }	},	"description": "Template which generates colored boxes to indicate rail lines, optionally with a link to the line's article.", "paramOrder": [ "system", "line", "inline", "branch", "note" ],	"format": "inline" }