Jump to content

Template:Shanghai Metro/doc

From Wikipedia, the free encyclopedia

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 |line18=, |pujiang= and |maglev=. Give each parameter any value to make that line display, and leave the parameter unset to make the line stay hidden. For example,

{{Shanghai Metro|line2=yes|line3=yes}}

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=
|line20=
|line21=
|line23=
|chongming=
|pujiang=
|maglev=
}}

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Shanghai Metro in articles based on its TemplateData.

TemplateData for Shanghai Metro

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

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Line 1line1

no description

Stringoptional
Line 2line2

no description

Stringoptional
Line 3line3

no description

Stringoptional
Line 4line4

no description

Stringoptional
Line 5line5

no description

Stringoptional
Line 6line6

no description

Stringoptional
Line 7line7

no description

Stringoptional
Line 8line8

no description

Stringoptional
Line 9line9

no description

Stringoptional
Line 10line10

no description

Stringoptional
Line 11line11

no description

Stringoptional
Line 12line12

no description

Stringoptional
Line 13line13

no description

Stringoptional
Line 14line14

no description

Stringoptional
Line 15line15

no description

Stringoptional
Line 16line16

no description

Stringoptional
Line 17line17

no description

Stringoptional
Line 18line18

no description

Stringoptional
Line 19line19

no description

Stringoptional
Line 20line20

no description

Stringoptional
Line 21line21

no description

Stringoptional
Line 23line23

no description

Stringoptional
Chongming linechongming

no description

Stringoptional
Pujiang linepujiang

no description

Stringoptional
Maglevmaglev

no description

Stringoptional