Difference between revisions of "Template:FCC color"

From blackwiki
Jump to navigation Jump to search
imported>Useddenim
({{1Color template documentation}})
imported>Useddenim
(added abbreviations; removed case sensitivity)
 
Line 1: Line 1:
{{#switch:{{{1}}}
+
{{#switch:{{lc:{{{1}}}}}
  | Bedford=F400A1
+
  | bedford | b = f400a1
  | Peterborough=F400A1
+
  | ecml | east | e = f400a1
  | ECML=F400A1
+
  | king's lynn | kings lynn | kl | k = f400a1
  | King's Lynn=F400A1
+
  | luton | l = f400a1
  | Luton=F400A1
+
  | peterborough | p = f400a1
  | #default=F400A1
+
  | #default=f400a1
 
}}<noinclude>
 
}}<noinclude>
{{1Color template documentation|First Capital Connect}}
+
{{documentation}}</noinclude>
 
 
[[Category:United Kingdom rail transport color templates|{{PAGENAME}}]]
 
[[Category:First Capital Connect templates|{{PAGENAME}}]]</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.