Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module:PUV stop/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

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.