Difference between revisions of "Template:MTS stations"

From blackwiki
Jump to navigation Jump to search
imported>Certes
(+City College and Stadium)
imported>Useddenim
(revised to eliminate errors)
Line 1: Line 1:
{{#ifeq:{{lc:{{last word|{{{station}}}}}}}|center|{{Title case|{{{station}}}}}|{{#switch:{{lc:{{{station}}}}}
+
{{#switch:{{lc:{{First word|{{{station|{{{1|}}}}}}}}}}
 +
| 12th
 +
| el
 +
| fashion
 +
| grossmont
 +
| old
 +
| san = {{#if:{{{2|}}}|{{BSsplit|{{{station|{{{1|}}}}}}|Transit Center|{{{station|{{{1|}}}}}} Transit Center}}|[[{{{station|{{{1|}}}}}} Transit Center]]}}
 +
 
 +
| civic
 +
| convention
 +
| courthouse
 +
| harborside
 +
| middletown = [[{{{station|{{{1|}}}}}} station (San Diego Trolley)|{{{station|{{{1|}}}}}}]]
  
 
  | 70th
 
  | 70th
 
  | h
 
  | h
  | palomar = [[{{Title case|{{{station}}}}} Street station|{{Title case|{{{station}}}}}]]
+
  | palomar = [[{{First word|{{{station|{{{1|}}}}}}}} Street station|{{{station|{{{1|}}}}}}]]
  | bayfront/e = [[Bayfront/E Street station|Bayfront/E Street]]
+
  | bayfront/e | bayfront | e = [[Bayfront/E Street station|Bayfront/E Street]]
 
+
  | encanto/62nd | encanto | 62nd = [[Encanto/62nd Street station|Encanto/62nd Street]]
  | 8th street
 
| 24th street
 
| 47th street
 
| civic center
 
| convention center
 
| courthouse = [[{{Title case|{{{station}}}}} station (San Diego Trolley)|{{Title case|{{{station}}}}}]]
 
| euclid avenue
 
| harborside
 
| massachusetts avenue
 
| middletown
 
| spring street
 
| washington street = [[{{Title case|{{{station}}}}} station (San Diego Trolley)|{{Title case|{{{station}}}}}]]
 
  
 
  | 8th
 
  | 8th
Line 23: Line 23:
 
  | 47th
 
  | 47th
 
  | spring
 
  | spring
  | washington = [[{{Title case|{{{station}}}}} Street station (San Diego Trolley)|{{Title case|{{{station}}}}}]]
+
  | washington = [[{{First word|{{{station|{{{1|}}}}}}}} Street station (San Diego Trolley)|{{{station|{{{1|}}}}}}]]
  
 
  | arnele
 
  | arnele
 
  | fifth
 
  | fifth
 
  | iris
 
  | iris
  | palm = [[{{Title case|{{{station}}}}} Avenue station|{{Title case|{{{station}}}}}]]
+
  | palm = [[{{First word|{{{station|{{{1|}}}}}}}} Avenue station|{{{station|{{{1|}}}}}}]]
 +
| 5th = [[Fifth Avenue station|{{{station|{{{1|}}}}}}]]
  
 
  | euclid
 
  | euclid
  | massachusetts = [[{{Title case|{{{station}}}}} Avenue station (San Diego Trolley)|{{Title case|{{{station}}}}}]]
+
  | massachusetts = [[{{First word|{{{station|{{{1|}}}}}}}} Avenue station (San Diego Trolley)|{{{station|{{{1|}}}}}}]]
  
  | 5th = [[Fifth Avenue station|5th]]
+
  | beyer  = [[Beyer Boulevard station|{{{station|{{{1|}}}}}}]]
 +
| la = [[La Mesa Boulevard station|{{{station|{{{1|}}}}}}]]
  
  | amaya = [[Amaya Drive station|Amaya]]
+
  | city
 +
| stadium = [[{{{station|{{{1|}}}}}} station (San Diego)|{{{station|{{{1|}}}}}}]]
  
  | beyer
+
  | amaya = [[Amaya Drive station|Amaya Drive ]]
| la mesa = [[{{Title case|{{{station}}}}} Boulevard station|{{Title case|{{{station}}}}}]]
 
  
  | 12th & imperial
+
  | county | little = [[County Center/Little Italy station|County Center/Little Italy ]]
| el cajon
+
  | lemon = [[Lemon Grove Depot]]
| fashion valley
+
  | morena/linda | morena | linda = [[Morena/Linda Vista station|Morena/Linda Vista]]
| grossmont
+
  | santa = [[Santa Fe Depot (San Diego)|Santa Fe Depot]]
| old town
+
| sdsu = {{#if:{{{2|}}}|{{BSsplit|San Diego State University|Transit Center|San Diego State University Transit Center}}|[[San Diego State University Transit Center]]}}
| san diego state university
 
| san ysidro = [[{{Title case|{{{station}}}}} Transit Center]]
 
  | sdsu = [[San Diego State University Transit Center]]
 
 
 
  | city college
 
| stadium = [[{{Title case|{{{station}}}}} station (San Diego)|{{Title case|{{{station}}}}}]]
 
 
 
| lemon grove | lemon grove depot = [[Lemon Grove Depot]]
 
  | santa fe depot = [[Santa Fe Depot (San Diego)|{{Title case|{{{station}}}}}]]
 
 
  | utc = University Towne Center<!--Terminus of the future Mid-Coast Trolley extension, not linked since no article exists yet-->
 
  | utc = University Towne Center<!--Terminus of the future Mid-Coast Trolley extension, not linked since no article exists yet-->
  
<!--Other stations with "Center" causes unexpected results with {{last word}}-->
+
  | #default = [[{{{station|{{{1|}}}}}} station|{{{station|{{{1|}}}}}}]]
  | alvarado | alvarado medical | alvarado medical center = [[Alvarado Medical Center station|Alvarado Medical Center]]
+
}}<noinclude>
| hazard | hazard center = [[Hazard Center station|Hazard Center]]
+
{{documentation}}
| mission valley | mission valley center = [[Mission Valley Center station|Mission Valley Center]]
+
</noinclude>
| santee | santee town | santee town center = [[Santee Town Center station|Santee Town Center]]
 
 
 
| civic
 
| convention = [[{{Title case|{{{station}}}}} Center station (San Diego Trolley)|{{Title case|{{{station}}}}} Center]]
 
 
 
<!--Stations with a slash character (/) followed by a letter causes unexpected results with {{Title case}}-->
 
| county center/little italy = [[County Center/Little Italy station|County Center/Little Italy]]
 
| morena/linda vista = [[Morena/Linda Vista station|Morena/Linda Vista]]
 
 
 
| #default = [[{{Title case|{{{station}}}}} station|{{{station}}}]]
 
}}
 
}}<noinclude>{{Documentation}}</noinclude>
 

Revision as of 20:32, 9 November 2018

[[station|]]

Template documentation[view] [edit] [history] [purge]

For use with Template:S-line in San Diego Trolley articles.

Usage

This template expands a name to link to the appropriate San Diego Trolley station article, without displaying "(San Diego Trolley station)".

The template can be abbreviated as {{mtss}} (for San Diego Metropolitan Transit System (MTS) stations).

For example, {{MTS stations|station=Gaslamp Quarter}} expands to [[Gaslamp Quarter station|Gaslamp Quarter]].

Discretion should be used on whether to name the place itself or the station that serves it. In railway articles it is generally preferred to use the station unless specifically talking about the place, for example that Seaport Village serves Seaport Village.

Most MTS stations follow the link form of terminating with "station", "station (San Diego Trolley)" or "Transit Center".


For the Transit Centers, the optional 2nd argument (any character) will split the text into two lines:

This text Displays
{{mtss|12th & Imperial}} Template:Mtss
{{mtss|12th & Imperial|2}}
12th & Imperial
Transit Center

Note that this template is not case sensitive: i.e. {{mtss|H Street}} produces the same result as {{mtss|h street}}.


The following abbreviations and exceptions are recognized:

This text Expands to
Lemon Grove or Lemon Grove Depot [[Lemon Grove Depot]]
Santa Fe or Santa Fe Depot [[Union Station (San Diego, California)|Santa Fe Depot]]
SDSU [[San Diego State University Transit Center]]
UTC University Towne Center
(Terminus of the future Mid-Coast Trolley extension;
not linked since no article exists yet.)

The words "Street", "Avenue", "Drive", "Boulevard", and "Transit Center" may be omitted.

See also

Template:Stnlnk/doc/other