Jump to content

Template:SGPint/doc

From Wikipedia, the free encyclopedia

This is a template for generating a junction list for Singapore expressways formatted as per MOS:RJL.

Usage

[edit]

The basic syntax to create a junction table is shown below:

{{SGPinttop}}
{{SGPint
|location=
|lspan=
|km=
|flyover=
|exit=
|road=
|notes=
}}
{{jctbtm|col=7|keys=incomplete,trans}}

For a real-world example, refer to Pan Island Expressway.

Parameters

[edit]

Table columns

[edit]

Refer to MOS:RJL#Standard columns for a more in-depth style guide on how the parameters should be specified.

  • Location: The location name of the specific flyover/exit.
    • |location= specifies the location name to be displayed. This should generally refer to a planning area.
    • |location_link= overrides the wikilinked article name. Use this if the article name is not the same as the display name. Defaults to |location=.
    • |location_special= overrides the wikicode that is generated. Defaults to a wikilink of the location name.
  • km/mi: The kilometre-post/mile marker of the exit.
    • |km= specifies the distance (in kilometres) of the exit from the start of the expressway. Will automatically convert to miles.
  • Flyover: The name of the flyover.
    • |flyover= specifies the name of the flyover/interchange that the exit is part of.
    • |fspan= specifies the row span for the Flyover cell.
  • Exit: The exit number.
    • |exit= specifies the exit number.
    • |espan= specifies the row span for the Exit cell.
  • Destinations: The list of destinations for the exit.
    • |road= specifies the list of destinations for this particular exit.
    • |rspan= specifies the row span for the Destinations cell.
  • Notes: Additional notes for the exit.
    • |notes= specifies the notes to add.
    • |nspan= specifies the row span for the Notes cell.
      • Important: Use notes=none if the previous row(s) specified nspan in order to prevent creating a new cell.

Appearance

[edit]
  • |type= specifies the junction type. Refer to MOS:RJL#Colors for the full list.
  • |jspan= specifies the default row span for the row (defaults to 1). Can be overridden by other *span parameters.
  • |rcspan= specifies the column span across the destination and notes columns (defaults to 1).

Examples

[edit]

Simple example

[edit]

Simple example that showcases the use of the most common parameters.

LocationkmmiFlyoverExitDestinationsNotes
Clementi27.317.0Clementi North27AYE
28.817.9Toh Tuck28Clementi Avenue 6No westbound exit
1.000 mi = 1.609 km; 1.000 km = 0.621 mi

Source code

{{SGPinttop}}
{{SGPint
|location=Clementi
|location_link=Clementi, Singapore
|lspan=2
|km=27.3
|flyover=Clementi North
|exit=27
|road=[[Ayer Rajah Expressway|AYE]]
}}
{{SGPint
|km=28.8
|flyover=Toh Tuck
|exit=28
|road=Clementi Avenue 6
|notes=No westbound exit
|type=incomplete
}}
{{jctbtm|col=7|keys=incomplete,trans}}

Example without flyover column

[edit]

Example that excludes the flyover column (use the |noflyover= parameter to indicate that the table should not include the column.

LocationkmmiExitDestinationsNotes
Clementi27.317.027AYE
1.000 mi = 1.609 km; 1.000 km = 0.621 mi

Source code

{{SGPinttop|noflyover=true}}
{{SGPint
|location=Clementi
|location_link=Clementi, Singapore
|km=27.3
|exit=27
|road=[[Ayer Rajah Expressway|AYE]]
}}
{{jctbtm|col=6|keys=incomplete,trans}}

See also

[edit]
  • {{SGPinttop}}: Generates the junction table header, should be used in conjunction with this template.