Module:PUV stop/doc
Jump to navigation
Jump to search
| Error creating thumbnail: | This is a documentation subpage for Module:PUV stop. It may contain usage information, categories and other content that is not part of the original module page. |
| File:Greek lc beta icon.svg | This module is rated as beta. It is considered ready for widespread use, but as it is still relatively new, it should be applied with some caution to ensure results are as expected. |
Usage
[edit source]This module contains the main logic for Template:PUV stop, which generates RouteBox icons for bus stops based on the list of bus routes in Metro Manila.
{{#invoke:PUV stop|routebox|<1>|<2>|name=<name>|icon=<yes/no>}}
The first parameter calls the routebox() function, which then reads an unlimited number of positional parameters (but preferably under 20) and one keyword parameter:
- The first positional parameter following
routeboxis the service key, which determines the set of routes that the stop is a part of. Valid keys arecity,bgc,lovebus, andqc. - The second and succeeding positional parameters are the letters or numbers used to identify a bus line of that service. For the BGC Bus, which has stop numbers, the parameters should include both code and stop number (e.g.
EX01). - The
namekeyword parameter is the name of the stop that will appear after the RouteBox icons. The text may be plain text or a wikilink. - The
iconkeyword parameter toggles whether the Rint icon will appear before the RouteBox icons. By default, this is set to true.