Pang-bô͘:Rapid transit OSM map
The template generally works if the lines that make up the system have their own Wikidata entries (e.g. (Q7388350) for Zürich S-Bahn), and the entries are connected to an OpenStreetMap line child feature.
Each Wikidata line entity's (P5817) should be (Q55654238) and should include the (P16) property (for instance on the (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.
Usage[修改]
{{Rapid transit OSM map | system_qid = <!-- Optional. By default It'll assume the wikidata id linked to the page it is being used on. --> | system_qid[2-5] = <!-- use upto 4 additional systems --> | frame-lat = | frame-long = | frame-width = | frame-height = | frame-align = | stroke-width = <!-- Default is 3, use 2 for dense networks --> | plain = | text = | zoom = | display = | single_line = <!-- Useful to show a specific transit line. See examples below --> | stations = <!-- Any value will show the stations of a line/system. --> | stations_qid = <!-- Optional. By default It'll assume the wikidata id linked to the page it is being used on. --> | marker-symbol = <!-- If stations is set; Default is rail-metro --> | marker-colo(u)r = <!-- If stations is set. --> | marker-size = <!-- If stations is set; Default is medium. --> }}
Examples[修改]
Rapid transit system
- Frankfurt
- Moscow
A specific line of a system
- Zurich S6
Rapid transit network of a region
- Transport for Athens
See also[修改]
Téng-bīn ê bûn-kiāⁿ sī tùi Pang-bô͘:Rapid transit OSM map/doc khàm-ji̍p--ê. (pian-chi̍p | le̍k-sú) Pian-chip-chiá ē-sái tī chit-ê pang-bô͘ ê soa-a̍p (chhòng-kiàn | mirror) kap chhì-giām-kheh-suh (chhòng-kiàn) ia̍h-bīn chò si̍t-giām. Chhiáⁿ tī chú-ia̍h-bīn /doc lāi-bīn ka-thiam lūi-pia̍t. Pún pang-bô͘ ê chú-ia̍h-bīn. |