Template:Cite PTV Route
This template produces citations for routes run by Public Transport Victoria.
If you just need a link to a route page on PTV's website, and not a full citation, you can use {{PTV route}}.
Usage
<ref>{{cite PTV route|<route number>|mode=<mode of transportation>|access-date=<date you checked the link>}}</ref>
Parameters
- route - the route number of the route you wish to link to. This parameter is required, but you can use the first positional parameter instead;
{{cite PTV route|123}}
has the same result as{{cite PTV route|route=123}}
. - mode - the mode of transport for the route you wish to link to. Use
bus
to link to a bus route,tram
to link to a tram route ortrain
to link to a Metro train route. This parameter is optional, and if no value is supplied the template will attempt to link to a bus route by default. - access-date, archive-url, archive-date, dead-url - these are passed through to {{cite web}}. See Template:Cite web#URL for details of how to use them. You can also use the aliases accessdate, archiveurl, archivedate, and deadurl.
Examples
Code | Result |
---|---|
<ref>{{cite PTV route|735|access-date=9 March 2019}}</ref>
|
|
<ref>{{cite PTV route|5|mode=tram|access-date=9 March 2019}}</ref>
|
References
- ^ "735 Box Hill to Nunawading". Public Transport Victoria. Retrieved 9 March 2019.
- ^ "5 Melbourne University - Malvern". Public Transport Victoria. Retrieved 9 March 2019.
Updating routes
To edit the route data, please go to Module:PTV route/data.
Tracking categories
This template uses the following tracking categories:
- Category:PTV route templates with invalid routes - for transclusions that specify a combination of
|route=
and|mode=
that does not exist in Module:PTV route/data. - Category:PTV route templates with deprecated parameters - for transclusions using deprecated parameters. (However, as of March 2019, only {{PTV route}} has deprecated parameters.)