Template talk:Njt-sta

From Wikipedia, the free encyclopedia

Templates for deletion This template was considered for deletion on 2006 September 1. The result of the discussion was keep.

Contents

[edit] Instructions

This template takes a station name and creates a piped link to the station article. It works for not just regular NJT stations, but also for the light rail ones. It is designed in a way so that there is no need to actually put in any Wikilinks for the station names. If you are putting square brackets for any parameter, you're not doing it right! Now on to the parameters themselves. It takes at least one, and at most two parameters. They are as follows:

Param name Meaning What to enter
(unnamed) Station name Enter just the station's name, i.e. Chatham, Trenton, Union, etc.
type Type of station Currently there are 5 accepted types and each has a few ways to be called.

NCS and ncs will tag on (NCS station) to the station's name
NLR and nlr will tag on (NLR station) to the station's name
river will tag on (River Line station) to the station's name
HBLR and hblr will tag on (HBLR station) to the station's name
MNRR, mnrr, and metro will tag on (Metro-North station) to the station's name
Any other value, including not specifying this parameter at all or leaving it blank will tag (NJT station) to the station's name.

[edit] Examples

Here's an example:

 {{njt-sta|Union}}

This creates a link to Union (NJT station) which looks like Union.

 {{njt-sta|Hamilton Avenue|type=river}}

This creates a link like this: Hamilton Avenue

[edit] User suggestions/comments

[edit] Use with subst:?

Wouldn't it make sense to use this template with subst? For example:

{{subst:njt-sta|Union}}

Result when subst'd: :[[Union ({{ #switch: {{{type}}} | HBLR | hblr = HBLR | metro | MNRR | mnrr = Metro-North | NCS | ncs = NCS | river = River Line | #default = NJT }} station)|Union]] --ChrisRuvolo (t) 01:27, 4 July 2006 (UTC)

Withdrawn. That is one ugly #switch statement. --ChrisRuvolo (t) 01:28, 4 July 2006 (UTC)