Module:PUV stop/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by imported>Ganmatthew at 11:14, 13 October 2025 (Usage: Updated docs). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 routebox is the service key, which determines the set of routes that the stop is a part of. Valid keys are city, bgc, lovebus, and qc.
  • 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 name keyword parameter is the name of the stop that will appear after the RouteBox icons. The text may be plain text or a wikilink.
  • The icon keyword parameter toggles whether the Rint icon will appear before the RouteBox icons. By default, this is set to true.