tormodh's wiki : SimpleTable

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

Revision [268]

Last edited on 2006-09-16 01:58:01 by tormodh [updated a bit]
Additions:
|=|(x:2)Core||
|=|(x:2)i18n||
|=|(x:2)Table cells||
|=|(x:2)Other Table elements||
""|!|(u:The summary)||""
""|?|(s:color:red;font-weight:bold)The Caption||""
""|=|Supervisor|=|(x:2)Employee||""
""|=|(y:3;o:row)Mae East||John Smith||555-1234||""
""|=|(y:2;o:row)Allister Baker||Frank Daniels||555-1237||""
|!|(u:The summary)||
|?|(s:color:red;font-weight:bold)The Caption||
|=|Supervisor|=|(x:2)Employee||
|=|(y:3;o:row)Mae East||John Smith||555-1234||
|=|(y:2;o:row)Allister Baker||Frank Daniels||555-1237||
Deletions:
|=(x:2)|Core||
|=(x:2)|i18n||
|=(x:2)|Table cells||
|=(x:2)|Other Table elements||
""|!(u:The summary)|""
""|?(s:color:red;font-weight:bold)|The Caption||""
""|=|Supervisor|=(x:2)|Employee||""
""|=(y:3;o:row)|Mae East||John Smith||555-1234||""
""|=(y:2;o:row)|Allister Baker||Frank Daniels||555-1237||""
|!(u:The summary)|
|?(s:color:red;font-weight:bold)|The Caption||
|=|Supervisor|=(x:2)|Employee||
|=(y:3;o:row)|Mae East||John Smith||555-1234||
|=(y:2;o:row)|Allister Baker||Frank Daniels||555-1237||


Revision [224]

Edited on 2006-07-13 11:20:57 by tormodh [col/colgroup]
Additions:
~- --[[http://temp.tormodh.net/wakka.against.r157.patch]]--
~- patch with colgroup/col tags: [[http://temp.tormodh.net/wakka.against.r158.patch]]
||<colgroup>||""|_|""||||
||<col />||""|-|""||Selfclosing - must not be closed!||
Deletions:
~- [[http://temp.tormodh.net/wakka.against.r157.patch]]


Revision [221]

Edited on 2006-07-06 15:28:57 by tormodh [col/colgroup]
Additions:
~- [[http://temp.tormodh.net/wakka.against.r157.patch]]


Revision [220]

Edited on 2006-07-06 15:21:13 by tormodh [col/colgroup]
Additions:
|]|
|=(x:2)|Core||
|=(x:2)|i18n||
|=(x:2)|Table cells||
|=(x:2)|Other Table elements||


Revision [215]

Edited on 2006-07-05 10:28:01 by tormodh [col/colgroup]
Additions:
<table class="wikka" summary="The summary">
<caption style="color:red;font-weight:bold">The Caption</caption>
<thead>
<tr><th>Supervisor</th><th colspan="2">Employee</th></tr>
<tbody>
<tr><th rowspan="3" scope="row">Mae East</th><td>John Smith</td><td>555-1234</td></tr>
Deletions:
<table class="wikka" summary="The summary"><caption style="color:red;font-weight:bold">The Caption</caption>
<thead><tr><th>Supervisor</th><th colspan="2">Employee</th></tr>
<tbody><tr><th rowspan="3" scope="row">Mae East</th><td>John Smith</td><td>555-1234</td></tr>


Revision [213]

Edited on 2006-07-04 10:23:34 by tormodh [col/colgroup]
Additions:
====Example wikka markup====
===Resulting HTML===
<table class="wikka" summary="The summary"><caption style="color:red;font-weight:bold">The Caption</caption>
<thead><tr><th>Supervisor</th><th colspan="2">Employee</th></tr>
<tr><th>Name</th><th>Name</th><th>Phone</th></tr>
</thead>
<tbody><tr><th rowspan="3" scope="row">Mae East</th><td>John Smith</td><td>555-1234</td></tr>
<tr><td>Frank Smith</td><td>555-1235</td></tr>
<tr><td>Daniel Smith</td><td>555-1236</td></tr>
<tr><th rowspan="2" scope="row">Allister Baker</th><td>Frank Daniels</td><td>555-1237</td></tr>
<tr><td>Jack Daniels</td><td>555-1238</td></tr>
</tbody>
</table>
===Result===
Deletions:
Example code are:


Revision [212]

Edited on 2006-07-04 10:21:07 by tormodh [col/colgroup]
Additions:
SimpleTable has gone through a rewrite. There now are a consistent style for the markup:
Pipe - optional symbol for element - optional parenthesis' enclosing list of attributes - pipe.
|?|Elements||
|=|""(X)HTML Element""|=|Markup code|=|Notes||
||<table>||""|!|""||Optional, only useful for adding attributes. **Must** be first in table markup if used. Should be on a line by itself.||
||<caption>||""|?|""||||
||<thead>||""|[|""||||
||<tfoot>||""|]|""||||
||<tbody>||""|#|""||||
||<tr>||none||Will be opened for each row of table cells.||
||<th>||""|=|""||||
||<td>||""||""||||
Attributes are on the form of:
key char - colon - value
|?|Attributes||
|=|Attribute|=|Markup key||
||id||i||
||title||t||
||class||c||
||style||s||
||colspan||x||
||rowspan||y||
||summary||u||
||xml:lang||l||
||scope||o||
||headers||h||
||abbr||a||
||axis||z||
||span||p||
||dir||d||
Example code are:
""|!(u:The summary)|""
""|?(s:color:red;font-weight:bold)|The Caption||""
""|[|""
""|=|Supervisor|=(x:2)|Employee||""
""|=|Name|=|Name|=|Phone||""
""|#|""
""|=(y:3;o:row)|Mae East||John Smith||555-1234||""
""||Frank Smith||555-1235||""
""||Daniel Smith||555-1236||""
""|=(y:2;o:row)|Allister Baker||Frank Daniels||555-1237||""
""||Jack Daniels||555-1238||""
|!(u:The summary)|
|?(s:color:red;font-weight:bold)|The Caption||
|[|
|=|Supervisor|=(x:2)|Employee||
|=|Name|=|Name|=|Phone||
|#|
|=(y:3;o:row)|Mae East||John Smith||555-1234||
||Frank Smith||555-1235||
||Daniel Smith||555-1236||
|=(y:2;o:row)|Allister Baker||Frank Daniels||555-1237||
||Jack Daniels||555-1238||
Deletions:
I'm working on expanding my [[Wikka:SimpleTables]] hack for [[http://www.wikkawiki.org/ WikkaWiki]]. On this install I've added header cells to the functionality. Normal data cells are started by a ''""||""'' and header cells are started by a ''""|=|""'' delimiter.
You need to close the last cell of each row, and you'll need at least one empty line after the table if there is another table following the current one.
Issue: Header and col/rowspan do++es not++ compute.
""|=2|Full name|=|Number||""
""||John||Smith||12||""
""||Jane||Doe||32||""
|=2|Full name|=|Number||
||John||Smith||12||
||Jane||Doe||32||
**note on rowspan/colspan:** is testing. can++not++ be combined with header. use ""|2,2|"" as delimiter for 2 by 2 cell. numbers are optional. ++bug makes comma optional too :/++
""|1,2|1x2|2|2x1||""
""||1x1|,2|1x2||""
""|2,0|2x1||""
|1,2|1x2|2|2x1||
||1x1|,2|1x2||
|2,0|2x1||
Styling is through CSS; the table is ""<table class="wikka">"" ; I've styled it with a simple boder on the table and border on the ""<td>"".
code for this update ++not yet published++ at Wikka:SimpleTables.
All code to do this is written by me and commented a bit.
**Patches and notes are at ""WikkaWiki"":** Wikka:SimpleTables.
Feel free to use.
++It is quite fragile. I'll strenghten it a bit right now++ :)
Example:
""||Header||Header 2||Header 3||""
""||Data||Data 2||Data 3||""
||Header||Header 2||Header 3||
||Data||Data 2||Data 3||
Some FormattingRules included:
""||====Hi====||So... broken, yes? No!||""
""||Data||@@Data@@||""
||====Hi====||So... broken, yes? No!||
||Data||@@Data@@||
More formatting:
""||====Hi====||>>So... broken, yes?>>||Hehe||""
""||Data||@@Data@@||#%ANY KEY#%||""
""||---F---o---r---c---e---d||{{color c="blue" text="This is a test."}}||""
||====Hi====||>>So... broken, yes?>>||Hehe||
||Data||@@Data@@||#%ANY KEY#%||
||---F---o---r---c---e---d||{{color c="blue" text="This is a test."}}||
Uneven table:
""||1||2||""
""||3||4||5||""
||1||2||
||3||4||5||
Two tables too close for comfort ''(not any more)'':
""||1||2||4||""
""||3||4||5||""
""||1||2||4||""
""||3||4||5||""
||1||2||4||
||3||4||5||
||1||2||4||
||3||4||5||
Not closed row ++(closes at start of next row)++:
""||W||X""
""||Y||Z||""
||W||X
||Y||Z||
Not closed table (closes at end of page):
""||W||X||""
""||Y||Z""
""----""
""Hahaha!""
||W||X||
||Y||Z
Hahaha!


Revision [143]

Edited on 2006-06-05 00:31:47 by tormodh [a bit update]
Additions:
You need to close the last cell of each row, and you'll need at least one empty line after the table if there is another table following the current one.
Issue: Header and col/rowspan do++es not++ compute.
**note on rowspan/colspan:** is testing. can++not++ be combined with header. use ""|2,2|"" as delimiter for 2 by 2 cell. numbers are optional. ++bug makes comma optional too :/++
""|1,2|1x2|2|2x1||""
""|2,0|2x1||""
|1,2|1x2|2|2x1||
|2,0|2x1||
code for this update ++not yet published++ at Wikka:SimpleTables.
All code to do this is written by me and commented a bit.
**Patches and notes are at ""WikkaWiki"":** Wikka:SimpleTables.
Deletions:
You need to close the last cell of the last row, and you'll need at least one empty line after the table if there is another table following the current one.
Bug: you'll need to close each row with a ++simple++ delimiter. ''""||""'' will do.
Issue: Header and col/rowspan does not compute.
**note on rowspan/colspan:** is testing. cannot be combined with header. use ""|2,2|"" as delimiter for 2 by 2 cell. numbers are optional. bug makes comma optional too :/
""|12|1x2|2|2x1||""
""|20|2x1||""
|12|1x2|2|2x1||
|20|2x1||
code for this update not yet published.
All code to do this is written by me and commented a bit; ++[[http://temp.tormodh.net/wakka.phps wakka.php source]]++.
**Patches and notes are at ""WikkaWiki"":** [[Wikka:SimpleTables]].


Revision [142]

Edited on 2006-06-05 00:28:11 by tormodh [a bit update]
Additions:
Two tables too close for comfort ''(not any more)'':
Not closed row ++(closes at start of next row)++:
Deletions:
Two tables too close for comfort:
Not closed row (closes at start of next row):


Revision [131]

Edited on 2006-06-03 01:47:40 by tormodh [updated notes on dev/test]
Additions:
You need to close the last cell of the last row, and you'll need at least one empty line after the table if there is another table following the current one.
Bug: you'll need to close each row with a ++simple++ delimiter. ''""||""'' will do.
Issue: Header and col/rowspan does not compute.
""|=2|Full name|=|Number||""
""||John||Smith||12||""
""||Jane||Doe||32||""
|=2|Full name|=|Number||
||John||Smith||12||
||Jane||Doe||32||
Deletions:
You need to close the last cell of the last row, unless you've got at least one empty line after the table (two if there is another table following the current one).


Revision [130]

Edited on 2006-06-03 01:41:09 by tormodh [updated notes on dev/test]
Additions:
**note on rowspan/colspan:** is testing. cannot be combined with header. use ""|2,2|"" as delimiter for 2 by 2 cell. numbers are optional. bug makes comma optional too :/
""|12|1x2|2|2x1||""
""||1x1|,2|1x2||""
""|20|2x1||""
|12|1x2|2|2x1||
||1x1|,2|1x2||
|20|2x1||


Revision [124]

Edited on 2006-06-02 22:53:38 by tormodh [update. test at SandBox]
Additions:
I'm working on expanding my [[Wikka:SimpleTables]] hack for [[http://www.wikkawiki.org/ WikkaWiki]]. On this install I've added header cells to the functionality. Normal data cells are started by a ''""||""'' and header cells are started by a ''""|=|""'' delimiter.
You need to close the last cell of the last row, unless you've got at least one empty line after the table (two if there is another table following the current one).
code for this update not yet published.
Deletions:
I missed [[SimpleTable]]s in Wikka, and being temporary blind, I missed the discussions at [[Wikka:WikkaTables]] and [[Wikka:TableAction]].
Anyway, I needed something simple... So I edited the "wakka" formatter to open a row with ""||"", and open a table if none were open yet. The subsequent ""||"" delimiters creates a new cell/column, unless if followed by a newline - then it would end the current row.
When a row has been ended; any other symbol than ""||"" would close the table. Two linefeeds is needed to seperate between two distinct tables.


Revision [114]

Edited on 2006-05-18 13:38:21 by tormodh [update. test at SandBox]
Additions:
~-[[Wikka:SimpleTables]]
All code to do this is written by me and commented a bit; ++[[http://temp.tormodh.net/wakka.phps wakka.php source]]++.
**Patches and notes are at ""WikkaWiki"":** [[Wikka:SimpleTables]].
Deletions:
~-Wikka:WikkaTables
~-Wikka:TableAction
All code to do this is written by me and commented a bit; [[http://temp.tormodh.net/wakka.phps wakka.php source]].


Revision [103]

Edited on 2006-05-08 08:46:58 by tormodh [update. test at SandBox]
Additions:
=====SimpleTable=====


Revision [82]

Edited on 2006-05-05 12:38:17 by tormodh [update. test at SandBox]
Additions:
>>===Practical Links===
~-Wikka:WikkaTables
~-Wikka:TableAction
~-SandBox
**Categories:** CategoryWikkaDevelopment
>>


Revision [78]

Edited on 2006-05-05 01:18:52 by tormodh [tackles actions too]
Additions:
""||---F---o---r---c---e---d||{{color c="blue" text="This is a test."}}||""
||---F---o---r---c---e---d||{{color c="blue" text="This is a test."}}||
Deletions:
""||---F---o---r---c---e---d||~1Haha~2Hoho||""
||---F---o---r---c---e---d||~1Haha~2Hoho||


Revision [76]

Edited on 2006-05-05 01:11:23 by tormodh [tackles actions too]
Additions:
++It is quite fragile. I'll strenghten it a bit right now++ :)
Deletions:
+It is quite fragile. I'll strenghten it a bit right now+ :)


Revision [75]

Edited on 2006-05-05 01:10:56 by tormodh [tackles actions too]
Additions:
+It is quite fragile. I'll strenghten it a bit right now+ :)
Deletions:
It is quite fragile. I'll strenghten it a bit right now :)


Revision [74]

Edited on 2006-05-05 01:02:33 by tormodh [tackles actions too]
Additions:
More formatting:
""||====Hi====||>>So... broken, yes?>>||Hehe||""
""||Data||@@Data@@||#%ANY KEY#%||""
""||---F---o---r---c---e---d||~1Haha~2Hoho||""
||====Hi====||>>So... broken, yes?>>||Hehe||
||Data||@@Data@@||#%ANY KEY#%||
||---F---o---r---c---e---d||~1Haha~2Hoho||



Full history for this page cannot be displayed within a single page, click here to view more.

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.3375 seconds