Template:Rapid transit OSM map/sandbox: Difference between revisions

Content deleted Content added
trying for system with no line entries, allow multi system
No edit summary
Line 22:
as ?title)
WHERE {
VALUES ?sys { wd:{{{system_qid|{{wikidata|label|raw}}}}} {{#if:{{{sys2system_qid2|}}}| wd:{{{sys2system_qid2|}}|}}} {{#if:{{{sys3system_qid3|}}}| wd:{{{sys3system_qid3|}}}|}} {{#if:{{{sys4system_qid4|}}}| wd:{{{sys4system_qid4|}}}|}} {{#if:{{{sys5system_qid5|}}}| wd:{{{sys5system_qid5|}}}|}} }
{
?id p:P5817/ps:P5817 wd:Q55654238.
?wds wdt:P361* ?sys.
{{{#if:single_sys||?id p:P16/ps:P16/wdt:P279*{{!}}p:P361/ps:P361/wdt:P361* ?wds.}}}
}
MINUS {
VALUES ?rem { wd:Q548662 wd:Q55697304}
?id wdt:P31/wdt:P279* ?rem. }
{{#if:{{{length|}}}|OPTIONAL { ?id wdt:P2043 ?length. } | }}
OPTIONAL { ?id wdt:P465 ?idhexcolor. }
OPTIONAL { ?id wdt:P462 ?color.