[Pmwiki-users] Re: Need help with markup

Patrick R. Michaud pmichaud at sci.tamucc.edu
Sat Oct 19 11:16:08 CDT 2002


On Sat, 19 Oct 2002, Glenn Blalock wrote:

> I've followed this discussion with interest.  I can't contribute to the
> discussion about what will / won't / could / should be the markup you
> use for this.  However, as a Wiki user, I too find needs for the kinds
> of table control this addition would provide.  When / how will this be
> released / added?  

It's implemented in pmwiki-0.3.10.  (The latest version is 0.3.11, which
fixes a bug in the handling of blank lines in preformatted text sections.)

For TAMUCC users, this new version with table support is currently 
installed on both falcon.tamucc.edu and www.sci.tamucc.edu.  
To see why I implemented it, take a look at
   http://www.tamucc.edu/wiki/IO2/FacultyResources .

Here's what I finally ended up with (this doesn't appear in the markup docs
anywhere yet):

[[cell <attr>>]] - starts a new table cell.  The <attr> part is optional,
    and corresponds to what will appear in the HTML "TD" tag when the cell
    is created.  Example of useful attributes include:
	[[cell width='100']]		A cell 100 pixels wide
	[[cell align='center']]		Contents center-aligned
	[[cell valign='bottom']]	Contents bottom-aligned
	[[cell bgcolor='red']]		Cell with a red background color

[[cellnr <attr>]] - Same as above except it puts the cell in the first column
    of the next row ("nr") of the table.

[[table <attr>]] - Ends the current table (if any) and defines the
    attributes to be placed in the HTML "TABLE" tag for the next
    table to be created.  Examples of useful attributes:
	[[table width='100%' cellspacing='0' cellpadding='0' border='1']]
    Note that the table itself isn't started until the first [[cell]]
    or [[cellnr]] is encountered.

[[tableend]] - Ends the current table.

I still need to generate some good documentation for these features.
Actually it's about time for the "TipsForEditing" and 
"TextFormattingRules" documents to be revised/updated/redesigned to 
include the new markup tags.  Anyone want to take stabs at doing that...?  :-)

Pm





More information about the pmwiki-users mailing list