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 Default Auto value Status
Line 1 line1 no description string empty empty optional
Line 2 line2 no description string empty empty optional
Line 3 line3 no description string empty empty optional
Line 4 line4 no description string empty empty optional
Line 5 line5 no description string empty empty optional
Line 6 line6 no description string empty empty optional
Line 7 line7 no description string empty empty optional
Line 8 line8 no description string empty empty optional
Line 9 line9 no description string empty empty optional
Line 10 line10 no description string empty empty optional
Line 11 line11 no description string empty empty optional
Line 12 line12 no description string empty empty optional
Line 13 line13 no description string empty empty optional
Line 14 line14 no description string empty empty optional
Line 15 line15 no description string empty empty optional
Line 16 line16 no description string empty empty optional
Line 17 line17 no description string empty empty optional
Line 18 line18 no description string empty empty optional
Line 19 line19 no description string empty empty optional
Line 22 line22 no description string empty empty optional
Maglev maglev no description string empty empty optional