tormodh's wiki : SimpleTables

Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

Revision [271]

Last edited on 2006-09-16 02:05:38 by tormodh
Additions:
~- Attributes cannot contain a closing parenthesis in its data. (##//**ie:** ""||(i:ident;t:title, do not use ) here)||"" will end attribute parsing at the first ''""")"""'' //##)
Deletions:
~- Attributes cannot contain a closing parenthesis in its data. (##//**ie:** ""||(i:ident;t:title, do not use ) here)||"" will end attribute parsing at the first ''"")""'' //##)


Revision [270]

Edited on 2006-09-16 02:05:07 by tormodh
Additions:
~- Attributes cannot contain a closing parenthesis in its data. (##//**ie:** ""||(i:ident;t:title, do not use ) here)||"" will end attribute parsing at the first ''"")""'' //##)
Deletions:
~- Attributes cannot contain a closing parenthesis in its data. (##//**ie:** ||(i:ident;t:title, do not use ) here)|| will end attribute parsing at the first ''"")""'' //##)


Revision [269]

Edited on 2006-09-16 02:04:39 by tormodh [update of desciption / usage]
Additions:
=====Simple Table markup for Wikka=====
>>==See also==
~- WikkaTables
~- TableAction
~- [[http://wiki.tormodh.net/SimpleTable my wiki / SimpleTable]]
==Test at==
~- [[http://wiki.tormodh.net/SandBox my testwiki]] running ##trunk## install with all SimpleTables features.
~- [[http://debug.wikkawiki.org/wikka.php?wakka=SimpleTablesSandBox more examples]]
==SVN==
''2006-06-21''
Patch committed to the SVN repository - to be included in ##1.1.7.0##:
~-Ticket:230
~-Changesets: [[http://wush.net/trac/wikka/changeset/129 129]], [[http://wush.net/trac/wikka/changeset/131 131]], [[http://wush.net/trac/wikka/changeset/132 132]]
Patched files:
~-##[[http://wush.net/trac/wikka/browser/trunk/css/wikka.css?rev=132&format=raw css/wikka.css]]##
~-##[[http://wush.net/trac/wikka/browser/trunk/formatters/wakka.php?rev=132&format=raw formatters/wakka.php]]##
>>
I've hacked together a simple table markup for WikkaWiki; it is working it's way from a "layout" table markup to an accessible data table markup.
Right now the markup should support most elements and attributes available in the ##xhtml## standard. This includes table header elements (##<th>##) and table data elements (##<td>##), table sections (##<thead>, <tbody>, <tfoot>, <col>, <colgroup>##) and caption (##<caption>##). Additionally these elements can be fleshed out with table spesific attributes (like cells spanning several columns and/or rows, table summary, ##scope## attributes for headers) in addition to general attributes (like ##id, class, title## and ##style##).
::c::
====Basic Usage====
>>
**Example:**
##""||Row 1 Column 1||Row 1 Column 2||Row 1 Column 3||""
""||Row 2 Column 1||Row 2 Column 2||Row 2 Column 3||""##
>>
**The table data delimiter is two pipes (''""||""'').**
~- Use the delimiter to start a new table, row and/or cell.
~- The current row is ended with a delimiter at the end of a line.
~- The table is ended by starting the next line with anything else than a new delimiter after ending a row.
>>
**Example:**
##""|=|Header Column 1|=|Header Column 2|=|Header Column 3||""
""||Row 2 Column 1||Row 2 Column 2||Row 2 Column 3||""##
>>
**The header cell delimiter is two pipes surrounding an equal sign (''""|=|""'').**
~- Use the delimiter to start a new table, row and/or cell.
~- Ending a cell/row can be done with the datacell delimiter.
::c::
===="Advanced" Usage====
There are two different parts to the advanced part of the table markup.
~1) The element delimiters
~1) The attribute ''thingey''
== Elements ==
Elements are marked with two pipes surrounding a character symbol. Some of these are probably only interresting if you plan on using complex and/or accessible tables.
>>
**Example:**
##""|!|""
""|?|The Caption||""
""|[|""
""|=|Header Column 1|=|Header Column 2||""
""|]|""
""|=|Footer Column 1|=|Footer Column 2||""
""|#|""
""||Row 1 Column 1||Row 1 Column 2||""
""||Row 2 Column 1||Row 2 Column 2||""##
>>
= The elements/symbols are: =
~- ''""||""'' - no symbol is the datacell element (##<td>##).
~- ''""|=|""'' - equals sign is the headercell element (##<th>##).
~- ''""|?|""'' - question mark is the caption element (##<caption>##).
~- ''""|!|""'' - exclamation mark is the table element, ''more on this later'' (##<table>##).
~- ''""|[|""'' - opening bracket is the table header element (##<thead>##).
~- ''""|]|""'' - closing bracket is the table footer element (##<tfoot>##).
~- ''""|#|""'' - hash is the table body element (##tbody>##).
~- ''""|-|""'' - dash is the column element (##<col>##).
~- ''""|_|""'' - underscore is the column group element (##<colgroup>##).
== Attributes ==
Attributes are specified between parenthesis ''"""("""'' and ''""")"""'', and defined by one character keys. The attributes are separated by semicolon.
>>
**Example:**
##(i:table2;u:Example table)
(t:A title;c:class differentclass)##
##""|!|(i:table2;u:Example table)||""
""|?|(t:Title for the caption)The Caption||""
""|[|""
""|=|Header Column 1|=|Header Column 2||""
""|]|""
""|=|Footer Column 1|=|Footer Column 2||""
""|#|""
""||Row 1 Column 1||Row 1 Column 2||""
""||Row 2 Column 1||Row 2 Column 2||""##
>>
= The attributes/keys are: =
::c::
====Known Issues====
~- Ending the table with a ''""||""'' delimiter without a newline adds another cell/column. (''//**ie:** if there is no more content after the table, or if there is a space after the delimiter//'').
~- Attributes cannot contain a closing parenthesis in its data. (##//**ie:** ||(i:ident;t:title, do not use ) here)|| will end attribute parsing at the first ''"")""'' //##)
----
Deletions:
=====Simple Tables Developement=====
Patch for scope attribute against 1.1.6.3 dev (trunk) is ==> http://temp.tormodh.net/simpletables_scope.patch


Revision [181]

The oldest known version of this page was created on 2006-06-19 23:56:21 by WikiAdmin [update of desciption / usage]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.2063 seconds