Template:Public Transport Authority of Western Australia railway stations/doc

From Wikipedia, the free encyclopedia
{{Public Transport Authority of Western Australia railway stations|state=}}

{{Public Transport Authority of Western Australia railway stations}} is a universal navbox template, based on the design of {{Transport for New South Wales railway stations}}, that lists all of the railway stations currently serviced, or planned to be serviced, by Western Australia's division for public transport, the Public Transport Authority. The navbox is divided into two sections, one for the authority's metropolitan Transperth service and one for its regional Transwa service. Both sections are divided into various groups representing each rail route serviced by both Transperth and Transwa. For example, the Transperth section has six groups, each listing the stations of all of the Transperth network's seven continuous routes and their individual stopping pattern routes. All the individual groups in each section are hidden using {{#switch:}} templates. To avoid navbox congestion, all groups are hidden by default, with the sections only appearing if the associated parameter with that group is activated. The key to activating paramaters is set to "y".

Examples[edit]

Example 1[edit]

On the article for Subiaco railway station, which is a station serviced solely by Transperth's Fremantle Line service, only the "Fremantle" parameter needs to be active. The template should be written as follows, producing the result seen afterwards:

{{Public Transport Authority of Western Australia railway stations|Fremantle=y}}

Example 2[edit]

On the article for Elizabeth Quay railway station, which is a station serviced by two of Transperth's services, the Joondalup Line and Mandurah Line, the parameters "Joondalup" and "Mandurah" need to be active. The template should be written as follows, producing the result seen afterwards:

{{Public Transport Authority of Western Australia railway stations|Joondalup=y|Mandurah=y}}

Parameters[edit]

Main parameters[edit]

Additional parameters[edit]

Parameter Inputs Result / notes
"state=" "collapsed" Collapses navbox by default.
"expanded" Expands the navbox by default.

Full template[edit]

Here's the entire template as it looks with all parameters active, displayed as "state=expanded", as a visual reference to editors.

Succession[edit]

This universal navbox template is designed as a merger and replacement for two predecessor navbox template, which now redirect to {{Public Transport Authority of Western Australia railway stations}}. They are as follows: