OlderSandbox
m (moved Sandbox/2 to OlderSandbox) |
|||
Line 1: | Line 1: | ||
More recent sandbox is at [[Sandbox]] | More recent sandbox is at [[Sandbox]] | ||
+ | |||
+ | == 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 | ||
+ | }} | ||
+ | |||
== SMW == | == SMW == |
Revision as of 16:28, 5 April 2010
More recent sandbox is at Sandbox
Contents |
Today query
Now is 11:10 (Which is Servertime-1) ?!
Let the weirdness begin:
* 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
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
- File:Episode One.bis.ogg
- File:Episode One.bis.ogg
- File:Episode One.bis.ogg
- Media:Episode One.bis.ogg
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 HackersWorkshops
Without recurring events:
There are currently no workshops scheduled.
Propose one!
With recurring events: There are currently no workshops scheduled.
Propose one!
SMW
Trying to find the correct date format for SMW, the following data are properties
2008-11-08 2008-10-10 2009-03-17 Jang deBlannen
Gallery Test
Modified at
{{#show: Sandbox | ?Modified at|?published on|?scheduled for| format=table}}
Persons
{{#show: Sandbox | ?Person| format=table}}
{{#show: {{PAGENAME}} | ?Person| format=plain}}
{{#ask: [[Category:Event]] | ?Person| format=table}}
{{#ask: [[Category:Person]] | ?firstname | ?lastname | ?url = homepage | format=vcard }}
Projects debugging
Category:Workshop
{{#ask:[[Category:Workshop||Event]] |mainlabel=Workshop | ? StartDate = When|? Location| ?Category |format=table|limit=5|outro=see our [[calendar]] for a complete list}}
see our calendar for a complete listWorkshop When Location Category 1. Large Hackerspace Convention (LHC) 27 August 2010 00:00:00 Conference
Pages with a map rendered by the Maps extension1st European Summit on the Future Internet 2 June 2010 09:30:00 Conference
Pages with a map rendered by the Maps extension1st anniversary Event 24 h electro for kids 2 15 January 2012 11:00:00 U19
Event
Pages with a map rendered by the Maps extension25ième Foire de l'Etudiant 10 November 2011 08:30:00 Event
Pages with a map rendered by the Maps extension… further results Events RSS
Semantic Maps
small map
Loading map...
Links
{{#show: Links | ?url | format=rss }}