Sandbox
m |
m (→Today query) |
||
Line 27: | Line 27: | ||
<pre> | <pre> | ||
− | {{#ask:[[Category:Event||ExternalEvent||Workshop|Meeting]] | + | {{#ask:[[Category:Event||ExternalEvent||Workshop||Meeting]] |
[[StartDate::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} 00:00]] | [[StartDate::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} 00:00]] | ||
[[StartDate::<{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} 23:59]] | [[StartDate::<{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} 23:59]] | ||
Line 37: | Line 37: | ||
| format=list | | format=list | ||
}} | }} | ||
− | |||
− | |||
</pre> | </pre> | ||
− | {{#ask:[[Category:Event||ExternalEvent||Workshop|Meeting]] | + | {{#ask:[[Category:Event||ExternalEvent||Workshop||Meeting]] |
− | + | ||
[[StartDate::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} 00:00]] | [[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: | ||
+ | {{#ask:[[Category:Event||ExternalEvent||Workshop||Meeting]] | ||
+ | [[StartDate::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} {{CURRENTTIME}}]] | ||
[[StartDate::<{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} 23:59]] | [[StartDate::<{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} 23:59]] | ||
| ?StartDate= | | ?StartDate= |
Revision as of 16:37, 8 November 2009
Contents |
Poll
<poll> Do you like this extension? Yes No I don't know yet. </poll>
Today query
Now is 21:53
A date that has a time is > than one that does not. :(
This should be a workable workaround
Debug Output by SMWSQLStore3
Generated Wiki-Query
[[Category:Event||ExternalEvent||Workshop||Meeting]] [[StartDate::≥23 November 2024 00:00:00]] [[StartDate::≤23 November 2024 23:59:00]]
Query Metrics
Query-Size:5Query-Depth:1
SQL Query
SELECT DISTINCT t7.smw_title AS t,t7.smw_namespace AS ns FROM `smw_object_ids` AS t7 INNER JOIN `smw_fpt_inst` AS t1 ON t7.smw_id=t1.s_id INNER JOIN `t2` AS t2 ON t1.o_id=t2.id INNER JOIN `smw_di_time` AS t3 ON t1.s_id=t3.s_id INNER JOIN `smw_di_time` AS t5 ON t1.s_id=t5.s_id WHERE (((t3.o_sortkey>='2460637.5') AND t3.p_id='59') AND ((t5.o_sortkey<='2460638.4993056') AND t5.p_id='59')) ORDER BY t3.o_sortkey ASC LIMIT 2 OFFSET 0;Auxilliary Tables Used
- Temporary table t2
Recursively computed hierarchy for element(s) ('490'),('465'),('1110').
Errors and Warnings
None{{#ask:[[Category:Event||ExternalEvent||Workshop||Meeting]] [[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:
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 HackersOlder Sandbox stuff on Sandbox/2