Template:Cite PTV route/doc
Appearance
This is a documentation subpage for Template:Cite PTV route. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
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
[edit]<ref>{{cite PTV route|<route number>|mode=<mode of transportation>|access-date=<date you checked the link>}}</ref>
Parameters
[edit]- 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
[edit]Code | Result |
---|---|
<ref>{{cite PTV route|735|access-date=9 March 2019}}</ref>
|
[1] |
<ref>{{cite PTV route|5|mode=tram|access-date=9 March 2019}}</ref>
|
[2] |
References
[edit]- ^ "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
[edit]To edit the route data, please go to Module:PTV route/data.
Tracking categories
[edit]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.)