模板:Listing

出自維基導遊
跳至導覽 跳至搜尋
Template-info.svg 模板說明文檔[檢視] [編輯] [歷史] [刷新]

說明檔[編輯]

此模版是通用是商業列表模板,如果適合的話,下面有幾個特定種類的模板可供使用:

用法[編輯]

* {{listing
| type=列表项的类型
| name=名称
| alt=别名
| url=网址,应该包含http://部分
| 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 Embarcaderoat 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)

參見[編輯]