Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Blank declaration  





3 TemplateData  














Template:Shanghai Metro








 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


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

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

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[Edit template data]

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

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Shanghai_Metro&oldid=1225545296"

Categories: 
Shanghai Metro templates
Rail transport navigational boxes of the People's Republic of China
Hidden categories: 
Wikipedia semi-protected templates
Templates using TemplateData
 



This page was last edited on 25 May 2024, at 03:55 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki