模板:Rapid transit OSM map/doc
From Wikipedia, the free encyclopedia
The template generally works if the lines that make up the system have their own Wikidata entries (e.g. S6 (Q7388350) for Zürich S-Bahn), and the entries are connected to an OpenStreetMap line child feature.
![]() | 本文檔係模板:Rapid transit OSM map嘅Wikipedia:模板文檔子頁面 (見頁自身)。 本頁包含用法信息、分類撈其他非原頁面嘅內容。 |
Each Wikidata line entity's 使用狀態 (P5817) should be 使用中 (Q55654238) and should include the 交通網路 (P16) property (for instance on the S6 (Q7388350) entity, 交通網路 (P16) -> 蘇黎世城市快鐵 (Q636091)).
This is a wrapper for Template:Maplink. It fetches `geoline` features and shows them within the template. The template works through a SPARQL Wikidata query. The vital field is `system_qid`, which determines the central item from which all other data is pulled.
First, try this on the Wikipedia page of an item that is supposed to show up on the map (e.g. a metro line):
{{mapframe|frame = yes | type = line | stroke-width = 2}}
If it's not displayed, the item might not yet be linked to an OSM feature.