For faster navigation, this Iframe is preloading the Wikiwand page for 模組:CNBUS/XY.

模組:CNBUS/XY

文档图示 模块文档[查看] [编辑] [历史] [清除缓存]

本模块及子页面用于存放咸阳公交相关数据,通过Module:CNBUS及((咸阳公交路线简单列表))、((咸阳公交路线列表))、((咸阳公交公司色块))等模板使用。

数据

[编辑]

本模块使用的数据分别存放在如下的子页面中,如需更新数据可至相应子页面修改。

数据名称 存放位置
线路编号、线路(起讫点、方向)、备注、

营运公司(分公司)、全程票价、图片

咸阳市线路 Module:CNBUS/XY/data
咸阳境内的西安线路 引用:Module:CNBUS/XY/data

数据:Module:CNBUS/XA/data

表格表头 Module:CNBUS

引用方法

[编辑]

不建议直接在条目空间中使用#invoke语法调用本模块,而是使用模板,并在模板中引用本模块。

调用名称 参数 引用模板
list

((#invoke:CNBUS/XY |list |city=XY
|loc = 地区
|format = 样式
|code = 线路代码
))

((咸阳公交路线列表))
title

((#invoke:CNBUS/XY |title |city=XY
|loc = 地区
|format = 样式
))

((咸阳公交路线列表))
simplelist

((#invoke:CNBUS/XY |simplelist |city=XY
|loc = 地区
|code = 线路代码
))

((咸阳公交路线简单列表))
colorbox

((#invoke:CNBUS/XY |colorbox |city=XY
|company = 公司代码
))

((咸阳公交公司色块))

相关模块

[编辑]

local xy = {
	areas = { },
	operators = { }
}

xy.areas['xianyang'] = {
	name = "咸阳",
	page = "咸阳市公交线路表",
	source = "Module:CNBUS/XY/data",
	aliases = { "Xianyang", "XY", "xy", "咸阳", "default" }
}
xy.areas['xian'] = {
	name = "西安",
	source = "Module:CNBUS/XA/data",
	aliases = { "Xian", "XA", "xa", "西安" }
}

xy.operators['XYB'] = {
	color = "red",
	aliases = { "公交一司", "公交二司", "公交三司", "公交四司", "公交五司", "公交六司" }
}
xy.operators['XX'] = {
	color = "green",
	aliases = { "西咸公交", "西咸一分", "西咸二分", "西咸三分", "西咸四分" }
}

xy.operators['other'] = {
	color = "white",
	aliases = { "西安公交巴士公司", "西安公交一公司", "西安公交六公司" }
}
xy.operators['multi'] = {
	color = "black",
}

return xy
{{bottomLinkPreText}} {{bottomLinkText}}
模組:CNBUS/XY
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?