Pitatable: Difference between revisions
Jump to navigation
Jump to search
Explaining the <pitatable> |
m just some punctuation <-- thx to WeblionX for the word \o/ |
||
| Line 9: | Line 9: | ||
*columns is mandatory, otherwise you won't get a table at all. It should be set to the number of columns your table uses. | *columns is mandatory, otherwise you won't get a table at all. It should be set to the number of columns your table uses. | ||
*headlines is optional | *headlines is optional | ||
** If not set no headlines will be used | ** If not set, no headlines will be used | ||
** for headlines do <nowiki><pitatable headlines="headline1;headline2;headline3"></nowiki> | ** for headlines do <nowiki><pitatable headlines="headline1;headline2;headline3"></nowiki> | ||
** for an empty headline between the others just use "hl1; ;hl3" or "hl2;;hl4" | ** for an empty headline between the others just use "hl1; ;hl3" or "hl2;;hl4" | ||
*headerbgcolor is optional | *headerbgcolor is optional | ||
** If headlines are used you can specify a backgroundcolor for the headlines.<br>by doing <nowiki><pitatable headerbgcolor="#009aff"></nowiki> | ** If headlines are used you can specify a backgroundcolor for the headlines.<br>by doing <nowiki><pitatable headerbgcolor="#009aff"></nowiki> | ||
** If not set the backgroundcolor for headlines is #888888 (darkgrey) (only when headlines are used) | ** If not set, the backgroundcolor for headlines is #888888 (darkgrey) (only when headlines are used) | ||
*headerfontcolor | *headerfontcolor | ||
** If headlines are used you can specify a fontdcolor for the headlines<br>by doing <nowiki><pitatable headerfontcolor="#009aff"></nowiki> | ** If headlines are used, you can specify a fontdcolor for the headlines<br>by doing <nowiki><pitatable headerfontcolor="#009aff"></nowiki> | ||
** If not set the fontcolor for headlines is #000000 (black) (only when headlines are used) | ** If not set, the fontcolor for headlines is #000000 (black) (only when headlines are used) | ||
*widths is optional | *widths is optional | ||
** If not set the minimum width for columns (which is the width of the largest column-entry) is used. | ** If not set, the minimum width for columns (which is the width of the largest column-entry) is used. | ||
** for custom widths (looks neater) do <nowiki><pitatable width="180;90;120"></nowiki> | ** for custom widths (looks neater) do <nowiki><pitatable width="180;90;120"></nowiki> | ||
** for a standard/minimum width just leave the width out ("180;;120") | ** for a standard/minimum width, just leave the width out ("180;;120") | ||
*aligns is optional | *aligns is optional | ||
**If not set the table is alligned as follows | **If not set, the table is alligned as follows | ||
***the first column is aligned left | ***the first column is aligned left | ||
***all other columns are centered | ***all other columns are centered | ||
| Line 29: | Line 29: | ||
**for a standard alignment just leave the alignment out ("right;;left") | **for a standard alignment just leave the alignment out ("right;;left") | ||
*color1 / color2 are optional | *color1 / color2 are optional | ||
** If not set the backgroundcolors of the rows will change every row between white and lightgrey | ** If not set, the backgroundcolors of the rows will change every row between white and lightgrey | ||
** If only color1 is set all rows will use this color. | ** If only color1 is set all rows will use this color. | ||
** If color1 and color2 are set the backgroundcolors of the rows will change every row between these two colors. | ** If color1 and color2 are set, the backgroundcolors of the rows will change every row between these two colors. | ||
*fontcolor is optional | *fontcolor is optional | ||
** If not set the fontcolor is #000000 (black) | ** If not set, the fontcolor is #000000 (black) | ||
*border1 / border2 are optional | *border1 / border2 are optional | ||
** border1 is the outside table border | ** border1 is the outside table border | ||
***If not set it will be 1px | ***If not set, it will be 1px | ||
** border2 is the inner table border | ** border2 is the inner table border | ||
***If not set it will be 0px | ***If not set, it will be 0px | ||
** both use positive values in px (pixel). | ** both use positive values in px (pixel). | ||
** a Value of 0 means there is no border | ** a Value of 0 means there is no border | ||
Revision as of 03:03, 23 November 2005
Within this wiki there is a customisation allowing users to create tables easily.
<pitatable columns=n> tabledata </pitatable>
There are a lot of args that can be used to customize the table.
- columns is mandatory, otherwise you won't get a table at all. It should be set to the number of columns your table uses.
- headlines is optional
- If not set, no headlines will be used
- for headlines do <pitatable headlines="headline1;headline2;headline3">
- for an empty headline between the others just use "hl1; ;hl3" or "hl2;;hl4"
- headerbgcolor is optional
- If headlines are used you can specify a backgroundcolor for the headlines.
by doing <pitatable headerbgcolor="#009aff"> - If not set, the backgroundcolor for headlines is #888888 (darkgrey) (only when headlines are used)
- If headlines are used you can specify a backgroundcolor for the headlines.
- headerfontcolor
- If headlines are used, you can specify a fontdcolor for the headlines
by doing <pitatable headerfontcolor="#009aff"> - If not set, the fontcolor for headlines is #000000 (black) (only when headlines are used)
- If headlines are used, you can specify a fontdcolor for the headlines
- widths is optional
- If not set, the minimum width for columns (which is the width of the largest column-entry) is used.
- for custom widths (looks neater) do <pitatable width="180;90;120">
- for a standard/minimum width, just leave the width out ("180;;120")
- aligns is optional
- If not set, the table is alligned as follows
- the first column is aligned left
- all other columns are centered
- for custom alignment do <pitatable aligns="right;center;left">
- for a standard alignment just leave the alignment out ("right;;left")
- If not set, the table is alligned as follows
- color1 / color2 are optional
- If not set, the backgroundcolors of the rows will change every row between white and lightgrey
- If only color1 is set all rows will use this color.
- If color1 and color2 are set, the backgroundcolors of the rows will change every row between these two colors.
- fontcolor is optional
- If not set, the fontcolor is #000000 (black)
- border1 / border2 are optional
- border1 is the outside table border
- If not set, it will be 1px
- border2 is the inner table border
- If not set, it will be 0px
- both use positive values in px (pixel).
- a Value of 0 means there is no border
- border1 is the outside table border
- delimiter is optional
- You can specify a certain delimiter for the tabledata
- the standard delimiter for tabledata is ;
A few examples
|
<pitatable columns=4 headlines="col 1;col 2;col 3;col 4"> row 1.1;row 1.2;row 1.3;row 1.4; row 2.1;row 2.2;row 2.3;row 2.4; row 3.1;row 3.2;row 3.3;row 3.4; row 4.1;row 4.2;row 4.3;row 4.4; row 5.1;row 5.2;row 5.3;row 5.4; row 6.1;row 6.2;row 6.3;row 6.4; row 7.1;row 7.2;row 7.3;row 7.4; </pitatable>
|
<pitatable columns=4 headlines="col 1;col 2;col 3;col 4" headerbgcolor="#0000FF" headerfontcolor="#FF0000" widths="60;70;80;90" aligns="center;;;" color1="orange" color2="skyblue" fontcolor="yellow" delimiter="\|"> row 1.1|row 1.2|row 1.3|row 1.4| row 2.1|row 2.2|row 2.3|row 2.4| row 3.1|row 3.2|row 3.3|row 3.4| row 4.1|row 4.2|row 4.3|row 4.4| row 5.1|row 5.2|row 5.3|row 5.4| row 6.1|row 6.2|row 6.3|row 6.4| row 7.1|row 7.2|row 7.3|row 7.4| </pitatable>
|
<pitatable border1=5 border2=3 columns=4 headlines="col 1;col 2;col 3;col 4" headerbgcolor="limegreen" headerfontcolor="#FF0000" widths="60;70;80;90" aligns="right;left;right;left" color1="#005a72" color2="725a00" fontcolor="orange" delimiter="\^"> row 1.1^row 1.2^row 1.3^row 1.4^ row 2.1^row 2.2^row 2.3^row 2.4^ row 3.1^row 3.2^row 3.3^row 3.4^ row 4.1^row 4.2^row 4.3^row 4.4^ row 5.1^row 5.2^row 5.3^row 5.4^ row 6.1^row 6.2^row 6.3^row 6.4^ row 7.1^row 7.2^row 7.3^row 7.4^ </pitatable>