Template talk:Busbox: Difference between revisions

From VOC Wiki
Jump to navigation Jump to search
imported>ScottN
added template usage notes
 
imported>ScottN
No edit summary
 
Line 1: Line 1:
This template should be used for linking to translink bus routes and schedules on their website.  Using a template protects use in case the location of these files ever changesIn that case, we would only have to update the template, and not all the pages that use the template.
West Vancouver buses (250, 257) don't have schedules on the translink website.  They're hosted on West Vancouver's own siteAnyone have any good ideas on how to deal with this? [[User:ScottN|Scott Nelson]] 11:04, 24 September 2009 (PDT)
 
==Usage==
 
{{Busbox|number=007|name=Dunbar|number2=C12|name2=Lions Bay}}
 
The template uses nmaed parameters for the bus route number and bus route name.  Currently the template is limited to a maximum of 3 bus routes.  The parameter names are "name", "number", "name2", "number2", "name3", "number3", etc.  See the example below to link to the #7 and C12 bus routes. This generates the box show at right:
 
<nowiki>{{Busbox|number=001|name=TBD|number2=C12|name2=Lions Bay}}</nowiki> 
 
Note that you must pad the bus route number to 3 digits in order to get it to work.  For community shuttle bus routes, the number must start with the character C followed by 2 digits only.

Latest revision as of 18:04, 24 September 2009

West Vancouver buses (250, 257) don't have schedules on the translink website. They're hosted on West Vancouver's own site. Anyone have any good ideas on how to deal with this? Scott Nelson 11:04, 24 September 2009 (PDT)