模板:Listing
说明档
此模版是通用是商业列表模板,如果适合的话,下面有几个特定种类的模板可供使用:
用法
* {{listing | type=列表项的类型 | name=名称 | alt=别名 | url=网址,应该包含https://部分 | email=电子邮箱 | address=地址 | lat=纬度 | long=经度 | directions=如何抵达此处的简要信息 | phone=电话号码 | tollfree=免费电话 | fax=传真号码 | hours=营业时间 | price=价格 | checkin=CHECKIN TIME (SLEEP LISTINGS ONLY) | checkout=CHECKOUT TIME (SLEEP LISTINGS ONLY) | content=简述 }}
只名称是必须的项,但应该提供尽量多的信息。
注意事项:
- 与旧的XML语法不同,添加的信息不需要加引号。
- “纬度”和“经度”分别是是WGS84坐标的纬度和经度。
微格式
此模板包含hCard微格式。
使用范例
- 1 Exploratorium,地址 Pier 15, 698 The Embarcadero(at Green St),📞 +1 415 528-4360。🕘 Tu-Su 10AM-5PM; open W until 10PM, closed M。💰 Adults: $25, Students/seniors/youth: $19, Children age 5 and under: Free。简介 A great kid friendly option, with lots of interactive exhibits teaching about science, with intriguing displays about the mind, natural systems, sound, sight, and much much more.
源代码:
* {{listing | name=Exploratorium | url=http://www.exploratorium.edu/ | email= | address=Pier 15, 698 The Embarcadero | lat=37.8013 | long=-122.3988 | directions=at Green St | phone=+1 415 528-4360 | tollfree= | fax= | hours=Tu-Su 10AM-5PM; open W until 10PM, closed M | price=Adults: $25, Students/seniors/youth: $19, Children age 5 and under: Free | content=A great kid friendly option, with lots of interactive exhibits teaching about science, with intriguing displays about the mind, natural systems, sound, sight, and much much more. }}
关联的模板:
- 依赖于Template:Marker用于产生列出标题(包含:item type, number, name, URL)