Difference: VarTABLE (1 vs. 3)

Revision 32013-09-25 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"

TABLE{ attributes } -- control attributes of tables and sorting of table columns

Line: 11 to 11
 
initsort Column to sort initially ("1" to number of columns). unspecified initsort="2"
initdirection Initial sorting direction for initsort, set to "up" (descending) or "down" (ascending). unspecified initdirection="up"
disableallsort Disable all sorting, both initsort and header sort. This is mainly used by plugins such as the EditTablePlugin to disable sorting in a table while editing the table. unspecified disableallsort="on"
Changed:
<
<
headerbg Header cell background colour. "#6b7f93" headerbg="#999999"
headerbgsorted Header cell background colour of a sorted column. the value of headerbg headerbgsorted="#32596c"
headercolor Header cell text colour. "#ffffff" headercolor="#0000cc"
databg Data cell background colour, a comma separated list. Specify "none" for no colour, that is to use the colour/background of the page the table is on. "#edf4f9,#ffffff" databg="#f2f2f2,#ffffff"
databgsorted Data cell background colour of a sorted column; see databg. the values of databg databgsorted="#d4e8e4,#e5f5ea"
datacolor Data cell text colour, a comma separated list. unspecified datacolor="#0000CC, #000000"
>
>
headerbg Header cell background color. "#6b7f93" headerbg="#999999"
headerbgsorted Header cell background color of a sorted column. the value of headerbg headerbgsorted="#32596c"
headercolor Header cell text color. "#ffffff" headercolor="#0000cc"
databg Data cell background color, a comma separated list. Specify "none" for no color, that is to use the color/background of the page the table is on. "#edf4f9,#ffffff" databg="#f2f2f2,#ffffff"
databgsorted Data cell background color of a sorted column; see databg. the values of databg databgsorted="#d4e8e4,#e5f5ea"
datacolor Data cell text color, a comma separated list. unspecified datacolor="#0000CC, #000000"
 
tableborder Table border width (pixels). "1" tableborder="2"
tableframe Table frame, set to "void" (no sides), "above" (the top side only), "below" (the bottom side only), "hsides" (the top and bottom sides only), "lhs" (the left-hand side only), "rhs" (the right-hand side only), "vsides" (the right and left sides only), "box" (all four sides), "border" (all four sides). unspecified tableframe="hsides"
tablerules Table rules, set to "none" (no rules), "groups" (rules will appear between row groups and column groups only), "rows" (rules will appear between rows only), "cols" (rules will appear between columns only), "all" (rules will appear between all rows and columns). unspecified tablerules="rows"
Line: 30 to 30
 
dataalign Data cell alignment, one value for all columns, or a comma separated list for different alignment of individual columns. Set to "left", "center", "right" or "justify". Overrides individual cell settings. unspecified dataalign="center"
tablewidth Table width: Percentage of window width, or absolute pixel value. unspecified tablewidth="100%"
columnwidths Column widths: Comma delimited list of column widths, percentage or absolute pixel value. unspecified columnwidths="80%,20%"
Changed:
<
<
headerrows Number of header rows to exclude from sort. (will be rendered in a HTML thead section) "1" headerrows="1"
>
>
headerrows Number of header rows to exclude from sort. (will be rendered in a HTML thead section) (determined automatically) headerrows="2"
 
footerrows Number of footer rows to exclude from sort. (will be rendered in a HTML tfoot section) "0" footerrows="1"
id Unique table identifier string, used for targeting a table with CSS. tableN (where N is the table order number on the page) id="userTable"
summary Table summary used by screenreaders: A summary of what the table presents. It should provide an orientation for someone who listens to the table. unspecified summary="List of subscribed users"

Revision 22012-11-15 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"

TABLE{ attributes } -- control attributes of tables and sorting of table columns

Line: 40 to 40
  %TABLE{ tableborder="0" cellpadding="4" cellspacing="3" cellborder="0" }%
| *A1* | *B1* |
| A2 | B2 |
Added:
>
>
 

Revision 12007-10-07 - TWikiContributor

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="TWikiVariables"

TABLE{ attributes } -- control attributes of tables and sorting of table columns

  • The %TABLE{}% variable is handled by the TablePlugin
  • Syntax: %TABLE{ attributes }%

  • Supported attributes:
    Argument Comment
    <-- -->
    Sorted descending
    Default value Example
    headervalign Vertical alignment of header cells; overrides valign. unspecified headervalign="top"
    datavalign Vertical alignment of data cells; overrides valign. unspecified datavalign="top"
    valign Vertical alignment of cells and headers, set to "top", "middle", "bottom" or "baseline". unspecified valign="top"
    id Unique table identifier string, used for targeting a table with CSS. tableN (where N is the table order number on the page) id="userTable"
    tablewidth Table width: Percentage of window width, or absolute pixel value. unspecified tablewidth="100%"
    summary Table summary used by screenreaders: A summary of what the table presents. It should provide an orientation for someone who listens to the table. unspecified summary="List of subscribed users"
    tablerules Table rules, set to "none" (no rules), "groups" (rules will appear between row groups and column groups only), "rows" (rules will appear between rows only), "cols" (rules will appear between columns only), "all" (rules will appear between all rows and columns). unspecified tablerules="rows"
    tableframe Table frame, set to "void" (no sides), "above" (the top side only), "below" (the bottom side only), "hsides" (the top and bottom sides only), "lhs" (the left-hand side only), "rhs" (the right-hand side only), "vsides" (the right and left sides only), "box" (all four sides), "border" (all four sides). unspecified tableframe="hsides"
    caption Table caption: A title that will be displayed just above the table. unspecified caption="Users"
    tableborder Table border width (pixels). "1" tableborder="2"
    sort Set table sorting by clicking headers "on" or "off". unspecified sort="on"
    headerrows Number of header rows to exclude from sort. (will be rendered in a HTML thead section) "1" headerrows="1"
    footerrows Number of footer rows to exclude from sort. (will be rendered in a HTML tfoot section) "0" footerrows="1"
    initdirection Initial sorting direction for initsort, set to "up" (descending) or "down" (ascending). unspecified initdirection="up"
    headercolor Header cell text colour. "#ffffff" headercolor="#0000cc"
    headerbg Header cell background colour. "#6b7f93" headerbg="#999999"
    headerbgsorted Header cell background colour of a sorted column. the value of headerbg headerbgsorted="#32596c"
    headeralign Header cell alignment, one value for all columns, or a comma separated list for different alignment of individual columns. Set to "left", "center", "right" or "justify". Overrides individual cell settings. unspecified headeralign="left,right"
    disableallsort Disable all sorting, both initsort and header sort. This is mainly used by plugins such as the EditTablePlugin to disable sorting in a table while editing the table. unspecified disableallsort="on"
    datacolor Data cell text colour, a comma separated list. unspecified datacolor="#0000CC, #000000"
    databg Data cell background colour, a comma separated list. Specify "none" for no colour, that is to use the colour/background of the page the table is on. "#edf4f9,#ffffff" databg="#f2f2f2,#ffffff"
    databgsorted Data cell background colour of a sorted column; see databg. the values of databg databgsorted="#d4e8e4,#e5f5ea"
    dataalign Data cell alignment, one value for all columns, or a comma separated list for different alignment of individual columns. Set to "left", "center", "right" or "justify". Overrides individual cell settings. unspecified dataalign="center"
    columnwidths Column widths: Comma delimited list of column widths, percentage or absolute pixel value. unspecified columnwidths="80%,20%"
    initsort Column to sort initially ("1" to number of columns). unspecified initsort="2"
    cellspacing Cell spacing (pixels). "0" cellspacing="3"
    cellpadding Cell padding (pixels). "0" cellpadding="0"
    cellborder Cell border width (pixels). unspecified cellborder="0"

  • Example:
    %TABLE{ tableborder="0" cellpadding="4" cellspacing="3" cellborder="0" }%
    | *A1* | *B1* |
    | A2 | B2 |
  • Related: See TablePlugin for more details
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding URCS? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.VarTABLE.