Revision [1940]
This is an old revision of SandBox made by DarTar on 2009-02-28 07:56:03.
Table Markup Examples
NOTE
This feature is available since:
WikkaWiki 1.2
WikkaWiki 1.2
Something really simple
|=|Heading 1||Content 11||Content 12||
|=|Heading 2||Content 21||Content 22||
Heading 1 | Content 11 | Content 12 |
---|---|---|
Heading 2 | Content 21 | Content 22 |
Perhaps it should be mentioned, that headings must be preceded by |=| and followed by || if the next cell should countain data ...
||Content 11||Content 12|=|Heading 1||
|=|Heading 2||Content 21||Content 22||
Content 11 | Content 12 | Heading 1 |
---|---|---|
Heading 2 | Content 21 | Content 22 |
Something simple with a caption
|?|Caption||
|=|Name|=|Number||
||Me||12||
||Someone||15||
Name | Number |
---|---|
Me | 12 |
Someone | 15 |
Spans
||(x:2;y:2)2x2||(x:2)2x1||(y:2)1x2||
||(y:2)1x2||1x1||
||1x1||1x1||(x:2)2x1||
2x2 | 2x1 | 1x2 | ||
1x2 | 1x1 | |||
1x1 | 1x1 | 2x1 |
Wikka markup within cells
||##Mono##||[[HomePage | Forced]]|| {{wikkaversion}}|| **##Bold mono##** ||
||//Italics//||===Heading===||++Strike++|| {{image url="http://wiki.tormodh.net/images/xml.png" alt="xml" title="xml feed"}}||
||SandBox escaped||embedded<sup>html</sup>||@@center@@||{{color c="red" text="testme"}}||
Mono | Forced | n/a | Bold mono |
Italics | Heading | Strike | ![]() |
SandBox escaped | embeddedhtml |
center
| testme |
Summary and caption
|!|(u:The Summary)||
|?|The Caption||
|=|Name|=|Number|=|(x:2)Span||
||John Smith||1||This||That||
||Jane Doe||2||That||This||
Name | Number | Span | |
---|---|---|---|
John Smith | 1 | This | That |
Jane Doe | 2 | That | This |
Summary, caption and scope
|!|(u:The Summary)||
|?|The Caption||
|=|(o:row)Name||John Smith||Jane Doe||
|=|(o:row)Number||1||2||
|=|(o:row;y:2)Span||This||That||
||That||This||
Name | John Smith | Jane Doe |
---|---|---|
Number | 1 | 2 |
Span | This | That |
That | This |
Summary, caption and scope
|!|(u:The number of employees and the foundation year of some imaginary companies.)||
|?|Table 1: Company data||
|||=|(o:col)Employees|=|(o:col)Founded||
|=|(o:row)ACME Inc||1000||1947||
|=|(o:row)XYZ Corp||2000||1973||
Employees | Founded | |
---|---|---|
ACME Inc | 1000 | 1947 |
XYZ Corp | 2000 | 1973 |
Table header, body and footer
|!|(u:A table with summary, caption, thead, tfoot and two tbody)||
|?|thead, tfoot, tbody, tbody||
|[|
|=|Name|=|Place|=|Telephone||
|]|
|=|Name|=|Place|=|Telephone||
|#|
||John Smith||New York||555-1234||
||Jane Smith||Loa Angeles||555-2345||
|#|
||John Doe||Unknown||Unknown||
||Jane Doe||Unknown||Unknown||
Name | Place | Telephone |
---|---|---|
Name | Place | Telephone |
John Smith | New York | 555-1234 |
Jane Smith | Loa Angeles | 555-2345 |
John Doe | Unknown | Unknown |
Jane Doe | Unknown | Unknown |
Styling with CSS selectors, 1
|!|{float:right}||
||(x:2;y:2){background-color:pink}2x2||(x:2){background-color:lightblue}2x1||(y:2){background-color:lightyellow}1x2||
||(y:2){background-color:lightyellow}1x2||{background-color:#333;color:white}1x1||
||{background-color:lightblue}1x1||{background-color:#333;color:white}1x1||(x:2){background-color:pink}2x1||
2x2 | 2x1 | 1x2 | ||
1x2 | 1x1 | |||
1x1 | 1x1 | 2x1 |
Styling with CSS selectors, 2
|!|(i:Hello;u:What a gorgeous table!){float:left}||
|?|Ohi, ohi, ohi, ohi!||
|[|
|=|(x:4){color:#000;font-size:150%;font-style:italic;font-family:Hoefler Text, Georgia;font-weight:normal;line-height:150%}Ephemere Quibus||
|#|
|=|(x:2)First things first|=|(x:2)Second things second||
||##Mono##||A [[WikiHome | forced link]] and an escaped CamelCase link|| {{wikkaversion}} (action generated content)|| **##Bold mono##** ||
||//Italics//||===Heading===||++Strike++|| {{image url="http://wiki.tormodh.net/images/xml.png" alt="xml" title="xml feed"}}||
||%%echo "Even some code!"%%||embedded<sup>html</sup>||>>Hello>>||(i:moah){background:#000;text-align:center;color:white}testme||
Ephemere Quibus | |||
---|---|---|---|
First things first | Second things second | ||
Mono | A forced link and an escaped CamelCase link | n/a (action generated content) | Bold mono |
Italics | Heading | Strike | ![]() |
echo "Even some code!" | embeddedhtml | Hello | testme |