Search results
Results from the WOW.Com Content Network
One of several templates for styling individual table cells with standard contents and colors. Template parameters [Edit template data] This template prefers inline formatting of parameters. Parameter Description Type Status text 1 text to be displayed instead of the default; if this doesn't work put the text after the template, possibly with a vertical bar | in between Default (template ...
For example, nested tables (tables inside tables) should be separated into distinct tables when possible. Here is a more advanced example, showing some more options available for making up tables. Users can play with these settings in their own table to see what effect they have.
Normally, copying and pasting columns or rows removes the inline CSS styling such as cell colors. There is a way to break up a table (a too-wide table for example) into more tables without losing all the background colors, and other inline styling. Copy the table to 2 sandboxes (or one sandbox, and in the article itself).
You can add a table using HTML rather than wiki markup, as described at HTML element#Tables. However, HTML tables are discouraged because wikitables are easier to customize and maintain, as described at manual of style on tables. Also, note that the <thead>, <tbody>, <tfoot>, <colgroup>, and <col> elements are not supported in wikitext.
To use a colour in a template or table you can use the hex triplet (e.g. #CD7F32 is bronze) or HTML color name (e.g. red).. Editors are encouraged to make use of tools, such as Color Brewer 2 to create Brewer palettes, listed at MOS:COLOR for color scheme selection used in graphical charts, maps, tables, and webpages with accessibility in mind for color-blind and visually impaired users.
Table margin: 1em 0 background-color: #f9f9f9: white: transparent border: 1px #aaa solid border-collapse: collapse color: black Header border: 1px #aaa solid: border-right: 1px solid #EEE border-right last-child: none padding: 0.3em 0.4em: 0.2em background-color: #f2f2f2: white: transparent font-weight: bold text-align: center Caption font ...
|4= - The color for the minimum value specified by |2=. |5= - The color for the maximum value specified by |3=. |bold= - Set to a truthy value to make the value bold. |align= - The alignment of the text. Can be left, right, center, or justified. Set to right by default. |style= - Any additional CSS to apply to the cell.
In general, styles for tables and other block-level elements should be set using CSS classes, not with inline style attributes. This is because the site-wide CSS is more carefully tested to ensure compatibility with a wide range of browsers; it also creates a greater degree of professionalism by ensuring a consistent appearance between articles.