Extension talk:TimelineTable
Contents |
[edit] Example?
Any chance of an example of the output? Even a screenshot would be nice...
Done! --192.44.242.18 06:15, 30 June 2010 (UTC)
[edit] Days possible?
Is it possible to create a more detailed timeline using days? e.g.
<timeline title="This is the title" footer="This is a timeline"> 2010-12-15|2011-01-06|holyday|Mr. Smith </timeline>
--83.135.50.227 20:52, 16 August 2010 (UTC)
- I am currently working on it...
--Thibaultmarin 17:13, 31 August 2010 (UTC)
- The new version can display timelines at a day-by-day level.
--Thibaultmarin 19:50, 1 September 2010 (UTC)
[edit] CSS does not work
I'm using modern skin. I already have copied the CSS sample into mediawiki:common.css. The only output is text - no lines, no color, no table.
Any fixes?
--87.123.142.68 12:07, 18 August 2010 (UTC)
- Copying the CSS sample into the MediaWiki:Common.css seems to work fine on my server MW 1.13.0 (even when using modern skin). Could you paste the content of your MediaWiki:Common.css?
--Thibaultmarin 19:50, 1 September 2010 (UTC)
[edit] Doesn't work on mediawiki 1.16
So, it shows: Deprecated: Function split() is deprecated in ...\extensions\TimeLineTable\timeline.php on line 130
Deprecated: Function split() is deprecated in ...\extensions\TimeLineTable\timeline.php on line 138
Deprecated: Function split() is deprecated in ...\extensions\TimeLineTable\timeline.php on line 140
Deprecated: Function split() is deprecated in ...\extensions\TimeLineTable\timeline.php on line 141
...
And what to do?
- Sorry for the delay, I'll try to fix this soon...
Thibaultmarin 17:35, 1 March 2011 (UTC)
- Version 1.6 should fix this.
Thibaultmarin 05:56, 2 March 2011 (UTC)
2011/04/13
I love this extension, but when I use anything other than a complete year, month, day, I get "Undefined offset: blah, blah" in the Process months section. Using MediaWiki 1.16.1, PHP 5.2.8, and 1.6 of TimelineTable.php. With the time span I need this is just too much to show on a page.
After I scroll down past all the error messages, I see that the table has in fact been nicely created, then more messages: "Warning: Cannot modify header information - headers already sent by (... blah blah ...TimelineTable.php"
- I can't seem to reproduce the error, could you paste your <timeline> input?
Thibaultmarin 04:50, 14 April 2011 (UTC)
Thanks!
This is an example of what gives me the error. I've also tried it with months but not days. Interesting that I get a completely different set of errors here if I leave out the , but that looks like another extension tripping up. <nowiki> <timeline title="Availability Through Retirement" footer="Product life Timeline"> 1998|2015|this is an event|next generation hardwired will support V2 devices |color:red; 1998|2015|this is yet another event|next generation hardwired will support V devices 2005|2015|event number three |this includes the Wireless System |color:black; 2009|2020|something else|no comment 2009|2020|Perimeter Monitoring|more 2011|2021|whatever|next generation wireless </timeline>
- The timeline table you provided is generated correctly (with no error) on the two mediawikis I have access to (MediaWiki 1.16.2, PHP 5.3.3-1 and MediaWiki 1.13.0, PHP 5.0.4). What extensions do you have enabled? Maybe switching other extensions off could help locate the problem.
Thibaultmarin 04:20, 15 April 2011 (UTC)
I tried disabling ALL the extensions I have installed but saw no changes in behavior. Puzzling.
Mickeyf 14:23, 18 April 2011 (UTC)
- I just read that this error might be due to spaces (or empty lines) around the <?php ... ?> block. Does removing the extra space help?
Thibaultmarin 05:09, 22 April 2011 (UTC)
I did have a couple of empty lines at the end of the file and removed them, but the behavior did not change.
- Version 1.7 might fix the problem (please let me know if it does).
Thibaultmarin 23:46, 20 May 2011 (UTC)
I have tried V 1.7 with the same sample used above. Now the only thing I get on the screen is "-1". It seems to be choking at "if ( isset($eventStart[1]) )"
- I uploaded the wrong file, the updated version seems to be working with php error messages enabled. Thanks for your patience.
Thibaultmarin 01:41, 25 May 2011 (UTC)
Does not seem to be working with MW 1.16.1 and php 5.2.8 (apache2handler) on local Windows Hosted wiki, but is now working with MW 1.16.1 and php 5.2.17 (cgi-fcgi) on ISP's linux hosted wiki, which is the one I care about - Thanks! And I can certainly be patient when I am benefiting from the generosity of someone else who's taken the trouble to write and debug a useful extension!
Mickeyf 21:25, 25 May 2011 (UTC)
[edit] Any chance for years only?
Is there a chance, or maybe a quick ('n' dirty) fix to show only years? For some timelines the months and day's are too much. (for example: the evolution of the internet)
- I am currently working on it...
Thibaultmarin 17:35, 1 March 2011 (UTC)
- Version 1.6 allows use of years only
Thibaultmarin 05:56, 2 March 2011 (UTC)
[edit] Changing name of extension to avoid conflict name
The name of the tag used by this extension <timeline> conflict with an other one (the one wich have a link in the bottom of the page) : « (easy)timeline » (using ploticus and so on).
So, I'm using both of them and I rename this one to use the tag <timelinetable></timelinetable> in my personal wiki.
I change the line 115 of timelinetable.php :
$wgParser->setHook( 'timelinetable', 'efTimelineRender' );
with «timelinetable» instead of «timeline».
--Vincent.vaquin 13:22, 28 October 2011 (UTC)
- Thanks for pointing that out, I have updated the tag to 'timelinetable'.
Thibaultmarin 05:47, 11 November 2011 (UTC)
[edit] Undefined index error
To avoid errors if any of the parameters is missing change the following lines:
$title = $args['title']; $footer = $args['footer'];
to
if(isset($args['title'])){ $title = $args['title']; } else { $title = ""; } if(isset($args['footer'])){ $footer = $args['footer']; } else { $footer = ""; }
/MikaelLindmark 22:42, 10 February 2012 (UTC)