Template:Intsym
This template uses Lua: |
This is a template for generating a symbol indicating the direction of on- / off-ramps for a highway interchange. This template can be used on route junction lists, reducing clutter by replacing otherwise lengthy descriptions (e.g. "eastbound exit and westbound entrance only") in the case of incomplete interchanges.
The corresponding description will instead be used as alt text of the symbol image. It will show up as a tooltip when hovering over the symbol.
The design of the symbols are inspired by the icons used in the official interactive map of the Shuto Expressway.
Note: This template only supports left-hand traffic highways at the moment.
Usage
[edit]Incomplete interchange
[edit]For incomplete interchanges, specify the following parameters:
|dir=
- Describes the direction of the road junction list, from top to bottom.ns
- from north to southsn
- from south to northew
- from east to westwe
- from west to eastac
- circular route, clockwise directionca
- circular route, anticlockwise direction
|quads=
- Describes the on- / off-ramps of which the incomplete interchange is composed of. The ramps are referred to by their quadrant number.- A list of possible values are shown below. (dir1 and dir2 is determined by
|dir=
)
- A list of possible values are shown below. (dir1 and dir2 is determined by
|text=
- Additional text added next to the symbol. Typically describes the destinations of the interchange.- If not supplied, only the symbol will be displayed.
|noonly=
- If true, the word "only" is not appended to the end of the alt text.
Complete interchange
[edit]For complete interchanges (i.e. with exits and entrances on both directions), do not specify the |dir=
and |quads=
parameters.
Examples
[edit]Source | Output | ||
---|---|---|---|
{{Intsym}} |
|||
{{Intsym|text=[[Castle Peak Road]]}} |
| ||
{{Intsym|dir=ns|quads=1}} |
|||
{{Intsym|dir=ew|quads=4|noonly=true}} |
|||
{{Intsym|dir=ca|quads=234|text=[[Castle Peak Road]]}} |
| ||
{{Intsym|dir=we|quads=12|text={{Jct|country=HKG|Route|5|location1=[[Tsuen Wan]]}} |
|