Difference between revisions of "Template:Bus route table/doc"
Jump to navigation
Jump to search
imported>Evad37 (make a start) |
imported>Evad37 (add) |
||
| Line 22: | Line 22: | ||
|notes=}} | |notes=}} | ||
</pre> | </pre> | ||
| − | (add above the line <code><nowiki>{{Bus route table|bottom}}</nowiki></code>) | + | (add above the line <code><nowiki>{{Bus route table|bottom}}</nowiki></code>) |
| + | ==Parameters== | ||
| + | ===Top row (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. | ||
| + | |||
| + | ===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): <code>bottom</code> (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 otherwise specify content for the footer of the table, such as sources. | ||
| + | |||
| + | ==Examples== | ||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
}}</includeonly> | }}</includeonly> | ||
Revision as of 14:24, 3 February 2016
| 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.
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.
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 otherwise specify content for the footer of the table, such as sources.