Jump to content

Template:Rail color

From Elite Dangerous Wiki
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit "Template:Rail color/doc" to edit its documentation if it is available. (How does this work?)

Template:Rail color returns an RGB hex code value from a subpage of Module:Adjacent stations or from a helper template of {{S-line}}.

Usage

Module:Adjacent stations/system or Template:system color must exist for this template to work.

Variables

  • system is the name of the system or an abbreviation.
  • line is the line name, if any.
  • branch is the name of the branch or service, if any.

Examples

{{Rail color|Amtrak}} → 00537E

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Rail color in articles based on its TemplateData.

TemplateData for Rail color

Returns the RGB hex code of the color of a rail system, line, or branch, without the # sign.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
System1

The name or the abbreviation of the system. Module:Adjacent stations/System or must exist.

Example
Amtrak
Stringrequired
Line2

The nm has lines.

Example
Red
Stringsuggested
Branch3

The name of the branch or the service, if the line has branches or services.

Example
Mattapan
Stringoptional