Help talk:Eventline format

Timeline or eventline?
In the section Parameters: ... So a query with five data printouts would create five points on the timeline for each result. ...

Thanks. --Linforest 14:40, 15 March 2012 (CET)


 * Good catch. This was a copy and paste error. Thank you for reporting it. I have amended the documentation. Cheers --&#91;&#91;kgh&#93;&#93; 15:27, 15 March 2012 (CET)

Display Text
Is there any way to set the point labels to display something other than the page names from which the dates comes from; for example another semantic property within that page? Ashimema 10:55, 13 April 2012 (CEST)


 * Yes, do something like {{#ask: | mainlabel=- | ?Is some property | format=eventline ... Cheers --&#91;&#91;kgh&#93;&#93; 22:48, 13 April 2012 (CEST)

Hmm, Thanks for your reply kgh... maybe i'm being silly somwhere, but I can't for the life of me get this to work. My wikimarkup is as below, any further hints (I've tried changing the order of the parameters so the date parameter (Hosting Renewal in my case) comes above the 'mainlabel=-' declaration but that didn't seem to help.. the label I'm aiming to use is the "Customer ID"):

{{#ask: Hosting Renewal::+ | mainlabel=- | ?Customer ID  | ?Hosting Renewal | sort=Hosting Renewal | order=descending | format=eventline | timelinebands=WEEK,MONTH | timelineposition=today | limit=150 }} Ashimema 18:59, 16 April 2012 (CEST)

So, I've finally got back to this.. I've found that there is infact a bug.. The above code works correctly is used with the "timeline" format as apposed to the "eventline" format. If used with evetnline your faced with a completely blank box. Ashimema (talk) 21:16, 1 August 2012 (CEST)


 * This sounds ouch. :( The only other thing I can imagine is that you use this transcluded below the second header tab (in case you use the Header Tabs extension). However, in that case timeline would not work either. Did you file a bug report on bugzilla? --&#91;&#91;kgh&#93;&#93; (talk) 22:39, 1 August 2012 (CEST)

Hi kgh.. I've not yet submitted this as a bug as I thought I'd try to flesh out the reasoning with some experimentation first, though had intended to do so. For further information, I'm not using the Header Tabs extension in the wiki in question so I don't think it's related to a javascript conflict with this extension. Ashimema (talk) 23:36, 1 August 2012 (CEST)


 * Just want to add some clarifications, of course it is good to file a bug report but the other day I spoke with Jeroen whether we still want to deploy timeline (and eventline) and exhibit with SRF 1.8 and he said that we will deploy it but will put it to be inactive because their is no one who is maintaining these formats which means all bug reports relating to these formats are not likely receive a lot attentions. One reason is that if you look at the code it is really difficult to make any changes without harming its stability and the whole printer would have to be rewritten to ensure that it would work sanely with SMW/SRF 1.8 (which is the main focus now). Cheers --MWJames (talk) 23:15, 1 August 2012 (CEST)


 * I am very well aware of this. Still I see no reason not to file a bug report. Not reporting bug because nobody will care anyway in the near future does not seem to be an appealing solution to me. Actually this may already be said about a lot of the existing bugs. Cheers --&#91;&#91;kgh&#93;&#93; (talk) 23:32, 1 August 2012 (CEST)

Hmmm, I had a feeling that support for this format was going to dwindle with no current maintainer. I'm going to take a look at the code to see if there's anything I can work out myself.. My main experience is with perl however, so i'm not keeping my fingers crossed at the moment. I wonder why no-one has stepped forward to maintain it... I can't be the only one using it surely? Ashimema (talk) 23:36, 1 August 2012 (CEST)


 * Karsten, by no means is one to be discouraged to create bug reports but in interests of a honest and fair environment to judge possible influencing factors, we should make the user aware of any mitigating circumstances so he/she is able to evaluate the current situation and ensures the environment those printers are used.


 * Ashimema, I'd be great you if you would try to tackle this, we always try to encourage users to help other users because looking at the commit history over the last months it was only Jeroen, Stephan and myself who where actually making enhancements and help is alwasy appreciated. If you don't mind here some hints on where to start, since the code basis in SRF 1.6/1.7 have significantly changed:
 * Writing result printers is the first resource for a printer introduction
 * The current SRF 1.8 git commit, hosts the sparkline format (SemanticResultFormats/formats/sparkline) which is the simplest of all implementations that uses a plug-in and the ResourceLoader (since timeline/eventline would need that due to its JavaScript). It is implemented in way that php code is just under 100 lines and the JavaScript just under 30 lines of code and should make it fairly easy to understand how current printers are using the ResourceLoader (I hope that the inline comments will help but be aware instead of SMWAggregatablePrinter you need SMWResultPrinter as extending class because you want to have all query return result information available at the time you manipulate the output for JavaScript).
 * Have a look at the class description available under to understand class dependencies.
 * In general php inline JavaScript is discouraged and is not excepted in SRF 1.8 anymore.
 * Cheers, --MWJames (talk) 05:13, 2 August 2012 (CEST)

Is there a fix for that? I tried it with {{#ask:Datum::+ betrifft Charakter::{{FULLPAGENAME}} }} But the timeline only shows that dates, not the "?Bezeichnung" marker in the timeline. With eventline, it doesn't work at all. Any ideas ? Heinrich krebs (talk) 12:03, 17 April 2014 (CEST)
 * ?Bezeichnung
 * ?Datum
 * format=timeline
 * mainlabel=-
 * intro= Zeitstrahl
 * timelinesize=100px
 * timelineposition=middle
 * timelineend=end
 * timelinebands=YEAR

Pre AD Years
Any news date referenced on an article prior to year 1000AD does not seem to work. I am trying to work on timelines in BCE times. Any suggestions?--Paulreed 21:33, 13 April 2012 (CEST)
 * This might very well be a limitation of this result format or a bug. This result format will have to be redone along with timeline. So far there does not seem to be a way out. Cheers --&#91;&#91;kgh&#93;&#93; 22:33, 13 April 2012 (CEST)