Template:Bus route table/doc

From English Wikipedia @ Freddythechick

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

Usage

This is the basic syntax you need to get a complete intersection table. Just copy and paste the code below: <syntaxhighlight lang="wikitext">

Stop Route Destination / description Notes

</syntaxhighlight> ...and fill in the variables! For more entries, use this: <syntaxhighlight lang="wikitext">

</syntaxhighlight> (add above the line {{Bus route table|bottom}})

Parameters

Top row (headings)

  • 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

  • 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

  • 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

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

<syntaxhighlight lang="wikitext">

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

</syntaxhighlight>

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[6]
42 to Maylands via Lord Street & Peninsula Road[7]
[12223] Stand A3 16 to Dianella via William Street, North Street, Wood Street, Crawford Road, Browning Street & Alexander Drive[8]
60 to Morley bus station via William Street, North Street, Dundas Road & Walter Road West[9]
[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. ^ 5.0 5.1 Route 950 timetable Transperth
  6. ^ Route 41 timetable Transperth
  7. ^ Route 42 timetable Transperth
  8. ^ Route 16 timetable Transperth
  9. ^ Route 60 timetable Transperth

See also

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