Sandbox

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
(Semantic Maps)
m (Maps)
 
(198 intermediate revisions by 5 users not shown)
Line 1: Line 1:
== OggHandler ==
+
== More Sandboxes ==
[[File:Episode One.bis.ogg|noicon]]
+
{{#ask: [[Category:Sandbox]] |format=ul}}
  
== amazon ==
+
Please only edit this page below this entry.
Note: if you don't see anything, maybe try turning Adblock off :D<br/>
+
Single box: <amazon type="single" asin="0764588877">Circuit Bending</amazon><br/>
+
Single direkt link without preview: <amazon type="link" asin="0141000511">Hackers</amazon><br/>
+
Single direkt link with preview: <amazon type="link" preview="true" asin="0764588877">Circuit Bending</amazon><br/>
+
Single search link: <amazon type="link" keywords="hacker, hacking" limitto="english-books">Books for Hackers</amazon>
+
  
== SMW ==
+
== modifying pages automatically ==
 +
Attendees of peacemissions 28C3:
 +
{{#arraymap: {{#ask:[[PeaceMissions 28C3]]
 +
|?Has attendee
 +
|format=list
 +
|limit=20
 +
|headers=hide
 +
|link=none
 +
|offset=0
 +
|mainlabel=-
 +
}}
 +
|,|x|{{#sub:x|5|0}}
 +
}}
  
Trying to find the correct date format for SMW, the following data are properties
+
* Do Announce: {{#show: PeaceMissions 28C3 | ?Do Announce |link=none | offset=0}}
 +
* U19: {{#show: PeaceMissions 28C3 | ?Is U19 |link=none | offset=0}}
  
[[scheduled for::2008-11-08]]
+
* {{#autoedit:form=Event
[[published on::2008-10-10]]
+
|target=PeaceMissions 28C3
[[held on:=2009-03-17]]
+
|link text=Do stuff (and reload)
[[person::Jang deBlannen]]
+
|query string=Event[attendees]={{#arraymap:  
 +
{{#ask:[[PeaceMissions 28C3]]
 +
|?Has attendee
 +
|format=list
 +
|limit=20
 +
|headers=hide
 +
|link=none
 +
|offset=0
 +
|mainlabel=-
 +
}}
 +
|,|x|{{#sub:x|5|0}}
 +
}}, {{#nickname:}} |query string=Event[announce]={{#show: PeaceMissions 28C3 | ?Do Announce |link=none | offset=0}}|query string=Event[u19]={{#show: PeaceMissions 28C3 | ?Is U19 |link=none | offset=0}} | reload }}
  
==Gallery Test==
+
* {{#autoedit:form=Event
<gallery>
+
|target=PeaceMissions 28C3
Image:FoodHacker_01.jpg|
+
|link text=Do stuff (and reload, ORIG)
Image:FoodHacker_02.jpg|
+
|query string=Event[attendees]={{#arraymap:
Image:C3l_new.png|
+
{{#ask:[[PeaceMissions 28C3]]
</gallery>
+
|?Has attendee
 +
|format=list
 +
|limit=20
 +
|headers=hide
 +
|link=none
 +
|offset=0
 +
|mainlabel=-
 +
}}
 +
|,|x|{{#sub:x|5|0}}
 +
}}, {{#nickname:}} | reload }}
  
==Modified at==
+
== Instant Commons ==
 +
[[Image:Finger Prints of The Gods by Graham Hancock.jpg|thumb]]
  
<pre>{{#show: Sandbox | ?Modified at|?published on|?scheduled for| format=table}}</pre>
+
== Time ==
{{#show: Sandbox | ?Modified at|?published on|?scheduled for| format=table}}
+
{{#show: 26C3 |?EndDate }}
 +
{{#ifexpr:{{#timel: U | {{{EndDate|}}} }}<{{#time: U }}|<div style="border: 2px solid #007A20; padding: 0.5em 1em 0.3em 0.5em; color: #007A20;">
 +
'''Note:''' this article is about a passed event.
 +
</div>|}}
 +
=== more time===
 +
{{#ifexpr: {{#timel: U | {{#show: 26C3 |?EndDate }} }} < {{#time: U }} |<div style="border: 2px solid #007A20; padding: 0.5em 1em 0.3em 0.5em; color: #007A20;">
 +
'''Note:''' this article is about a passed event.
 +
</div>|}}
 +
{|
 +
|-
 +
| test || test2
 +
|}
  
<!--<pre>{{#show: Sandbox | ?Modified at|?published on|?scheduled for| format=calendar}}</pre>
+
Time: {{#time: U }}<br/>
{{#show: Sandbox | ?Modified at|?published on|?scheduled for| format=calendar}}
+
Localtime: {{#timel: U }}
  
<pre>{{#show: Sandbox | ?Modified at|?published on|?scheduled for| format=debug}}</pre>
+
== QrCode ==
{{#show: Sandbox | ?Modified at|?published on|?scheduled for| format=debug}}-->
+
=== this page's url ===
 +
{{#qrcode:}}
 +
{{#qrcode: scheme=https }}
  
==Persons==
+
=== any other text and different settings ===
<pre>{{#show: Sandbox | ?Person| format=table}}</pre>
+
{{#qrcode: ecc=Q | size=4 | boundary=5 | label=YAQRC }}
{{#show: Sandbox | ?Person| format=table}}
+
{{#qrcode: ecc=L | size=3 | boundary=2 | label=NewTest }}
 +
{{#qrcode: ecc=L | size=3 | boundary=2 | label=http://www.google.com }}
 +
{{#qrcode: ecc=L | size=3 | boundary=2 | label=études en Ümläüt mes Ömis }}
  
<pre>{{#show: {{PAGENAME}} | ?Person| format=plain}}</pre>
+
== Calendaring ==
{{#show: {{PAGENAME}} | ?Person| format=plain}}
+
=== all-time event timeline ===
 +
{{#ask:
 +
[[Category:Event||Project]] [[Is Recurring::no]]
 +
| ?StartDate=Start date
 +
| ?EndDate=End date
 +
| ?Has location=Location
 +
| sort=StartDate
 +
| order=desc
 +
| format=timeline
 +
| timelinebands=WEEK,MONTH
 +
| timelineposition=start
 +
| limit=342
 +
}}
 +
=== all-time press cutting timeline ===
 +
There are only so many press cuttings listed as have been semantically annotated.
 +
{{#ask:
 +
[[Is presscutting::true]]
 +
| mainlabel=-
 +
| ?Has heading
 +
| ?Has date
 +
| ?=File
 +
| sort=Has date
 +
| order=desc
 +
| format=timeline
 +
| timelinebands=WEEK,MONTH
 +
| timelineposition=start
 +
| limit=342
 +
}}
  
<pre>{{#ask: [[Category:Event]] | ?Person| format=table}}</pre>
+
=== Improving Event table ===
{{#ask: [[Category:Event]] | ?Person| format=table}}
+
'''Todo:''' Try to run a subquery, determining the nearest, specific date for recurrent events
 +
{{#ask:
 +
[[Category:Event]]
 +
[[EndDate::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} 00:00]]
 +
| mainlabel=Event
 +
| sort=StartDate
 +
| order=asc
 +
| format=broadtable
 +
| default=There are currently no events scheduled. See our '''[[Calendar]]''' page for previous events.
 +
| limit=6
 +
| outro=See our '''[[Calendar]]''' page for a complete list of events, additional formats and ways to [[Calendar#Add_your_Event|add yours]].
 +
| ? StartDate = From
 +
| ? EndDate = Till
 +
| ? Has location=Location}}
 +
 
 +
This is what is currently shown on the Frontpage, not showing recurring events.
 +
 
 +
{{#ask:
 +
[[Category:Event]] [[Is Recurring::no]] <!-- recurring events do not show the correct dates -->
 +
[[EndDate::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} 00:00]]
 +
| mainlabel=Event
 +
| sort=StartDate
 +
| order=asc
 +
| format=broadtable
 +
| default=There are currently no events scheduled. See our '''[[Calendar]]''' page for previous events.
 +
| limit=6
 +
| outro=See our '''[[Calendar]]''' page for a complete list of events, additional formats and ways to [[Calendar#Add_your_Event|add yours]].
 +
| ? StartDate = From
 +
| ? EndDate = Till
 +
| ? Has location=Location}}
 +
 
 +
== iCal in single Events ==
 +
{{#show: Ars Electronica 2010 |?Has location| ?StartDate = start |?EndDate = end |format=icalendar |icalendartitle= syn<sub>2</sub>cat event calendar}}
 +
 
 +
=== trying to implode stuff ===
 +
with <pre>{{#explode:{{#sub:{{{1}}}|3}}|{{!}}|0}}</pre>
 +
 
 +
{{#show: Ars Electronica 2010 |?Has Pagename |?Has location| ?StartDate = start |?EndDate = end |format=template |template=iCalSummary}}
  
<pre>{{#ask: [[Category:Person]]
+
== Maps  ==
  | ?firstname
+
{|
  | ?lastname
+
|-
  | ?url = homepage
+
! Google Maps !! OSM !! Openlayers !! Openlayers2 with tilde !! Openlayers with coordinates (old) !! Openlayers with onthefly geocoding !! Openlayers with coordinates
  | format=vcard
+
|-
}}</pre>
+
|
{{#ask: [[Category:Person]]
+
{{#display_point:
  | ?firstname
+
49.4796075928° N, 6.07754230499° E
  | ?lastname
+
| service=googlemaps
  | ?url = homepage
+
| zoom=10
  | format=table
+
| height=250
 +
| width=250
 +
| label=Label
 +
| title=Title
 +
}}
 +
|
 +
{{#display_point:
 +
49.4796075928° N, 6.07754230499° E
 +
| service=osm
 +
| zoom=10
 +
| height=250
 +
| width=250
 +
| controls=auto
 +
| label=Label
 +
| title=Title
 +
}}
 +
|
 +
{{
 +
#display_point:
 +
49.4796075928° N, 6.07754230499° E
 +
| service=openlayers
 +
| layers=osm,google-hybrid,nasa
 +
| zoom=10
 +
| height=250
 +
| width=250
 +
| label=Label
 +
| title=Title
 
}}
 
}}
{{#ask: [[Category:Person]]
+
|
  | ?firstname
+
{{#display_map:{{#show:Level2|?Has coordinates}}~{{Address|{{#show:Level2|?Has address}}|{{#show:Level2|?Has city}}|{{#show:Level2|?Has country}}}}~The event takes place here.;
  | ?lastname
+
|layers=osm-mapnik, osm-cyclemap
  | ?url = homepage
+
|service=openlayers
  | format=vcard
+
|width=250
 +
|height=250
 +
|controls=pan,zoom,type
 
}}
 
}}
 +
|
 +
{{#display_map:49.591600, 6.140700
 +
|layers=osm-mapnik, osm-cyclemap
 +
|service=openlayers
 +
|width=250
 +
|height=250
 +
|controls=pan,zoom,type
 +
}}
 +
|
 +
{{#display_map:address={{Address|{{#show:Level2|?Has address}}|{{#show:Level2|?Has city}}|{{#show:Level2|?Has country}} }}
 +
|layers=osm-mapnik, osm-cyclemap
 +
|service=openlayers
 +
|width=250
 +
|height=250
 +
|controls=pan,zoom,type
 +
}}
 +
|
 +
{{#display_map:{{#show:Level2|?Has coordinates}}
 +
|layers=osm-mapnik, osm-cyclemap
 +
|service=openlayers
 +
|width=250
 +
|height=250
 +
|controls=pan,zoom,type
 +
}}
 +
|-
 +
| Works || becomes static || issue with tiles || issue with geographic coordinates || OSM cannot handle the tilde operator || geocoding on the fly
 +
|}
  
==Projects debugging==
+
{{#show:Level2|?Has address}}
{{#ask: [[Category:Project]] [[ProjectStatus::running]] | ?intro= | format=ul }}
+
  
{{#ask:[[Category:Project]] [[ProjectStatus::running]]
+
{{Address|{{#show:Level2|?Has address}}|{{#show:Level2|?Has city}}|{{#show:Level2|?Has country}}}}
| mainlabel=Project
+
| sort=Modification date
+
| limit=2
+
| format=broadtable}}
+
  
==Category:Workshop==
+
{{#show:Level2|?Has coordinates}}~{{Address|{{#show:Level2|?Has address}}|{{#show:Level2|?Has city}}|{{#show:Level2|?Has country}}}}
<pre>{{#ask:[[Category:Workshop||Event]] |mainlabel=Workshop | ? StartDate = When|? Location|  
+
?Category |format=table|limit=5|outro=see our [[calendar]] for a complete list}}</pre>
+
  
{{#ask:[[Category:Workshop||Event]] |mainlabel = Workshop | ? StartDate = When
+
=== data from location ===
|? Location| ?Category| format=table| headers=show|limit=5|outro=see our [[calendar]] for a complete list}}
+
  
==Events RSS==
+
{{#show: Hackerspace, Strassen|?Has coordinates}}~{{Address|{{#show:Hackerspace, Strassen|?Has address}}|{{#show:Hackerspace, Strassen|?Has city}}|{{#show:Hackerspace, Strassen|?Has country}}}}~The event takes place here.;
* {{#ask:[[Category:Event]] [[ExternalEvent::!yes]]|? StartDate = When|? Location |format=rss |searchlabel=RSS (Internal events only)}}
+
  
==Semantic Maps==
+
"{{#show:Hackerspace, Strassen|?Has country}}"
  
{{#ask:
+
{{#display_point:{{#show: Hackerspace, Strassen|?Has coordinates}}~{{Address|{{#show:Hackerspace, Strassen|?Has address}}|{{#show:Hackerspace, Strassen|?Has city}}|{{#show:Hackerspace, Strassen|?Has country}}}}~The event takes place here.;}}
[[Category:ExternalEvent]]
+
 
[[Has coordinates::+]]
+
==== Geocoding? ====
|limit=500
+
Munich is at: [[has coordinates::{{#geocode:Munich}}]]
|?Has coordinates
+
 
|format=openlayers
+
Editing maps with [[MapsSandbox|geocoding]] input field?
|service=yahoo
+
 
|?description
+
==== Extracting coordinates from locations ====
|width=600
+
* {{#show: BCC | ?Has coordinates}}
|height=300
+
 
|layers=bing,osm,yahoo,google
+
==== Complex multi-level queries ====
 +
 
 +
{{#ask: [[Hx2]]
 +
| ?Has waypoint
 +
| headers=hide
 +
| format=list
 +
| link=none
 +
| sep= $
 
}}
 
}}
  
 +
----
  
small map
+
{{#ask: [[Hx2]]
{{Location
+
| ?Has waypoint
| Coordinates=49.6162° N, 6.071° E
+
| format=list
 +
| template=Waypoints
 +
| link=none
 +
| sep="
 
}}
 
}}
  
==Links==
+
----
<pre>{{#show: Links | ?url | format=rss }}</pre>
+
 
{{#ask: [[Links]] | ?url | format=rss }}
+
{{#ask: [[Hx2]]
{{#show: Links | ?url | format=table }}
+
| ?Has waypoint
 +
| format=template
 +
| template=Waypoints
 +
| link=none
 +
| sep=/
 +
}}
 +
 
 +
----
 +
 
 +
{{#ask: [[Hx2]]
 +
| ?Has waypoint
 +
| format=ul
 +
| template=Waypoints
 +
| link=none
 +
| sep=/
 +
}}
 +
 
 +
----
 +
 
 +
<!--
 +
 
 +
{{#display_points:
 +
 
 +
{{#arraymap:
 +
 
 +
  {{#ask: [[Hx2]]
 +
  | ?Has waypoint
 +
  | format=list
 +
  | sep="
 +
  | link=none
 +
  }}
 +
 
 +
|"
 +
|x
 +
| {{#show: x | ?Has coordinates}}~text~more text;
 +
}}
 +
 
 +
|width=250
 +
|height=250
 +
|controls=small
 +
}}
 +
<br/>
 +
----
 +
 
 +
{{#display_point:
 +
{{#show: {{{location|}}} | ?Has address}}, {{#show: {{{location|}}} | ?Has city}}, {{#show: {{{location|}}} | ?Has country}}~{{Address | {{#show: {{{location|}}} | ?Has address }} | {{#show: {{{location|}}} | ?Has city}}|{{#show: {{{location|}}} | ?Has country}} }}~The event takes place here.;
 +
|width=250
 +
|height=250
 +
|controls=small
 +
}}
 +
{{#arraymap:{{{attendees|}}}|,|x|[[Has attendee::User:x|x]]}}
 +
-->
 +
 
 +
== Cite ==
 +
 
 +
"Alea jacta est" <ref>Julius Caesar: De bello gallico</ref>
 +
 
 +
==counting properties ==
 +
<pre>{{#ask: [[Mailing-Lists]] | ?Mailing list |format=count}} <br/></pre>
 +
At the moment of writing, this should be 5, and it is: {{#ask: [[Mailing-Lists]] | ?Mailing list |format=count}} <br/>
 +
Either the query is wrong or SMW is very buggy.
 +
 
 +
If we list them, we see that it seems to be 1 page with 5 instances of that property:
 +
{{#ask: [[Mailing-Lists]] | ?Mailing list |format=ol}} <br/>
 +
 
 +
==tagcloud==
 +
 
 +
<tagcloud/>
 +
 
 +
==percentage meter==
 +
{{PercentageMeter|28|total=42}}
  
 +
----
 +
<references/>
  
<!-- amazon context links experiment -->
+
[[Category:Sandbox]]
<amazon type="context"></amazon>
+

Latest revision as of 12:48, 7 September 2014

Contents

[edit] More Sandboxes


Please only edit this page below this entry.

[edit] modifying pages automatically

Attendees of peacemissions 28C3: Lala, Sid, Muling, Gunstick, The metalgamer, Prometheus, Destructive, Kwisatz

  • Do Announce: yes
  • U19: no
  • Do stuff (and reload)
  • Do stuff (and reload, ORIG)

[edit] Instant Commons

[edit] Time

30 December 2009 00:00:00

[edit] more time

Note: this article is about a passed event.

test test2

Time: 1732507256
Localtime: 1732510856

[edit] QrCode

[edit] this page's url

QR-ee71b7d25b2eaf3caa9435d856bb7c22.png QR-ee71b7d25b2eaf3caa9435d856bb7c22.png

[edit] any other text and different settings

QR-c4cfa629bfa6dffe5dfbbc9e4965d050.png QR-308567c7408d009400eaff3fd8b61027.png QR-ed646a3334ca891fd3467db131372140.png QR-d67036abd87e13f51e0584ff21b70514.png

[edit] Calendaring

[edit] all-time event timeline

You need to have JavaScript enabled to view the interactive timeline. Further results for this query.

[edit] all-time press cutting timeline

There are only so many press cuttings listed as have been semantically annotated.

You need to have JavaScript enabled to view the interactive timeline. Further results for this query.

[edit] Improving Event table

Todo: Try to run a subquery, determining the nearest, specific date for recurrent events There are currently no events scheduled. See our Calendar page for previous events.

This is what is currently shown on the Frontpage, not showing recurring events.

There are currently no events scheduled. See our Calendar page for previous events.

[edit] iCal in single Events

… further results

[edit] trying to implode stuff

with
{{#explode:{{#sub:{{{1}}}|3}}|{{!}}|0}}



[edit] Maps

Google Maps OSM Openlayers Openlayers2 with tilde Openlayers with coordinates (old) Openlayers with onthefly geocoding Openlayers with coordinates
Loading map...
Loading map...
Loading map...
Loading map...
Loading map...
Loading map...
Loading map...
Works becomes static issue with tiles issue with geographic coordinates OSM cannot handle the tilde operator geocoding on the fly

87, route de Thionville

87, route de Thionville, Luxembourg, Luxembourg

49° 35' 29.76", 6° 8' 26.52"~87, route de Thionville, Luxembourg, Luxembourg

[edit] data from location

~11, rue du Cimetière, L-8018 Strassen, Luxembourg~The event takes place here.;

"Luxembourg"

Loading map...

[edit] Geocoding?

Munich is at: The following coordinate was not recognized: div><span class="errorbox">Fatal error: Failed to parse or geocode</span></div><br /><br />.The following coordinate was not recognized: div><span class="errorbox">Fatal error: Failed to parse or geocode</span></div><br /><br />.

Editing maps with geocoding input field?

[edit] Extracting coordinates from locations

[edit] Complex multi-level queries

Syn2cat goes Hx² (Pavillon Hueflach, Strassen$ Luftfahrtmuseum, Finowfurt, Germany)



Syn2cat goes Hx²


Syn2cat goes Hx²




Syn2cat goes Hx²


Syn2cat goes Hx²






[edit] Cite

"Alea jacta est" [1]

[edit] counting properties

{{#ask: [[Mailing-Lists]] | ?Mailing list |format=count}} <br/>

At the moment of writing, this should be 5, and it is: 1
Either the query is wrong or SMW is very buggy.

If we list them, we see that it seems to be 1 page with 5 instances of that property:

  1. Communicate (Mailing list syn2cat-announce, syn2cat-discuss, graffitiresearchlab)

[edit] tagcloud

<tagcloud/>

[edit] percentage meter

Pledged: € 28 (66.7%) Missing: € 14 (33.3%)



  1. Julius Caesar: De bello gallico
Personal tools
Namespaces

Variants
Actions
Navigation
syn2cat
Hackerspace
Activities
Initiatives
Community
Tools
Tools