This JSPWikiStyle allows you to add alternate row coloring to your (large) tables. You can do this by simply enclosing the table inside %%zebra-table ... %% tags.
Example:
column-head1 | column-head2 |
---|---|
cell-data | cell data |
cell-data | cell data |
cell-data | cell data |
cell-data | cell data |
cell-data | cell data |
Basic syntax:
%%zebra-table ... %% %%zebra-<colorOdd> ... %% %%zebra-<colorOdd>-<colorEven> ... %%
You can specify the odd and/or even colors using html hex color values or HTMLColorNames like aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, yellow and transparent. When nothing specified, the odd rows get the css class '.odd'. (see your jspwiki.css to the actual formatting of this class)
Here is an example of a table with zebra style:
%%zebra-table || column-head1 || column-head2 | cell-data | cell data | cell-data | cell data | cell-data | cell data /%
column-head1 | column-head2 |
---|---|
cell-data | cell data |
cell-data | cell data |
cell-data | cell data |
column-head1 | column-head2 |
---|---|
cell-data | cell data |
cell-data | cell data |
cell-data | cell data |
cell-data | cell data |
cell-data | cell data |
column-head1 | column-head2 |
---|---|
cell-data | cell data |
cell-data | cell data |
cell-data | cell data |
cell-data | cell data |
cell-data | cell data |
column-head1 | column-head2 |
---|---|
cell-data | cell data |
cell-data | cell data |
cell-data | cell data |
cell-data | cell data |
cell-data | cell data |
See: JSPWikiStyle