This is a template for generating a bus route table, for use in a station article.

Usage

edit

This is the basic syntax you need to get a complete intersection table. Just copy and paste the code below:

{{Bus route table|top}}
{{Bus route table
|stop=
|route=
|dest=
|notes=}}
{{Bus route table|bottom}}

...and fill in the variables! For more entries, use this:

{{Bus route table
|stop=
|route=
|dest=
|notes=}}

(add above the line {{Bus route table|bottom}})

Parameters

edit

Top row (headings)

edit
  • 1= (or first positional parameter): top (required to generate the headings)
  • caption= a caption to display above the table. Optional – may be omitted if directly below a ==Heading== (or ===Sub-heading=== etc.) that serves as a caption.
  • calign= alignment of the caption. Optional – default if not specified is left, other options are center or right

Regular rows

edit
  • stop= name of stop; may include an id code
  • sspan= number of rows the stop cell spans – if value=1, omit this parameter. If used, stop= should be omitted from the other rows it spans.
  • route= route number
  • dest= destination(s) / brief description of route
  • notes= Any notes – e.g. high frequency, limited stops, etc.
  • nspan= number of rows the notes cell spans – if value=1, omit this parameter. If used, set notes=none for the other rows it spans.

End of table

edit
  • 1= (or first positional parameter): bottom (required to close the table)
  • key= A key or legend can be specified here. Optional – may be used if symbols, abbreviations, colours, or other ambiguous markings are used in the table; or to otherwise specify content for the footer of the table, such as sources.

Example

edit

Note that shortcut {{brt}} can be used instead of {{Bus route table}}.

{{Bus route table|top|caption=Platform A services}}
{{Bus route table
|stop=[12223] Stand A2
|sspan=2
|route=41
|dest=to [[Bayswater, Western Australia|Bayswater]] via Lord Street, Eight Avenue, [[Maylands, Western Australia|Maylands]], Caledonian Street, Stone Street & Frington Street<ref>[http://www.transperth.wa.gov.au/timetables/details?Bus=41 Route 41 timetable] Transperth</ref>
|notes=}}
{{Bus route table
|route=42
|dest=to Maylands via Lord Street & Peninsula Road<ref>[http://www.transperth.wa.gov.au/timetables/details?Bus=42 Route 42 timetable] Transperth</ref>
|notes=}}
{{Bus route table
|stop=[12223] Stand A3
|sspan=2
|route=16
|dest=to [[Dianella, Western Australia|Dianella]] via [[William Street, Perth|William Street]], North Street, Wood Street, Crawford Road, Browning Street & [[Alexander Drive]]<ref>[http://www.transperth.wa.gov.au/timetables/details?Bus=16 Route 16 timetable] Transperth</ref>
}}
{{Bus route table
|route=60
|dest=to [[Morley bus station]] via William Street, North Street, Dundas Road & Walter Road West<ref>[http://www.transperth.wa.gov.au/timetables/details?Bus=60 Route 60 timetable] Transperth</ref>
|notes=}}
{{brt
|stop=[12228] Stand A7
|route=950
|dest=to [[Morley bus station]] via [[Beaufort Street]]<ref name=Route950>[http://www.transperth.wa.gov.au/timetables/details?Bus=950 Route 950 timetable] Transperth</ref>
|notes=High frequency service}}
{{Bus route table|bottom|key=A key or legend could go here}}
Platform A services
Stop Route Destination / description Notes
[12223] Stand A2 41 to Bayswater via Lord Street, Eight Avenue, Maylands, Caledonian Street, Stone Street & Frington Street[1]
42 to Maylands via Lord Street & Peninsula Road[2]
[12223] Stand A3 16 to Dianella via William Street, North Street, Wood Street, Crawford Road, Browning Street & Alexander Drive[3]
60 to Morley bus station via William Street, North Street, Dundas Road & Walter Road West[4]
[12228] Stand A7 950 to Morley bus station via Beaufort Street[5]High frequency service
A key or legend could go here

References

  1. ^ Route 41 timetable Transperth
  2. ^ Route 42 timetable Transperth
  3. ^ Route 16 timetable Transperth
  4. ^ Route 60 timetable Transperth
  5. ^ Route 950 timetable Transperth

See also

edit
TemplateData

A template for generating a bus route table, for use in a station articles.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
table row type1

use "top" to generate a headings row, "bottom" to close the table, or omit this parameter for regular table rows

Stringsuggested
stop namestop

name of stop; may include an id code

Unknownsuggested
rows stop cell spanssspan

number of rows the stop cell spans – if value=1, omit this parameter. If used, 'stop name' should be omitted from the other rows it spans.

Numbersuggested
route numberroute

route number of bus service

Unknownsuggested
destinationsdest

destination(s) / brief description of route

Unknownsuggested
notesnotes

Any notes – e.g. high frequency, limited stops, etc.

Unknownsuggested
rows notes cell spansnspan

number of rows the notes cell spans – if value=1, omit this parameter. If used, set 'notes' to "none" for the other rows it spans.

Numberoptional
captioncaption

A caption for the table; REQUIRES 'table row type' to be set to "top"

Unknownoptional
caption alignmentcalign

Alignment for the caption; default if not specified is "left", other options are "center" or "right"; REQUIRES 'table row type' to be set to "top" and 'caption' to be defined

Unknownoptional
keykey

key/legend/other content to display at bottom of table; REQUIRES 'table row type' to be set to "bottom"

Unknownoptional