Wiki source for TableExamples


Show raw source

{{include tonguesTableExamples}}
[[HomePage]] > [[WikiIndex Wiki Index]]

{{image url="http://i620.photobucket.com/albums/tt284/transitionff/puppywrite.png" width="48"}}
====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==
||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||

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 '[[puppyversion|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
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki