Sandbox

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
m (Geocoding?)
Line 3: Line 3:
  
 
Please only edit this page below this entry.
 
Please only edit this page below this entry.
 +
== Improving Event table ==
 +
Try to run a subquery, determining the nearest date for recurrent events
 +
{{#ask:
 +
[[Category:Event||ExternalEvent||Workshop||Meeting]] [[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}}
  
 
== Maps  ==
 
== Maps  ==
Line 72: Line 87:
  
 
{{PercentageMeterFun|1984|total=2010}}
 
{{PercentageMeterFun|1984|total=2010}}
 
== Today query ==
 
 
Now is {{CURRENTTIME}} (Which is Servertime-1) ?!
 
 
Let the weirdness begin:
 
 
<pre>
 
    * This page was last modified on 20 November 2009, at 18:31.
 
    * This page has been accessed 1,758 times.
 
    * Content is available under Attribution-Share Alike 3.0 Unported.
 
    * Privacy policy
 
    * About syn2cat - HackerSpace.lu
 
    * Disclaimers
 
 
Powered by MediaWiki 1.15.1
 
</pre>
 
 
A date that has a time is > than one that does not. :(<br/>
 
This should be a workable workaround:
 
 
<pre>
 
{{#ask:[[Category:Event||ExternalEvent||Workshop||Meeting]]
 
[[Is Recurring::no]]
 
[[StartDate::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} 00:00]]
 
[[StartDate::<{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} 23:59]]
 
| ?StartDate=
 
| intro='''TODAY''':_
 
| searchlabel=
 
| sort=StartDate
 
| limit=1
 
| format=list
 
}}
 
</pre>
 
{{#ask:[[Category:Event||ExternalEvent||Workshop||Meeting]]
 
[[Is Recurring::no]]
 
[[StartDate::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} 00:00]]
 
[[StartDate::<{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} 23:59]]
 
| ?StartDate=
 
| intro='''TODAY''':_
 
| searchlabel=
 
| sort=StartDate
 
| limit=3
 
| format=list
 
}}
 
 
And with Currenttime instead of 00:00: (which isn't really what the TODAY query is all about.)
 
{{#ask:[[Category:Event||ExternalEvent||Workshop||Meeting]]
 
[[Is Recurring::no]]
 
[[StartDate::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} {{CURRENTTIME}} ]]
 
[[StartDate::<{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} 23:59]]
 
| ?StartDate=
 
| intro='''TODAY''':_
 
| searchlabel=
 
| sort=StartDate
 
| limit=1
 
| format=list
 
}}
 
 
As well as a NOW query:
 
{{#ask:[[Category:Event||ExternalEvent||Workshop||Meeting]]
 
[[Is Recurring::no]]
 
[[StartDate::<{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} {{CURRENTTIME}} ]]
 
[[EndDate::<{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} {{CURRENTTIME}} ]]
 
| ?StartDate=
 
| intro='''NOW''':_
 
| searchlabel=
 
| sort=StartDate
 
| limit=1
 
| format=list
 
}}
 
 
==External Data ==
 
 
asking for events from our wiki
 
{{#get_external_data:https://www.hackerspace.lu/wiki/Special:Ask?title=Special%3AAsk&q=[[Category%3AEvent]]%0D%0A[[StartDate%3A%3A%2B]]&po=%3FStartDate&sc=0&eq=yes&p=format%3Dcsv&sep=%3D,|CSV with Header|event=|startdate=StartDate}}
 
{{#for_external_table: * {{{event}}} starts on {{{startdate}}} <br/> }}
 
 
asking for external data from hackerspaces.org
 
{{#get_external_data:http://hackerspaces.org/wiki/Special:Ask?title=Special%3AAsk&q=[[Category%3AEvent]]%0D%0A&po=%3FStart%20date%0D%0A%3Ftitle%0D%0A&sc=0&eq=yes&p=format%3Dcsv&sep=%3D,|CSV with Header|event=title|startdate=Start date}}
 
{{#for_external_table: * {{{event}}} has {{{startdate}}} <br> }}
 
 
asking for opendoors startdate from our wiki
 
{{#get_external_data:https://www.hackerspace.lu/wiki/Special:Ask/-5B-5BOpenDoors-5D-5D/-3FStartDate/-3FEndDate/format%3Dcsv/sep%3D,|csv with header|sdate=StartDate|edate=EndDate}}
 
* Opendoors has StartDate {{#external_value:sdate}} and ends on {{#external_value:edate}}
 
 
asking for smw sample data from semanticweb.org:
 
{{#get_external_data:http://semanticweb.org/wiki/Special:Ask/-5B-5BGermany-5D-5D/-3FBorders/-3FPopulation/-3FArea/format%3Dcsv/sep%3D,|csv with header|bordered countries=borders|population=population|area=area}}
 
* Germany has area {{#external_value:area}}.
 
 
== OggHandler ==
 
* [[File:Episode One.bis.ogg|noicon]]
 
* [[File:Episode One.bis.ogg|noplayer]]
 
* [[File:Episode One.bis.ogg|Download]]
 
* [[Media:Episode One.bis.ogg]]
 
 
== FlashMP3 ==
 
 
Howto: http://www.mediawiki.org/wiki/Extension:FlashMP3
 
 
* <flashmp3>02 - Mineralogique.mp3</flashmp3>
 
 
== amazon ==
 
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>
 
 
== Workshops ==
 
Without recurring events:
 
 
{{#ask: [[Category:Workshop]] [[Is Recurring::no]]
 
[[StartDate::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} 00:00]]
 
[[EndDate::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} {{CURRENTTIME}}]]
 
| mainlabel=Workshop
 
| sort=StartDate
 
| order=asc
 
| format=broadtable
 
| default=There are currently no workshops scheduled.<br/>[[Form:Workshop|Propose one]]!
 
| limit=99
 
| ? StartDate = From
 
| ? EndDate = Till
 
| ? Location
 
| ? Has Contact=Contact
 
}}
 
 
----
 
With recurring events:
 
{{#ask: [[Category:Workshop]]
 
[[StartDate::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} 00:00]]
 
[[EndDate::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} {{CURRENTTIME}}]]
 
| mainlabel=Workshop
 
| sort=StartDate
 
| order=asc
 
| format=broadtable
 
| default=There are currently no workshops scheduled.<br/>[[Form:Workshop|Propose one]]!
 
| limit=99
 
| ? StartDate = From
 
| ? EndDate = Till
 
| ? Location
 
| ? Has Contact=Contact
 
}}
 
  
 
----
 
----

Revision as of 17:28, 5 April 2010

Contents

More Sandboxes


Please only edit this page below this entry.

Improving Event table

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

Maps

Google Maps OSM Openlayers
Loading map...
Loading map...
Loading map...
Works becomes static works

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?

Cite

"Alea jacta est" [1]

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)

tagcloud

<tagcloud/>

percentage meter

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


Template:PercentageMeterFun


  1. Julius Caesar: De bello gallico
Personal tools
Namespaces

Variants
Actions
Navigation
syn2cat
Hackerspace
Activities
Initiatives
Community
Tools
Tools