Help talk:Timeline format/Archive

timelineposition today?
timelineposition=today is obviously gone. Was wondering why timelines on wikis I'm working on all of a sudden did look a little strange. oO

Is there any chance to get it back? That would actually be quite nice. Otherwise timeline/eventline doesn't really fit my use-cases anymore.

--Eric 19:55, 7 January 2012 (CET)
 * Agree with Eric. There are the same problems on my wiki too. Let's try to ask Jeroen. Yury Katkov 23:37, 8 January 2012 (CET)
 * Here is the .


 * This format basically needs a total rewrite which should indeed cater for this. There have been some mails on the userlist recently, too. Basically, all we need is time and money. Cheers --&#91;&#91;kgh&#93;&#93; 11:39, 9 January 2012 (CET)
 * For timeline=today you just need 1 line of code changed, since 'today' is the 'default' setting and support is still there. HTH - HAND BugBlue
 * Heiya BugBlue, thank you for your post. I will ask a coder to check and commit. To have this would be great, indeed. Cheers --&#91;&#91;kgh&#93;&#93; 00:00, 9 March 2012 (CET)
 * Heiya BugBlue, thank you for your post. I will ask a coder to check and commit. To have this would be great, indeed. Cheers --&#91;&#91;kgh&#93;&#93; 00:00, 9 March 2012 (CET)


 * Thanks for the fix! Just checked it in. --F.trott 22:38, 9 March 2012 (CET)


 * This doesn't appear to be fixed to me, or perhaps the code has changed since last year. "today" doesn't appear to do anything in the current code. I think it's defaulting to "middle". In line 228 of SemanticResultFormats/formats/timeline/SRF_Timeline.php I changed the 'today' case to:




 * With that change it appears to work. --Jamesmontalvo3 (talk) 23:54, 7 May 2013 (CEST)

Multiple Points From One Page
I am hoping to create a timeline from an existing page that already has dates and descriptions on one page, but it looks like in order to get this to work, I will need to create a separate page for each entry I want to display on the timeline. Is there anyway to make this work?
 * What happens when you insert a on that very page? Cheers --&#91;&#91;kgh&#93;&#93; 00:31, 14 March 2012 (CET)
 * Yes that works, but I can't get the dates to line up with the descriptions I have. For example, I have 10 dates and a description for those dates, but I can't put each date/line on a separate point on the timeline. So a line of |?News Date= only displays the most recent date property entered and the only description I have is the page name.
 * Ouch. I should have thought about this. Now I know the reason why I always use separate pages. I am afraid there is no work-around for this. Still you could write to the mailing list. Perhaps someone has an idea. Cheers --&#91;&#91;kgh&#93;&#93; 15:18, 14 March 2012 (CET)


 * I think you could use Semantic Internal Objects (SIO) to create grouped data. So for each date/description your SIO would look something like:




 * --Jamesmontalvo3 (talk) 23:20, 8 May 2013 (CEST)

timelineband value HOUR
I successfully use value HOUR in the timelinebands list, but this is not indicated in the help text.--Even Thorbergsen 22:18, 5 July 2012 (CEST)


 * Heiya Even, you are right, this was not documented. I also successfully tested MINUTE and added it, too. Thank you for noticing this. Cheers --&#91;&#91;kgh&#93;&#93; 01:36, 7 July 2012 (CEST)


 * With a little modification of the file SRF_Timeline.php in line 281 also centuries and millenia can be displayed:
 * $params['timelinebands']->addCriteria( new CriterionInArray( 'MILLENNIUM','CENTURY','DECADE', 'YEAR', 'MONTH', 'WEEK', 'DAY', 'HOUR', 'MINUTE' ) );
 * --Azchael (talk) 14:41, 30 March 2013 (CET)

Added ability to change event band color
I've modified SemanticResultFormats/Timeline to allow changing of colors of event duration bands. I modified three files: SRF_Timeline.php, ext.srf.timeline.js and SRF_Messages.php. The full code for each of these is below. Modify the color by including the parameter "durationcolor" in the #ask query, with values like "red", "blue", "#FFCC22", etc. Note, this only affects color on events with a start and end date.

There are still some issues:
 * 1) I don't like the way it handles the labels, with some labels not fitting inside the bands when they should fit. Some javascript magic in /extensions/SemanticResultFormats/formats/timeline/resources/SimileTimeline/scripts/painters.js around line 246 should do the trick.
 * 2) This is not working with Semantic Compound Queries, which is why I started this in the first place. I want to be able to say events of one category are red, and events of another category are blue. See the Semantic Compound Queries talk page for a discussion I started over there.

SemanticResultFormats/formats/timeline/SRF_Timeline.php

New code for SemanticResultFormats/formats/timeline/resources/ext.srf.timeline.js

In SemanticResultFormats/SRF_Messages.php add the following at line 100:

--Jamesmontalvo3 (talk) 00:40, 9 May 2013 (CEST)