Difference between revisions of "Template:FCC color"

From blackwiki
Jump to navigation Jump to search
imported>Oahiyeel
(Created page with '{{#switch:{{{1}}} | Bedford=120A8F | Peterborough=F400A1 | ECML=990066 | King's Lynn=FBAED2 | Luton=1E90FF | #default=F400A1 }}')
 
imported>Useddenim
(added abbreviations; removed case sensitivity)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{#switch:{{{1}}}
+
{{#switch:{{lc:{{{1}}}}}
  | Bedford=120A8F
+
  | bedford | b = f400a1
  | Peterborough=F400A1
+
  | ecml | east | e = f400a1
  | ECML=990066
+
  | king's lynn | kings lynn | kl | k = f400a1
  | King's Lynn=FBAED2
+
  | luton | l = f400a1
  | Luton=1E90FF
+
  | peterborough | p = f400a1
  | #default=F400A1
+
  | #default=f400a1
}}
+
}}<noinclude>
 +
{{documentation}}</noinclude>

Latest revision as of 01:22, 3 December 2014

f400a1

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

This template is used to call the colour of First Capital Connect routes.

Usage

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

{{FCC color|Bedford}} or …|B}} Sample:   f400a1
{{FCC color|ECML}} or …|East}} or …|E}} Sample:   f400a1
{{FCC color|King's Lynn}} or …|KL}} or …|K}} Sample:   f400a1
{{FCC color|Luton}} or …|L}} Sample:   f400a1
{{FCC color|Peterborough}} or …|P}} Sample:   f400a1
{{FCC color|#default}} Sample:   f400a1
  • When adding a new colour to the template, be sure to add a corresponding row to the sample box above.
  • After saving an amendment, Script error: No such module "Purge". to refresh the colour samples.