From: Neill M. <ne...@nl...> - 2011-01-31 18:04:10
|
Okay, Just did an SVN checkout of SMW and it now works :) Perhaps it was a rogue space issue possibly. I was running SMW 1.5.5 alpha. Anyway sorted, that's the main thing :D Cheers Neill. On 31/01/11 17:04, Neill Mitchell wrote: > Hi Yaron. > > Okay, then do you know why every permutation of #set_recurring_event is > working with template parameters except for when the week number > parameter is used? > > I'm at a total loss here! > > Thanks > Neill. > > On 31/01/11 14:34, Yaron Koren wrote: >> Hi, >> >> #set_recurring_event doesn't parse template parameters - they've already >> been parsed by the time it's called. >> >> -Yaron >> >> On Mon, Jan 31, 2011 at 4:16 AM, Neill Mitchell<ne...@nl... >> <mailto:ne...@nl...>> wrote: >> >> Hi Yaron. >> >> If you use week number, it only then works with hard coded values, >> which isn't much use unfortunately. >> >> >> {{#set_recurring_event:property=Event Dates >> |start={{{Start Date|}}} >> |end={{{End Date|}}} >> |unit=month >> |week number=2 >> }} >> >> Doesn't work, but the following do: >> >> >> {{#set_recurring_event:property=Event Dates >> |start={{{Start Date|}}} >> |end={{{End Date|}}} >> |unit=daily >> |period={{{Period|}}} >> >> }} >> >> {{#set_recurring_event:property=Event Dates >> |start={{{Start Date|}}} >> |end={{{End Date|}}} >> |unit=week >> |period={{{Period|}}} >> >> }} >> >> {{#set_recurring_event:property=Event Dates >> |start={{{Start Date|}}} >> |end={{{End Date|}}} >> |unit=month >> |period={{{Period|}}} >> }} >> >> Only the week number one doesn't work. Is it a switch statement in >> the code? Perhaps the week number case does not parse template >> paramters when the cases others do? >> >> Cheers >> Neill. >> >> On 28/01/11 22:15, Yaron Koren wrote: >> >> Hi, >> >> I just tested this now, and it works fine for me - see here: >> >> http://discoursedb.org/w/index.php?title=Week_number_test&action=edit >> <http://discoursedb.org/w/index.php?title=Week_number_test&action=edit> >> <http://discoursedb.org/w/index.php?title=Week_number_test&action=edit >> <http://discoursedb.org/w/index.php?title=Week_number_test&action=edit>> >> >> <http://discoursedb.org/w/index.php?title=Week_number_test&action=edit >> <http://discoursedb.org/w/index.php?title=Week_number_test&action=edit>>And >> here: >> >> http://discoursedb.org/wiki/Special:Browse/Week_number_test >> >> <http://discoursedb.org/wiki/Special:Browse/Week_number_test>I >> have a >> slightly more recent version of SMW than you - maybe that's the >> issue? >> >> -Yaron >> >> >> On Fri, Jan 28, 2011 at 10:14 AM, Neill Mitchell >> <ne...@nl...<mailto:ne...@nl...> >> <mailto:ne...@nl...<mailto:ne...@nl...>>> >> wrote: >> >> Hi. >> >> I've got: >> >> {{#set_recurring_event:property=Event Dates >> |start={{{Start Date|}}} >> |end={{{End Date|}}} >> |unit=month >> |week number=2 >> }} >> >> According to the documentation this is supposed to set a >> recurring date >> of the 2nd week of every month. Unfortunately it does not >> seem to work. >> Only one value of Event Dates is set. >> >> This is with MW 1.16, SMW 1.5.5 and SF 2.0.9. >> >> Is this a bug? >> >> Thanks >> Neill. >> >> >> ------------------------------------------------------------------------------ >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD >> value)! >> Finally, a world-class log management solution at an even better >> price-free! >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >> February 28th, so secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsight-sfd2d >> _______________________________________________ >> Semediawiki-user mailing list >> Sem...@li... >> <mailto:Sem...@li...> >> <mailto:Sem...@li... >> <mailto:Sem...@li...>> >> >> https://lists.sourceforge.net/lists/listinfo/semediawiki-user >> >> >> >> >> -- >> WikiWorks · MediaWiki Consulting · http://wikiworks.com >> >> >> >> >> -- >> WikiWorks · MediaWiki Consulting · http://wikiworks.com > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > |