Difference between revisions of "Template:CATS color"

From blackwiki
Jump to navigation Jump to search
imported>Scottalter
m (add category)
imported>Useddenim
m (added abbreviations)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#switch:{{{1}}}
+
{{#switch:{{lc:{{{1}}}}}
  | Blue=0000FF
+
| red | r = e41f3a
  | Green=339933 <!-- defunct Charlotte Trolley -->
+
  | blue | b = 0000ff
  | Gold=FECE0C
+
  | green | g = 339933 <!-- defunct Charlotte Trolley -->
  | Silver=B1B6BA
+
  | silver | s = b1b6ba
| Red=E41F3A
+
  | gold | d = fece0c
}}<noinclude>[[Category:Rail transport color templates]][[Category:Charlotte Area Transit System templates]]</noinclude>
+
}}<noinclude>
 +
{{documentation}}</noinclude>

Latest revision as of 18:07, 4 January 2017

Template documentation[view] [edit] [history] [purge]

This template can be used to call the color of Charlotte Area Transit System (CATS) and CityLynx lines.

In order to call a line's color, the code #{{CATS color|color}} is used (where color is replaced by the actual route color or abbreviation). Note that this template is not case sensitive: i.e. {{CATS color|Red}} produces the same result as {{CATS color|red}}.

{{CATS color|red}} or …|r}} Sample:   e41f3a
{{CATS color|blue}} or …|b}} Sample:   0000ff
{{CATS color|green}} or …|g}} Sample:   339933
{{CATS color|silver}} or …|s}} Sample:   b1b6ba
{{CATS color|gold}} or …|d}} Sample:   fece0c