Template:Cite NYC bus: Difference between revisions
Use modern string functions |
Epicgenius (talk | contribs) update - the new URL format forces everything to be hard-coded |
||
Line 1: | Line 1: | ||
<includeonly>{{cite web|url={{{url |
<includeonly>{{cite web|url={{{url|{{#switch:{{lc:{{{1}}} }} |
||
<!--Bronx local--> |
|||
|bx=http://web.mta.info/nyct/bus/schedule/bronx/bx |
|||
|bx1 |
|||
|b=http://web.mta.info/nyct/bus/schedule/bkln/b |
|||
| |
|bx2=https://new.mta.info/document/88706 |
||
| |
|bx3=https://new.mta.info/document/88711 |
||
|bx4 |
|||
|x=http://web.mta.info/nyct/bus/schedule/xpress/x |
|||
| |
|bx4a=https://new.mta.info/document/88691 |
||
| |
|bx5=https://new.mta.info/document/88716 |
||
| |
|bx6=https://new.mta.info/document/88796 |
||
| |
|bx6 sbs=https://new.mta.info/document/88801 |
||
| |
|bx7=https://new.mta.info/document/88806 |
||
|bx8=https://new.mta.info/document/88811 |
|||
}}|{{#switch:{{str letter/trim|{{lc:{{{1}}}}}}} |
|||
| |
|bx9=https://new.mta.info/document/88816 |
||
| |
|bx10=https://new.mta.info/document/88821 |
||
|bx11=https://new.mta.info/document/88696 |
|||
|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> |
|||
|bx12=https://new.mta.info/document/88826 |
|||
|bx12 sbs=https://new.mta.info/document/88831 |
|||
|bx13=https://new.mta.info/document/88836 |
|||
|bx15=https://new.mta.info/document/88701 |
|||
|bx16=https://new.mta.info/document/88841 |
|||
|bx17=https://new.mta.info/document/88846 |
|||
|bx18=https://new.mta.info/document/88741 |
|||
|bx19=https://new.mta.info/document/88851 |
|||
|bx20=https://new.mta.info/document/88856 |
|||
|bx21=https://new.mta.info/document/88861 |
|||
|bx22=https://new.mta.info/document/88866 |
|||
|bx23=https://new.mta.info/document/88871 |
|||
|bx24=https://new.mta.info/document/88746 |
|||
|bx25=https://new.mta.info/document/88751 |
|||
|bx26=https://new.mta.info/document/88876 |
|||
|bx27=https://new.mta.info/document/88881 |
|||
|bx28 |
|||
|bx38=https://new.mta.info/document/88886 |
|||
|bx29=https://new.mta.info/document/88756 |
|||
|bx30=https://new.mta.info/document/88761 |
|||
|bx31=https://new.mta.info/document/88891 |
|||
|bx32=https://new.mta.info/document/88896 |
|||
|bx33=https://new.mta.info/document/88901 |
|||
|bx34=https://new.mta.info/document/88906 |
|||
|bx35=https://new.mta.info/document/88766 |
|||
|bx36=https://new.mta.info/document/88771 |
|||
|bx39=https://new.mta.info/document/88911 |
|||
|bx40 |
|||
|bx42=https://new.mta.info/document/88776 |
|||
|bx41=https://new.mta.info/document/88916 |
|||
|bx41 sbs=https://new.mta.info/document/88921 |
|||
|bx46=https://new.mta.info/document/88926 |
|||
<!--Brooklyn local--> |
|||
|b1=https://new.mta.info/document/6926 |
|||
|b2=https://new.mta.info/document/6936 |
|||
|b3=https://new.mta.info/document/6941 |
|||
|b4=https://new.mta.info/document/6946 |
|||
|b6=https://new.mta.info/document/6951 |
|||
|b7=https://new.mta.info/document/6956 |
|||
|b8=https://new.mta.info/document/6961 |
|||
|b9=https://new.mta.info/document/6966 |
|||
|b11=https://new.mta.info/document/6971 |
|||
|b12=https://new.mta.info/document/6976 |
|||
|b13=https://new.mta.info/document/6981 |
|||
|b14=https://new.mta.info/document/6986 |
|||
|b15=https://new.mta.info/document/6991 |
|||
|b16=https://new.mta.info/document/6996 |
|||
|b17=https://new.mta.info/document/7001 |
|||
|b20=https://new.mta.info/document/7006 |
|||
|b24=https://new.mta.info/document/7011 |
|||
|b25=https://new.mta.info/document/7016 |
|||
|b26=https://new.mta.info/document/7021 |
|||
|b31=https://new.mta.info/document/7026 |
|||
|b32=https://new.mta.info/document/7031 |
|||
|b35=https://new.mta.info/document/7036 |
|||
|b36=https://new.mta.info/document/7041 |
|||
|b37=https://new.mta.info/document/7046 |
|||
|b38=https://new.mta.info/document/7051 |
|||
|b39=https://new.mta.info/document/7056 |
|||
|b41=https://new.mta.info/document/7061 |
|||
|b42=https://new.mta.info/document/7066 |
|||
|b43=https://new.mta.info/document/7071 |
|||
|b44=https://new.mta.info/document/7076 |
|||
|b44 sbs=https://new.mta.info/document/7081 |
|||
|b45=https://new.mta.info/document/7086 |
|||
|b46=https://new.mta.info/document/13886 |
|||
|b46 sbs=https://new.mta.info/document/7091 |
|||
|b47=https://new.mta.info/document/7096 |
|||
|b48=https://new.mta.info/document/7101 |
|||
|b49=https://new.mta.info/document/7106 |
|||
|b52=https://new.mta.info/document/7111 |
|||
|b54=https://new.mta.info/document/7116 |
|||
|b57=https://new.mta.info/document/7121 |
|||
|b60=https://new.mta.info/document/7126 |
|||
|b61=https://new.mta.info/document/7131 |
|||
|b62=https://new.mta.info/document/7136 |
|||
|b63=https://new.mta.info/document/7141 |
|||
|b64=https://new.mta.info/document/7146 |
|||
|b65=https://new.mta.info/document/7151 |
|||
|b67=https://new.mta.info/document/7156 |
|||
|b68=https://new.mta.info/document/7161 |
|||
|b69=https://new.mta.info/document/7166 |
|||
|b70=https://new.mta.info/document/7171 |
|||
|b74=https://new.mta.info/document/7176 |
|||
|b82=https://new.mta.info/document/7181 |
|||
|b82 sbs=https://new.mta.info/document/7186 |
|||
|b83=https://new.mta.info/document/7131 |
|||
|b84=https://new.mta.info/document/7136 |
|||
|b100=https://new.mta.info/document/10281 |
|||
|b103=https://new.mta.info/document/10361 |
|||
<!--Manhattan local--> |
|||
|m1=https://new.mta.info/document/7501 |
|||
|m2=https://new.mta.info/document/7506 |
|||
|m3=https://new.mta.info/document/7511 |
|||
|m4=https://new.mta.info/document/7516 |
|||
|m5=https://new.mta.info/document/7521 |
|||
|m7=https://new.mta.info/document/7526 |
|||
|m8=https://new.mta.info/document/7531 |
|||
|m9=https://new.mta.info/document/9706 |
|||
|m10=https://new.mta.info/document/7541 |
|||
|m11=https://new.mta.info/document/7546 |
|||
|m12=https://new.mta.info/document/7551 |
|||
|m14 |
|||
|m14a |
|||
|m14d=https://new.mta.info/document/7556 |
|||
|m15=https://new.mta.info/document/7561 |
|||
|m15 sbs=https://new.mta.info/document/7566 |
|||
|m20=https://new.mta.info/document/7571 |
|||
|m21=https://new.mta.info/document/7576 |
|||
|m22=https://new.mta.info/document/7581 |
|||
|m23 |
|||
|m23 sbs=https://new.mta.info/document/7586 |
|||
|m31=https://new.mta.info/document/7591 |
|||
|m34 |
|||
|m34a |
|||
|m34 sbs |
|||
|m34a sbs=https://new.mta.info/document/7596 |
|||
|m35=https://new.mta.info/document/7606 |
|||
|m42=https://new.mta.info/document/7611 |
|||
|m50=https://new.mta.info/document/7616 |
|||
|m55=https://new.mta.info/document/7621 |
|||
|m57=https://new.mta.info/document/7626 |
|||
|m60 |
|||
|m60 sbs=https://new.mta.info/document/7631 |
|||
|m66=https://new.mta.info/document/7636 |
|||
|m72=https://new.mta.info/document/7641 |
|||
|m79 |
|||
|m79 sbs=https://new.mta.info/document/7646 |
|||
|m86 |
|||
|m86 sbs=https://new.mta.info/document/7651 |
|||
|m96=https://new.mta.info/document/7656 |
|||
|m98=https://new.mta.info/document/7661 |
|||
|m100=https://new.mta.info/document/88781 |
|||
|m101=https://new.mta.info/document/8036 |
|||
|m102=https://new.mta.info/document/7076 |
|||
|m103=https://new.mta.info/document/7681 |
|||
|m104=https://new.mta.info/document/7686 |
|||
|m106=https://new.mta.info/document/7691 |
|||
|m116=https://new.mta.info/document/7696 |
|||
|m125=https://new.mta.info/document/88786 |
|||
<!--Queens local--> |
|||
|q1=https://new.mta.info/document/6256 |
|||
|q2=https://new.mta.info/document/6266 |
|||
|q3=https://new.mta.info/document/6271 |
|||
|q4=https://new.mta.info/document/6276 |
|||
|q5=https://new.mta.info/document/6281 |
|||
|q6=https://new.mta.info/document/6286 |
|||
|q7=https://new.mta.info/document/10231 |
|||
|q8=https://new.mta.info/document/6306 |
|||
|q9=https://new.mta.info/document/6311 |
|||
|q10=https://new.mta.info/document/6316 |
|||
|q11=https://new.mta.info/document/6321 |
|||
|q12=https://new.mta.info/document/6356 |
|||
|q13=https://new.mta.info/document/6361 |
|||
|q15 |
|||
|q15a=https://new.mta.info/document/6366 |
|||
|q16=https://new.mta.info/document/6376 |
|||
|q17=https://new.mta.info/document/6381 |
|||
|q18=https://new.mta.info/document/6386 |
|||
|q19=https://new.mta.info/document/6391 |
|||
|q20 |
|||
|q20a |
|||
|q20b=https://new.mta.info/document/6396 |
|||
|q21=https://new.mta.info/document/6321 |
|||
|q22=https://new.mta.info/document/6406 |
|||
|q23=https://new.mta.info/document/6416 |
|||
|q24=https://new.mta.info/document/6421 |
|||
|q25=https://new.mta.info/document/6426 |
|||
|q26=https://new.mta.info/document/6431 |
|||
|q27=https://new.mta.info/document/6436 |
|||
|q28=https://new.mta.info/document/6441 |
|||
|q29=https://new.mta.info/document/6446 |
|||
|q30=https://new.mta.info/document/6451 |
|||
|q31=https://new.mta.info/document/6456 |
|||
|q32=https://new.mta.info/document/6461 |
|||
|q33=https://new.mta.info/document/6466 |
|||
|q34=https://new.mta.info/document/6426 |
|||
|q35=https://new.mta.info/document/10356 |
|||
|q36=https://new.mta.info/document/6481 |
|||
|q37=https://new.mta.info/document/6486 |
|||
|q38=https://new.mta.info/document/6491 |
|||
|q39=https://new.mta.info/document/6496 |
|||
|q40=https://new.mta.info/document/6501 |
|||
|q41=https://new.mta.info/document/6506 |
|||
|q42=https://new.mta.info/document/6511 |
|||
|q43=https://new.mta.info/document/6516 |
|||
|q44 |
|||
|q44 sbs=https://new.mta.info/document/6521 |
|||
|q46=https://new.mta.info/document/6526 |
|||
|q47=https://new.mta.info/document/14056 |
|||
|q48=https://new.mta.info/document/6536 |
|||
|q49=https://new.mta.info/document/6541 |
|||
|q50=https://new.mta.info/document/88791 |
|||
|q52 |
|||
|q52 sbs |
|||
|q53 |
|||
|q53 sbs=https://new.mta.info/document/41771 |
|||
|q54=https://new.mta.info/document/6561 |
|||
|q55=https://new.mta.info/document/6566 |
|||
|q56=https://new.mta.info/document/6571 |
|||
|q58=https://new.mta.info/document/6581 |
|||
|q59=https://new.mta.info/document/6586 |
|||
|q60=https://new.mta.info/document/6591 |
|||
|q64=https://new.mta.info/document/6596 |
|||
|q65=https://new.mta.info/document/6601 |
|||
|q66=https://new.mta.info/document/6606 |
|||
|q67=https://new.mta.info/document/10326 |
|||
|q69=https://new.mta.info/document/10331 |
|||
|q70 |
|||
|q70 sbs=https://new.mta.info/document/6621 |
|||
|q72=https://new.mta.info/document/6626 |
|||
|q76=https://new.mta.info/document/6631 |
|||
|q77=https://new.mta.info/document/6636 |
|||
|q83=https://new.mta.info/document/6641 |
|||
|q84=https://new.mta.info/document/6646 |
|||
|q85=https://new.mta.info/document/6651 |
|||
|q88=https://new.mta.info/document/6656 |
|||
|q100=https://new.mta.info/document/6661 |
|||
|q101=https://new.mta.info/document/6666 |
|||
|q102=https://new.mta.info/document/10321 |
|||
|q103=https://new.mta.info/document/6676 |
|||
|q104=https://new.mta.info/document/6681 |
|||
|q110=https://new.mta.info/document/6686 |
|||
|q111=https://new.mta.info/document/13961 |
|||
|q112=https://new.mta.info/document/6696 |
|||
|q113 |
|||
|q114=https://new.mta.info/document/14381 |
|||
<!--Staten Island local--> |
|||
|s40 |
|||
|s90=https://new.mta.info/document/7756 |
|||
|s42 |
|||
|s52=https://new.mta.info/document/8641 |
|||
|s44 |
|||
|s94=https://new.mta.info/document/7766 |
|||
|s46 |
|||
|s96=https://new.mta.info/document/7771 |
|||
|s48 |
|||
|s98=https://new.mta.info/document/36101 |
|||
|s51 |
|||
|s81=https://new.mta.info/document/7781 |
|||
|s53=https://new.mta.info/document/7791 |
|||
|s54=https://new.mta.info/document/7796 |
|||
|s55=https://new.mta.info/document/7801 |
|||
|s56=https://new.mta.info/document/7806 |
|||
|s57=https://new.mta.info/document/7811 |
|||
|s59=https://new.mta.info/document/7816 |
|||
|s61 |
|||
|s91=https://new.mta.info/document/7821 |
|||
|s62 |
|||
|s92=https://new.mta.info/document/7826 |
|||
|s66=https://new.mta.info/document/7831 |
|||
|s74 |
|||
|s84=https://new.mta.info/document/7836 |
|||
|s76 |
|||
|s86=https://new.mta.info/document/7841 |
|||
|s78=https://new.mta.info/document/7846 |
|||
|s79 |
|||
|s79 sbs=https://new.mta.info/document/7851 |
|||
|s89=https://new.mta.info/document/7716 |
|||
|s93=https://new.mta.info/document/12296 |
|||
<!--Bronx express--> |
|||
|bxm1=https://new.mta.info/document/88721 |
|||
|bxm2=https://new.mta.info/document/88726 |
|||
|bxm3=https://new.mta.info/document/88941 |
|||
|bxm4=https://new.mta.info/document/88946 |
|||
|bxm6=https://new.mta.info/document/88951 |
|||
|bxm7=https://new.mta.info/document/88956 |
|||
|bxm8=https://new.mta.info/document/88961 |
|||
|bxm9=https://new.mta.info/document/88966 |
|||
|bxm10=https://new.mta.info/document/88971 |
|||
|bxm11=https://new.mta.info/document/88976 |
|||
|bxm18=https://new.mta.info/document/88936 |
|||
<!--Brooklyn express--> |
|||
|bm1=https://new.mta.info/document/14041 |
|||
|bm2=https://new.mta.info/document/6891 |
|||
|bm3=https://new.mta.info/document/6896 |
|||
|bm4=https://new.mta.info/document/14046 |
|||
|bm5=https://new.mta.info/document/14051 |
|||
|x27 |
|||
|x37=https://new.mta.info/document/6921 |
|||
|x28 |
|||
|x38=https://new.mta.info/document/6916 |
|||
<!--Queens express--> |
|||
|qm1 |
|||
|qm5 |
|||
|qm6 |
|||
|qm31 |
|||
|qm35 |
|||
|qm36=https://new.mta.info/document/14376 |
|||
|qm2 |
|||
|qm32=https://new.mta.info/document/6721 |
|||
|qm3=https://new.mta.info/document/6726 |
|||
|qm4 |
|||
|qm44=https://new.mta.info/document/6731 |
|||
|qm7 |
|||
|qm8=https://new.mta.info/document/6746 |
|||
|qm10 |
|||
|qm40=https://new.mta.info/document/10301 |
|||
|qm11=https://new.mta.info/document/89851 |
|||
|qm12 |
|||
|qm42=https://new.mta.info/document/6766 |
|||
|qm15=https://new.mta.info/document/6771 |
|||
|qm16=https://new.mta.info/document/6776 |
|||
|qm17=https://new.mta.info/document/6781 |
|||
|qm18=https://new.mta.info/document/6786 |
|||
|qm20=https://new.mta.info/document/6791 |
|||
|qm21=https://new.mta.info/document/6796 |
|||
|qm24 |
|||
|qm34=https://new.mta.info/document/6801 |
|||
|qm25=https://new.mta.info/document/10291 |
|||
|x63=https://new.mta.info/document/6851 |
|||
|x64=https://new.mta.info/document/6856 |
|||
|x68=https://new.mta.info/document/9746 |
|||
<!--Staten Island express--> |
|||
|sim1 |
|||
|sim1c=https://new.mta.info/document/8551 |
|||
|sim2=https://new.mta.info/document/8571 |
|||
|sim3 |
|||
|sim3c=https://new.mta.info/document/14036 |
|||
|sim4 |
|||
|sim4x=https://new.mta.info/document/8536 |
|||
|sim4c=https://new.mta.info/document/51906 |
|||
|sim5=https://new.mta.info/document/8616 |
|||
|sim6=https://new.mta.info/document/8521 |
|||
|sim7=https://new.mta.info/document/8556 |
|||
|sim8 |
|||
|sim8x=https://new.mta.info/document/8576 |
|||
|sim9=https://new.mta.info/document/8606 |
|||
|sim10=https://new.mta.info/document/8581 |
|||
|sim11=https://new.mta.info/document/8546 |
|||
|sim15=https://new.mta.info/document/8526 |
|||
|sim22=https://new.mta.info/document/8561 |
|||
|sim23=https://new.mta.info/document/69081 |
|||
|sim24=https://new.mta.info/document/69086 |
|||
|sim25=https://new.mta.info/document/8591 |
|||
|sim26=https://new.mta.info/document/8511 |
|||
|sim30=https://new.mta.info/document/8541 |
|||
|sim31=https://new.mta.info/document/8586 |
|||
|sim32=https://new.mta.info/document/8531 |
|||
|sim33=https://new.mta.info/document/8566 |
|||
|sim33c=https://new.mta.info/document/51911 |
|||
|sim34=https://new.mta.info/document/8596 |
|||
|sim35=https://new.mta.info/document/8611 |
|||
|#default=https://new.mta.info/schedules/bus |
|||
}} }}} |
|||
|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> |
Latest revision as of 19:41, 27 June 2022
This template produces citations for the schedules of NYC bus routes.
Standard usage
[edit]{{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".
Multiple routes on one schedule
[edit]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. "S40/S90 bus schedule". The MTA file name is s040cur.pdf, so we use M34, not M16 in the first parameter.
Non-standard URLs
[edit]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
[edit]If you wish, the accessdate and effective parameters also exist, useful when citing now out-of-date schedules and schedules for discontinued routes.