Talk:Test

The code to display non-weekly repeating events within the 'This week' and 'Next week' columns simply won't work. Whilst valid for the daily reminder it was adapted (slightly more than copied & pasted) for a calendar-like display. Badly adapted, it turns out. A fix involving, for example for #ThemeMonday, the removal of a test for the current day-of-week, and for the rest choosing a range of dates within which this- and next-week's event will be displayed, will probably be the answer. Does this make sense? Bazbt3 (talk) 07:50, 20 November 2013 (EST)

I've had a go at #BookClub first. The calculation to determine where the 15th of the month fits in the week is pretty simple - if it works. Mediawiki day of week assumes 0 for a Sunday, 1 for Monday, 2 Tuesday, through to 6 for Saturday. Assuming the week start on Sunday 15th, 15-0=15 so #BookClub is on that Sunday. Working the other way, if today is Tuesday 11th, 11-2=9 so to reach the 15th, 15-9=6 which is Saturday. If today is Saturday 23, 23-6=17 which is outside the valid date range for the week. Here, have a photo of my rough working: https://photos.app.net/15522335/1 ... To work out the NEXT week's event position simply subtract 7 from the values. If this appears to be impenetrable nonsense well listen, I've got to maintain my position as App.net Wiki-fiddler, and everyone needs a hobby. :) Bazbt3 (talk) 16:28, 21 November 2013 (EST)

Done. If this works then the table on the Current events page can be replaced. The earliest the dynamic content referred to below will display is December 2nd 2013. Why? Here's a summary: You'd be correct assuming I'm not entirely confident. ;) Bazbt3 (talk) 17:56, 22 November 2013 (EST)
 * The most recent fix, #ThemeMonday, occurs every 2nd Monday of the month. 'This week' tests for a current date >day 7 and <day 15. If the condition is met there's a visible entry on the Monday line. 'Next week' subtracts 7 from the 2 previous values, i.e. looks ahead 7 days and shows content on the Monday line.
 * To recap, #BookClub tests for the 'This week' having a 15th, 'Next week' having an 8th, and puts the hashtag on the corresponding day's line. The formula is 'explained' in the previous edit.
 * The next 2nd Monday is December 9th, the next 15th is also in December. The week before both starts December 2nd. Make a note in your diary!

I think I did it. The events display on the correct 'next week' days, so it's good enough to move the page from Test to App.Net_Wiki:Current_events, so I did. The next hurdle is adding explanatory comments to the markup. Bazbt3 (talk) 16:11, 4 December 2013 (EST)