Jump to content

Template:Shanghai Metro/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m Add Line 22
more specific cat
Line 96: Line 96:
<includeonly>
<includeonly>
[[Category:Shanghai Metro templates|{{PAGENAME}}]]
[[Category:Shanghai Metro templates|{{PAGENAME}}]]
[[Category:Rail transport navigational boxes|{{PAGENAME}}]]
[[Category:Rail transport navigational boxes of the People's Republic of China|{{PAGENAME}}]]
</includeonly>
</includeonly>

Revision as of 03:57, 29 December 2012

Usage

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=
|line16=
|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

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=
|line16=
|line22=
|maglev=
}}

Full template

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