MediaWikiTablePlugin Development

This is the topic to discuss development of download MediaWikiTablePlugin

help If you need support, go to Support.MediaWikiTablePlugin where you can ask questions and find answers to previously asked questions. warning If you want to report a bug, or a feature request, go to Tasks.MediaWikiTablePlugin where you can see already submitted issues and where you can submit a new bug report or feature request.

Active Items

Discussion

Michael,

Further to my comments on Tasks.Item1099 I installed the plugin and tried it against the Bounded Table.

It does it all, because one can add class= to any tag.

I also had a look on the inside of the code. Very neat, parsing it line by line in a state machine. In bounded table I worked table by table from the inside out. A lot more expensive I suspect.

The only thing I miss is the automatic oddrow/evenrow call on the <tr>. It is a nice touch in large tables with many rows. I notice mediawikitable adds the class mwTable without asking, so it does not appear totally out of whack.

The only thing I miss is the automatic oddrow/evenrow class on the <tr>. It is a nice touch in large tables with many rows. I notice mediawikitable adds the class mwTable without asking, so it does not appear totally out of whack.

Adding the oddrow/evenrow is not straight foreward, because the counter is valid/restarts within each table and needs to be saved on a stack untill the table is closed. Breaks the nice line-by-line algorithm. Have you thought about this? Is there another way of doing this? Is it of interest?

Thanks for the plugin. It's really neat. If I can have the oddrow/evenrow class, I will definitely abandon boundedtable.

-- BramVanOosterhout - 19 Feb 2009

Bram, yes even-odd row classes would be nice. Let me foswikify it (Tasks.Item8061) and then we can add this feature (Tasks.Item8062).

-- MichaelDaum - 19 Feb 2009

Okay it's a foswiki plugin now. Your turn smile

-- MichaelDaum - 19 Feb 2009

Boy, you are quick! I am still waiting for svn access, so I can do the bounded table thing. When I have access I struggle with svn I an not a developer, although I enjoy the challenge.

I did have a look at your code, and discover you do do the same thing as I did. table-by-table and then inside out. But after I had the table I did not go line by line.

where you say:
s/(^|[\n\r])(\s*{\|(?!.*?(^|[\n\r])\s*{\|).*?[\n\r]\s*\|})/$1.&_handleTable($web, $topic, $2)/ges)

I have a much more convoluted approach to do the same thing. The negative lookahead is neat.

Thanks for your prompt action. I'll give the even-odd row a shot as soon as I have svn access. whilst I wait I can pzzle over the algorithm.

23:39 - I've got the code. Just waiting for svn!

-- BramVanOosterhout - 19 Feb 2009
Topic revision: r7 - 20 Apr 2009, MichaelDaum - This page was cached on 15 Jan 2021 - 17:41.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy