From: Micki K. <mic...@en...> - 2003-12-04 04:07:59
|
I'm looking at OldStyleTable and although I would hardly qualify as a phpwiki-savvy programmer, I think we can create a 'caption' attribute for OldStyleTable 's by straightforward, minimal mods to the OldStyleTable plugin. Not yet sure about NewStyleTables... one step at a time! Indeed, perhaps someone more savvy with the system can help enable those... do I hear rublings of the return of dairiki? :) Thanks, Micki At 10:15 PM -0500 12/3/03, Carsten Klapp wrote: >On Wednesday, December 3, 2003, at 10:18 am, Micki Kaufman wrote: > >>Hi phpwiki folks. >> >>After basing our documentation project (covering 1000s of pages) on >>the wiki, we're seeing amazing results. I'm available to discuss, >>etc., should anyone want to know more about how we use this awesome >>wiki. >> >>One thing I've been looking for is a way to associate a 'title' or >>'caption' with a table (either OldStyle or NewStyle), so that the >>title obeys the proper 'keep-with', etc., when the title is printed >>in our pdf workflow. >> >>I'd like a modification that allows: >>- one extra parameter within the table plugin called 'caption', like >> >> <?plugin OldStyleTable caption="Caption Text" >> >>- which renders its contents as >> ...<table> >> '<caption>Caption Text</caption>' >> <tr>... >> at the beginning of the table, before the first <tr> tag. >> >>This is valid html, and it will allow seriously cool functionality >>in our printed workflow - titles will remain with tables, >>automatically generate 'list of tables' at the top of each doc, >>etc. Real MSWord-kiiling stuff. >> >>Anyone have any ideas, or willing to help? This will be the first >>hardcore mod of our system that we'd have to carry forward, and >>logically I'd much prefer for this useful if obscure mod to be in >>the core code if folks find value to it. >> >>If no one would like to work on it, I'll begin the process of >>figuring it out and will offer it back to the code base once we're >>done. >> >>Thanks to all for making phpwiki continue to rock. >> >>Micki > > >Hi Micki, > >User-definable table captions sound like an awesome feature, I'm all for it! > >I'm not sure that this is something I can write, so if you or anyone >else figures out how to do it (add table captions and/or table >summary attribute) send me a patch and I'll gladly check it into the >PhpWiki CVS for everyone to have. > >Table captions are already defined in lib/HtmlElement.php, so I hope >it isn't too hard to add something to InlineParser or whatever else >needs to be modified. > >Carsten > >Ref.: >http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#h-11.2.2 -- Micki Kaufman Senior Project Manager Encoda Systems, Inc. mic...@en... phone: 212 303 4275 cell: 917 450-9137 http://www.encodasystems.com |