cn::de::es::fr::gr::hu::it::ja::kr::nl::pl::pt::ru::se::us::vn::

HomePage > WikiIndex Wiki Index

 (image: http://i620.photobucket.com/albums/tt284/transitionff/puppywrite.png)

Using Tables in the Wiki

There are two styles of using Wikka's table mark up codes. The compact one-row-per-line and the expansive one-cell-per-line. The next row is always signaled by the double pipe followed by return ||. This can be confusing if a space is left after the pipes.

Plain, Cell Style and Global Style
onetwothree
puppylinuxsfs
funkychunkymonkey

onetwothree
cellsarestyled
funkychunkymonkey

onetwothree
puppylinuxsfs
hasglobalstyle

Both of the code examples below result in the tables above. The expansive code can be useful, especially if there many columns or column with a lot of text. Note, there is nothing to stop you mixing the code styles, for an example see the 'big list'.

Compact code:
||one||two||three||
||puppy||linux||sfs||
||funky||chunky||monkey||

|=|one|=|two|=|three||
||{background:blue}cells||{background:lightblue}are||{background:#eeeeff}styled||
||{background-row:lightblue}funky||chunky||monkey||

|!|{border:3px solid blue; background-color:lightblue}
|=|one|=|two|=|three||
||{background:blue}puppy||{background:lightblue}linux||{background:#eeeeff}sfs||
||{background-row:lightblue}has||global||style||


expansive code:
||one
||two
||three
||
||puppy
||linux
||sfs
||
||funky
||chunky
||monkey
||

|=|one
|=|two
|=|three
||
||{background:blue}cells
||{background:lightblue}are
||{background:#eeeeff}styled
||
||{background-row:lightblue}funky
||chunky
||monkey
||

|!|{border:3px solid blue; background-color:lightblue}
|=|one
|=|two
|=|three
||
||{background:blue}puppy
||{background:lightblue}linux
||{background:#eeeeff}sfs
||
||{background-row:lightblue}has
||global
||style
||


Indents
Using tab indents ~ with Table sometimes fails with the current version of Wikka


Categories
CategoryWiki
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki