Main Page: Difference between revisions

From Semantic Name Authority Repository Cymru
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:




{| width=100%
{{Graph:Chart | item = [[:d:Q2481549|pro forma]] | xaxistitle = month | yaxistitle = passengers (thousands) | x = 1,2,3,4,5,6,7,8,9,10,11,12 | y1= 6463,6360,7411,6664,6945,6790,7150,8089,7041,7482,7432,7068 | y2= 6726,6489,7818,6564,6968,7089,7175,7994,7294,7090,7247,6871 | y3= 6568,5678,2748 | y1title=2018 | y2title=2019 | y3title=2020 | type = line | width = 600 | heigth = 200 | legend = passengers per month | showvalues = fontsize:10,offset:5,angle:90 }}
| width=50% |
{{Graph:Pie chart
| height=50
| title= Type of place
| valueColumn=count
| labelColumn=instanceLabel
| query=
SELECT ?instance ?instanceLabel ?count { {
    SELECT ?instance (COUNT(DISTINCT ?item) as ?count) {
          {?item wdt:P131 wd:Q25 . }
  UNION { ?item wdt:P131 ?pob . ?pob wdt:P131* wd:Q25 }
          ?item  wdt:P31 ?instance.}
    GROUP BY ?instance
    HAVING (?count > 100)}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } }
ORDER BY DESC(?count)
LIMIT 15
OFFSET 0
}}

Revision as of 10:40, 20 December 2022

SNARC Stats:
  Number of pages 130,944  
  User total 2  
  Active users list 1  
  Administrators 1  
  Users/administrator 1  


NLW Wikibase....aim to produce UI like this


<templatestyles src="Graph:Chart/styles.css"></templatestyles><graph>{"legends":[{"stroke":"color","title":"passengers per month","fill":"color"}],"scales":[{"type":"linear","name":"x","domain":{"data":"chart","field":"x"},"zero":false,"range":"width","nice":true},{"type":"linear","name":"y","domain":{"data":"chart","field":"y"},"zero":false,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":"category10"}],"version":2,"marks":[{"type":"group","marks":[{"properties":{"hover":{"stroke":{"value":"red"}},"update":{"stroke":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"x":{"scale":"x","field":"x"},"stroke":{"scale":"color","field":"series"},"strokeWidth":{"value":2.5}}},"type":"line"}],"from":{"data":"chart","transform":[{"groupby":["series"],"type":"facet"}]}}],"height":200,"axes":[{"type":"x","scale":"x","format":"d","properties":{"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","scale":"y","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false}],"data":[{"format":{"parse":{"y":"integer","x":"integer"},"type":"json"},"name":"chart","values":[{"y":6463,"series":"y1","x":1},{"y":6360,"series":"y1","x":2},{"y":7411,"series":"y1","x":3},{"y":6664,"series":"y1","x":4},{"y":6945,"series":"y1","x":5},{"y":6790,"series":"y1","x":6},{"y":7150,"series":"y1","x":7},{"y":8089,"series":"y1","x":8},{"y":7041,"series":"y1","x":9},{"y":7482,"series":"y1","x":10},{"y":7432,"series":"y1","x":11},{"y":7068,"series":"y1","x":12},{"y":6726,"series":"y2","x":1},{"y":6489,"series":"y2","x":2},{"y":7818,"series":"y2","x":3},{"y":6564,"series":"y2","x":4},{"y":6968,"series":"y2","x":5},{"y":7089,"series":"y2","x":6},{"y":7175,"series":"y2","x":7},{"y":7994,"series":"y2","x":8},{"y":7294,"series":"y2","x":9},{"y":7090,"series":"y2","x":10},{"y":7247,"series":"y2","x":11},{"y":6871,"series":"y2","x":12},{"y":6568,"series":"y3","x":1},{"y":5678,"series":"y3","x":2},{"y":2748,"series":"y3","x":3}]}],"width":600}</graph>