This template can be used to get the formatted code for the Light Rapid Transit (Singapore) lines.

In order to call a line's color, the code #{{SLRT code|line}} is used (where line is replaced by the actual route name or abbreviation).

Code Result
{{SLRT code|SE|1}}  SE1 
{{SLRT code|SW|2}}  SW2 
{{SLRT code|PE|3}}  PE3 
{{SLRT code|PW|1}}  PW4 
{{SLRT code|STC|1}}  STC1 
{{SLRT code|PTC|1}}  PTC1