Template:Shanghai Metro

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]

Usage[edit]

This template selectively displays the stations of various Shanghai Metro lines in a navbox. To select which lines are displayed, use the parameters "line1" through "line9". Give each parameter a value to make that line display, and leave the parameter unset to make the line stay hidden. For example,

{{Shanghai Metro
|line1=
|line2=yes
|line3=yes
|line4=
|line5=
|line6=
|line7=
|line8=
|line9=
|line10=
|line11=
|line12=
|line13=
|line14=
|line15=
|line16=
|line17=
|line18=
|line19=
|line22=
|maglev=
}}

displays:


If adding new lines to this template, please ensure that List of Shanghai Metro stations is updated to match. The list page includes a copy of this template, showing all of the lines, and is also linked from the title bar of this template.

Blank declaration[edit]

You can copy and paste this blank template for use, inserting a value for each of the lines that's to be displayed and either deleting or leaving unset the lines that aren't to be displayed.

{{Shanghai Metro
|line1=
|line2=
|line3=
|line4=
|line5=
|line6=
|line7=
|line8=
|line9=
|line10=
|line11=
|line12=
|line13=
|line14=
|line15=
|line16=
|line17=
|line18=
|line19=
|line22=
|maglev=
}}

Full template[edit]

This is what the contents of the full template with every line displayed looks like:

This template shows the Shanghai Metro navbox at the bottom of the page, showing the appropriate lines and stations. The value "yes" should be used for whichever line runs through the metro station.

Template parameters
Parameter Description Type Status
Line 1 line1

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 2 line2

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 3 line3

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 4 line4

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 5 line5

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 6 line6

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 7 line7

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 8 line8

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 9 line9

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 10 line10

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 11 line11

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 12 line12

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 13 line13

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 14 line14

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 15 line15

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 16 line16

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 17 line17

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 18 line18

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 19 line19

no description

Default
empty
Example
empty
Auto value
empty
string optional
Line 22 line22

no description

Default
empty
Example
empty
Auto value
empty
string optional
Maglev maglev

no description

Default
empty
Example
empty
Auto value
empty
string optional