Sandbox

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
m (Today query)
m (Today query)
Line 10: Line 10:
 
== Today query ==
 
== Today query ==
  
Now is {{CURRENTTIME}}
+
Now is {{CURRENTTIME}} (Which is Servertime-1) ?!
  
 
A date that has a time is > than one that does not. :(<br/>
 
A date that has a time is > than one that does not. :(<br/>
This should be a workable workaround
+
This should be a workable workaround:
 
+
{{#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=debug
+
}}
+
  
 
<pre>
 
<pre>
Line 52: Line 40:
 
}}
 
}}
  
And with Currenttime instead of 00:00: (which isn't really what the TODAY query is about.
+
And with Currenttime instead of 00:00: (which isn't really what the TODAY query is all about.)
 
{{#ask:[[Category:Event||ExternalEvent||Workshop||Meeting]]
 
{{#ask:[[Category:Event||ExternalEvent||Workshop||Meeting]]
 
[[Is Recurring::no]]
 
[[Is Recurring::no]]

Revision as of 17:47, 8 November 2009

Contents

Poll

<poll> Do you like this extension? Yes No I don't know yet. </poll>

Today query

Now is 08:04 (Which is Servertime-1) ?!

A date that has a time is > than one that does not. :(
This should be a workable workaround:

{{#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
}}


And with Currenttime instead of 00:00: (which isn't really what the TODAY query is all about.)


As well as a NOW query: NOW: Arduino Soldering (15 March 2009 15:00:00)

External Data

asking for events from our wiki {{#get_external_data:https://www.hackerspace.lu/wiki/Special:Ask?title=Special%3AAsk&q=%0D%0AStartDate::+&po=%3FStartDate&sc=0&eq=yes&p=format%3Dcsv&sep=%3D,|CSV with Header|event=|startdate=StartDate}} {{#for_external_table: * {{{event}}} starts on {{{startdate}}}
}}

asking for external data from hackerspaces.org {{#get_external_data:http://hackerspaces.org/wiki/Special:Ask?title=Special%3AAsk&q=%0D%0A&po=%3FStart%20date%0D%0A%3Ftitle%0D%0A&sc=0&eq=yes&p=format%3Dcsv&sep=%3D,%7CCSV with Header|event=title|startdate=Start date}} {{#for_external_table: * {{{event}}} has {{{startdate}}}
}}

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,%7Ccsv 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,%7Ccsv with header|bordered countries=borders|population=population|area=area}}

  • Germany has area {{#external_value:area}}.

OggHandler

FlashMP3

Howto: http://www.mediawiki.org/wiki/Extension:FlashMP3

Error: file 02 - Mineralogique.mp3 not found


amazon

Note: if you don't see anything, maybe try turning Adblock off :D
Single box:
Single direkt link without preview: Hackers
Single direkt link with preview: Circuit Bending
Single search link: Books for Hackers

Older Sandbox stuff on Sandbox/2

Retrieved from "http://wiki.syn2cat.lu/w/index.php?title=Sandbox&oldid=5627"
Personal tools
Namespaces

Variants
Actions
Navigation
syn2cat
Hackerspace
Activities
Initiatives
Community
Tools
Tools