Difference between revisions of "Template:Bus route table/doc"
imported>Evad37 (→Example: add example) |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| (6 intermediate revisions by one other user not shown) | |||
| Line 29: | Line 29: | ||
*'''1=''' (or first positional parameter): <code>top</code> (required to generate the headings) | *'''1=''' (or first positional parameter): <code>top</code> (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. | *'''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 <code>left</code>, other options are <code>center</code> or <code>right</code> | ||
===Regular rows=== | ===Regular rows=== | ||
| Line 43: | Line 44: | ||
==Example== | ==Example== | ||
| − | Note that shortcut {{ | + | Note that shortcut {{tlc|brt}} can be used instead of {{tlc|Bus route table}}. |
<pre>{{Bus route table|top|caption=Platform A services}} | <pre>{{Bus route table|top|caption=Platform A services}} | ||
{{Bus route table | {{Bus route table | ||
| Line 101: | Line 102: | ||
{{reflist-talk}} | {{reflist-talk}} | ||
| − | < | + | ==See also== |
| + | *{{tl|Train station table}} | ||
| + | |||
| + | {{cot|TemplateData}} | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "label": "table row type", | ||
| + | "description": "use \"top\" to generate a headings row, \"bottom\" to close the table, or omit this parameter for regular table rows", | ||
| + | "type": "string", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "caption": { | ||
| + | "label": "caption", | ||
| + | "description": "A caption for the table; REQUIRES 'table row type' to be set to \"top\"" | ||
| + | }, | ||
| + | "calign": { | ||
| + | "label": "caption alignment", | ||
| + | "description": "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" | ||
| + | }, | ||
| + | "key": { | ||
| + | "label": "key", | ||
| + | "description": "key/legend/other content to display at bottom of table; REQUIRES 'table row type' to be set to \"bottom\"" | ||
| + | }, | ||
| + | "stop": { | ||
| + | "label": "stop name", | ||
| + | "description": "name of stop; may include an id code", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "sspan": { | ||
| + | "label": "rows stop cell spans", | ||
| + | "description": "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.", | ||
| + | "type": "number", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "route": { | ||
| + | "label": "route number", | ||
| + | "description": "route number of bus service", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "dest": { | ||
| + | "label": "destinations", | ||
| + | "description": "destination(s) / brief description of route", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "notes": { | ||
| + | "label": "notes", | ||
| + | "description": "Any notes – e.g. high frequency, limited stops, etc.", | ||
| + | "suggested": true | ||
| + | }, | ||
| + | "nspan": { | ||
| + | "label": "rows notes cell spans", | ||
| + | "description": "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.", | ||
| + | "type": "number" | ||
| + | } | ||
| + | }, | ||
| + | "description": "A template for generating a bus route table, for use in a station articles.", | ||
| + | "paramOrder": [ | ||
| + | "1", | ||
| + | "stop", | ||
| + | "sspan", | ||
| + | "route", | ||
| + | "dest", | ||
| + | "notes", | ||
| + | "nspan", | ||
| + | "caption", | ||
| + | "calign", | ||
| + | "key" | ||
| + | ], | ||
| + | "format": "block" | ||
| + | } | ||
| + | </templatedata> | ||
| + | {{cob}} | ||
| + | <includeonly>{{Sandbox other|| | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
| − | + | [[Category:Bus transport templates]] | |
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 00:38, 24 April 2020
| File:Edit-copy green.svg | This is a documentation subpage for Template:Bus route table. It contains usage information, categories and other content that is not part of the original template page. |
This is a template for generating a bus route table, for use in a station article.
Contents
Usage
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
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 arecenterorright
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}}.
{{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}}
| 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 | |||
See also
TemplateData
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
A template for generating a bus route table, for use in a station articles.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
- ↑ Route 41 timetable Transperth
- ↑ Route 42 timetable Transperth
- ↑ Route 16 timetable Transperth
- ↑ Route 60 timetable Transperth
- ↑ Route 950 timetable Transperth