2020ko Eusko Legebiltzarrerako hauteskundeak: berrikuspenen arteko aldeak

Ezabatutako edukia Gehitutako edukia
Oraina (eztabaida | ekarpenak)
2.994. lerroa:
"service": "geoshape",
"query": "SELECT ?city ?cityLabel (?city as ?id) (SAMPLE(?fill) as ?fill) (concat('% ', str(floor(?percent*100)/100)) as ?ehuneko) (concat('[[:eu:', ?cityLabel, ']] - ', ?ehuneko) as ?title) WHERE { ?item wdt:P361 wd:Q30594119. ?item wdt:P1831 ?total_voters . ?item p:P726 [ ps:P726 wd:Q2733414 ; pq:P1111 ?active_voters ]. ?item wdt:P1001 ?city. BIND (100*?active_voters/?total_voters AS ?percent) . BIND( if(?percent>= 20, '#cc0000', if(?percent>= 15, '#ff0000', if(?percent>= 10, '#ff3232', if(?percent>= 7.5, '#ff6666', if(?percent>= 5, '#ffb2b2', if(?percent>= 2.5, '#ffe5e5', '#eee'))))) ) as ?fill). SERVICE wikibase:label { bd:serviceParam wikibase:language 'eu'. } } GROUP BY ?city ?cityLabel ?percent" }]
|text=2020ko Eusko Legebiltzarreko hauteskundeetako parte-hartze datuak
* <div style='width:3em; margin-right:0.5em; float:left; background-color:#cc0000'>&nbsp;</div>>%20
* <div style='width:3em; margin-right:0.5em; float:left; background-color:#ff0000'>&nbsp;</div>%15-20
* <div style='width:3em; margin-right:0.5em; float:left; background-color:#ff3232'>&nbsp;</div>%10-15
* <div style='width:3em; margin-right:0.5em; float:left; background-color:#ff6666'>&nbsp;</div>%7,5-10
* <div style='width:3em; margin-right:0.5em; float:left; background-color:#ffb2b2'>&nbsp;</div>%5-7,5
* <div style='width:3em; margin-right:0.5em; float:left; background-color:#ffe5e5'>&nbsp;</div>%2,5-5
* <div style='width:3em; margin-right:0.5em; float:left; background-color:#eee'>&nbsp;</div><%2,5
</noinclude>
|width=910|height=600|align=center<noinclude>|longitude=-2.6|latitude=42.9|zoom=9</noinclude> }}
 
==== Elkarrekin Podemos ====
{{#tag:mapframe|
[{
"type": "ExternalData",
"service": "geoline",
"ids": "Q3995"
},
{
"type": "ExternalData",
"properties": {
"stroke": "#666",
"stroke-opacity": 1,
"stroke-width": 0.4,
"fill-opacity": 0.9
},
"service": "geoshape",
"query": "SELECT ?city ?cityLabel (?city as ?id) (SAMPLE(?fill) as ?fill) (concat('% ', str(floor(?percent*100)/100)) as ?ehuneko) (concat('[[:eu:', ?cityLabel, ']] - ', ?ehuneko) as ?title) WHERE { ?item wdt:P361 wd:Q30594119. ?item wdt:P1831 ?total_voters . ?item p:P726 [ ps:P726 wd:Q26409131 ; pq:P1111 ?active_voters ]. ?item wdt:P1001 ?city. BIND (100*?active_voters/?total_voters AS ?percent) . BIND( if(?percent>= 20, '#cc0000', if(?percent>= 15, '#ff0000', if(?percent>= 10, '#ff3232', if(?percent>= 7.5, '#ff6666', if(?percent>= 5, '#ffb2b2', if(?percent>= 2.5, '#ffe5e5', '#eee'))))) ) as ?fill). SERVICE wikibase:label { bd:serviceParam wikibase:language 'eu'. } } GROUP BY ?city ?cityLabel ?percent" }]
|text=2020ko Eusko Legebiltzarreko hauteskundeetako parte-hartze datuak
* <div style='width:3em; margin-right:0.5em; float:left; background-color:#cc0000'>&nbsp;</div>>%20