Main Page: Difference between revisions

From LHDB
Jump to navigation Jump to search
(Created page with "test andrzej <mapframe longitude="-110" latitude="52" zoom="3" width="400" height="300" text="Governors of US states with their party affiliation"> { "type": "ExternalData", "service": "geoshape", "query": "SELECT ?id ?head (SAMPLE(?img) as ?img_) (min(?partyId) as ?party) (if(?party = '0', '#800000', if(?party = '1', '#000080', '#008000')) as ?fill) (concat('[[w:', substr(str(?link),31,400), '{{!}}', ?headLabel, ']]') as ?title) (concat(?stateLabel, '\\n', 'Fi...")
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
test andrzej
<mapframe text="San Francisco museums" width="350" height="350" zoom="13" longitude="-122.3988" latitude="37.8013">
 
<mapframe longitude="-110" latitude="52" zoom="3" width="400" height="300" text="Governors of US states with their party affiliation">
{
{
   "type": "ExternalData",
   "type": "Feature",
   "service": "geoshape",
   "geometry": { "type": "Point", "coordinates": [-122.3988, 37.8013] },
  "query": "SELECT ?id ?head (SAMPLE(?img) as ?img_) (min(?partyId) as ?party) (if(?party = '0', '#800000', if(?party = '1', '#000080', '#008000')) as ?fill) (concat('[[w:', substr(str(?link),31,400),  '{{!}}', ?headLabel, ']]') as ?title) (concat(?stateLabel, '\\n', '[[File:', substr(str(?img_), 52, 400), '{{!}}200px]]') as ?description) WHERE { ?id wdt:P31 wd:Q35657 . ?id wdt:P6 ?head . ?head wdt:P102 ?party . BIND(if(?party = wd:Q29468, '0', if(?party = wd:Q29552, '1', '2')) as ?partyId) SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' . ?head rdfs:label ?headLabel . ?id rdfs:label ?stateLabel . } OPTIONAL { ?head wdt:P18 ?img . } ?link schema:about ?head . ?link schema:isPartOf <https://en.wikipedia.org/> .} GROUP BY ?id ?head ?headLabel ?link ?stateLabel"
  "properties": {
}
    "title": "[[w:Exploratorium|Exploratorium]]",
</mapframe>
    "description": "[[File:Giant_Mirror_at_the_Exploratorium.jpeg|200px]]",
 
    "marker-symbol": "museum",
test 2
    "marker-size": "large",
 
    "marker-color": "0050d0"
<mapframe width="500" height="270" longitude="79.030" latitude="-24.794" zoom="8" align="center">
  }
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {"fill": "#ff0000","fill-opacity": 0.7,"stroke-width": 0},
"geometry": {
"type": "Polygon",
"coordinates": [
[
  [77.926025390625, -25.150257104114733],
  [80.14251708984374, -25.150257104114733],
  [80.14251708984374, -24.43714786161562],
  [77.926025390625, -24.43714786161562],
  [77.926025390625, -25.150257104114733]
]
]
}
},
{
"type": "Feature",
"properties": {"stroke": "#fffa00","stroke-width": 5},
"geometry": {
"type": "LineString",
"coordinates": [
  [77.926025390625, -25.150257104114733],
  [80.14251708984374, -24.43714786161562]
]
}
},
{
"type": "Feature",
"properties": {"stroke": "#000000","stroke-width": 5},
"geometry": {
"type": "LineString",
"coordinates": [
  [77.926025390625, -24.43714786161562],
  [80.14251708984374, -25.150257104114733]
]
}
}
]
}
}
</mapframe>
</mapframe>

Latest revision as of 16:46, 10 March 2024

San Francisco museums