Template:Cite NYC bus: Difference between revisions
m →top: support hyphenated parameter names |
Use modern string functions |
||
Line 13: | Line 13: | ||
|q=http://web.mta.info/busco/schedules/q |
|q=http://web.mta.info/busco/schedules/q |
||
|b=http://web.mta.info/busco/schedules/b |
|b=http://web.mta.info/busco/schedules/b |
||
|bx=http://web.mta.info/busco/schedules/bx}}}}{{#ifeq:{{str letter/trim|{{lc:{{{1}}}}}}}|bxm|{{ |
|bx=http://web.mta.info/busco/schedules/bx}}}}{{#ifeq:{{str letter/trim|{{lc:{{{1}}}}}}}|bxm|{{#invoke:string|replace|{{{1}}}|^%a*||plain=0}}|{{padleft:{{#invoke:string|replace|{{{1}}}|^%a*||plain=0}}|3}}}}cur.pdf}}}|title={{{display|{{{1}}}}}} bus schedule|date={{{effective|{{{date|}}}}}}|author=MTA Regional Bus Operations|author-link=MTA Regional Bus Operations|access-date={{{access-date|{{{accessdate|}}}}}}}}</includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 20:51, 14 June 2021
This template produces citations for the schedules of NYC bus routes.
Standard usage
{{Cite NYC bus|<bus route>}}
For example, {{Cite NYC bus|B15}}
produces the following entry in the reference list:
MTA Regional Bus Operations. "B15 bus schedule" (PDF).
Multiple routes on one schedule
In this case, the display parameter should be used.
{{Cite NYC bus|<bus route in schedule filename>|display=<set of bus routes>}}
For example, {{Cite NYC bus|S40|display=S40/S90}}
produces the following entry in the reference list:
MTA Regional Bus Operations. [034cur.pdf "S40/S90 bus schedule"] (PDF). {{cite web}}
: Check |url=
value (help)
The MTA file name is s040cur.pdf, so we use M34, not M16 in the first parameter.
Non-standard URLs
For URLs that don't follow the standard naming scheme, the url parameter can be used. In this case, the display parameter must be included and the first parameter can be omitted.
All +Select Bus Service+ schedules must be cited using the url method, as well as QM16, QM18, and QM21.
Other information
If you wish, the accessdate and effective parameters also exist, useful when citing now out-of-date schedules and schedules for discontinued routes.