Template:SMRT code
This template is used to generate the formatted code for stations on the Mass Rapid Transit of Singapore.
To call the code of a station, use {{SMRT code|line prefix|station number(|line prefix 2|station number 2|...)}}. Examples are provided in the table below.
For indirect interchanges (e.g. Tampines MRT station; EW2 – DT32 ), do not call this template alone. Instead, use the format
{{SMRT code|(single-line parameters)}}–{{SMRT code|(single-line parameters)}}.
| Type | Code | Result |
|---|---|---|
| Station (1 line) | {{SMRT code|EW|3}} |
EW3 (Simei MRT station) |
| Station (1 line) | {{SMRT code|PW|2}} |
PW2 (Teck Lee LRT station) |
| Interchange (2 lines) | {{SMRT code|DT|6|CR|15}} |
DT6 CR15 (King Albert Park MRT station) |
| Interchange (2 lines) (Special situation: the second station code is intentionally left absent) |
{{SMRT code|NE|16|STC}} |
NE16 STC (Sengkang MRT/LRT station) |
| Interchange (3 lines) | {{SMRT code|NS|4|JS|1|BP|1}} |
NS4 JS1 BP1 (Choa Chu Kang MRT/LRT station) |
| Interchange (3 lines) | {{SMRT code|NS|27|CC|33|TE|20}} |
NS27 CC33 TE20 (Marina Bay MRT station) |
TemplateData
TemplateData for SMRT code
This template is used to generate the formatted code for stations on the Mass Rapid Transit of Singapore.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| First/only line | 1 | Line code of the first/only line your station is on | String | required |
| Station code on first/only line | 2 | Numerical code of the station on its first/only line | Number | required |
| First/only A | A1 | Either "yes", "y", "true", "on" or "1" (case-insensitive) will add a capital A to the end of the station number for the first/only line. For example, Brickland station is represented by the station number NS3A.
| Boolean | optional |
| Second line | 3 | Line code of second line the station is on | String | optional |
| Station code on second line | 4 | Numerical code of the station on its second line | Number | optional |
| Second A | A2 | Either "yes", "y", "true", "on" or "1" (case-insensitive) will add a capital A to the end of the station number for the second line.
| Unknown | optional |
| Third line | 5 | Line code of third line the station is on | String | optional |
| Station code on third line | 6 | Numerical code of the station on its third line | Number | optional |
| Third A | A3 | Either "yes", "y", "true", "on" or "1" (case-insensitive) will add a capital A to the end of the station number for the third line.
| Unknown | optional |
| Fourth line | 7 | Line code of fourth line the station is on | String | optional |
| Station code on fourth line | 8 | Numerical code of the station on its fourth line | Number | optional |
| Fourth A | A4 | Either "yes", "y", "true", "on" or "1" (case-insensitive) will add a capital A to the end of the station number for the fourth line.
| Unknown | optional |