On Fri, Aug 02, 2002 at 12:27:19PM -0700, Daniel Mayer wrote:
In my view then, the goal of any wiki table mark-up should be to recreate the typical owl table in the most easy to learn and code wiki markup possible. The details on how to do this are not as important to me as the results.
Here goes:
[br=1,cs=0,al=r,cp=2|| [al=c,bc=pink| ''Owls''' |] [| [[image:Northern_Spotted_Owl.USFWS-thumb.jpg]] |] [al=c| Northern spotted owl |] [al=c,bc=pink| '''[[Scientific classification]]''' |] [| [al=c|| [| [[Kingdom (biology)|Kingdom]]: || [[Animalia]] |] [| [[Phylum]]: || [[Chordata]] |] [| [[Class (biology)|Class]]: || [[Aves]] |] [| [[Order (biology)|Order]]: || '''Strigiformes''' |] ||] |] [al=c,bc=pink| '''[[family (biology)|Families]]''' |] [| [|| [| [[Barn owl|Tytonidae]] - Barn owls |] [| [[Typical owl|Strigidae]] - Typical owls |] ||] |] ||]
Basic principles: - [%arg%|| ... ||] indicates a table (can be omitted if no arguments) - [%arg%| ... |] indicates a row, arguments hold for first cell - |%arg%| indicates beginning of next cell, arguments hold for this cell
Arguments: - table: al=align, bc=background-color, br=border, wd=width, cp=cellpadding, cs=cellspacing - cell: al=align, bc=background-color, cs=col-span, rs=rowspan, va=valign, wd=width - table rule: - no arguments -
It's lay-out independent so it can also be written Tarquin's cell-per-row format. It may look quite complicated but a simple table still looks like this:
[| a simple table || with two columns |] [| and two || rows |]
and even nested tables don't need to be difficult:
[| first a row with a single line |] [| [| then a || nested table |] [| with two || lines and two columns |] |] [| and finally again a single line |]
Any questions?
-- Jan Hidders