Revision [4205]

This is an old revision of TableAction made by JavaWoman on 2005-01-07 16:19:21.

 

Table Action


See also:
This is the development page for the Table action.
 

History

The original Table action available in Wikka was developed by JsnX as part of the original Wikka release. It provides a way to create a simple table.

This Table action has a number of drawbacks, however:
  1. It is awkward to use for anything but the most simple tables - mainly because it's an action, which is different from the common approach to table markup in many Wikis: Most WikiEngines that support tables provide a table markup instead of a "plugin"-like solution like this.
  1. Cell contents can't have Wikka markup (if they do, the markup is shown as raw text instead of formatted).
  1. The action does not actually produce data table markup (which it should).

Preliminary solution

There is an ongoing discussion about providing true table markup in Wikka:

Clearly, we need a better solution that the current action, preferably true table markup syntax.
However, it would be unwise to hurry into a "preliminary" markup, as it could easily lead to confusion among our user base (as well as needless conversions down the line), and extra work for the developers.
Instead, we should first determine what we want to be able to do in terms of table markup, and then look if we can find a simpler preliminary solution (a subset of that markup) that still enables us to get there. And any preliminary solution should at least address the problem of ease-of-use and generating data table markup.

So, since we haven't come to any conclusion about "Wikka table markup" yet, we won't have a preliminary Wikka table markup either. Still, there is a clear need for an easier way to produce HTML tables from Wikka code. So I've investigated whether it was possible to extend the current Table action to provide more flexibility and address the major drawbacks at least partially. I was glad to find it wasn't all that hard.

I'm presenting here a rewrite of the Table action and a minor patch to the main wikka.php file (which could benefit other actions as well). It's far from a perfect solution for producing tables - but it's a lot more flexible and easier to use than the current table action. So I'm hoping this can tide us over until we embark on true table markup.

New Table action
[later]

Patch for wikka.php
[later]

Examples
[later]

Comments?

[later - and please wait till tis page is finished!]


CategoryDevelopment
There are 8 comments on this page. [Show comments]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki