Search results
Results from the WOW.Com Content Network
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.
CSS2 in May 1998 (later revised in CSS 2.1 and CSS 2.2) extended CSS1 with facilities for positioning and table layout. The preference for using HTML tables rather than CSS to control the layout of whole web pages was due to several reasons: the desire of content publishers to replicate their existing corporate design elements on their web site;
This is different from tables on webpages outside Wikipedia. Overall table widths (as opposed to max-widths) do not narrow on most pages outside Wikipedia. See max-width outside Wikipedia: CSS Height, Width and Max-width. Experiment with em and other width settings on another page outside Wikipedia: HTML Table Sizes.
Note: Wikipedia:HTML 5#Table attributes. CSS to replace obsolete attributes for borders, padding, spacing, etc. Add a border around a table using the CSS property border: thickness style color;, for example border:3px dashed red. This example uses a solid (non-dashed) gray border that is one pixel wide:
align (Deprecated. use CSS instead.) and bgcolor (Deprecated. use CSS instead.) on table element; nowrap (Obsolete), bgcolor (Deprecated. use CSS instead.), width, height on td and th elements; bgcolor (Deprecated. use CSS instead.) attribute on tr element; clear (Obsolete) attribute on br element; compact attribute on dl, dir and menu elements
The ambox CSS classes are defined in MediaWiki:Common.css. This guide describes how to use the classes directly in wikitables and HTML tables. There is also a meta template {} that makes it easy to create article message boxes. It has usage documentation and examples and can handle the most common usage cases.
The purpose is of this template is for generating simple tables in locations where standard table markup is either not possible, without significant use of the {{!}} magic word (e.g., with a {{}} template), or cumbersome (due to the repetitive use of specification of the same style statement in each row).
inner or innercollapse: Uses the mw-collapsible innercollapse classes to make the table collapsible, but only collapse if the table is within a larger table with the outercollapse class. outer or outercollapse: Uses the outercollapse class to collapse any smaller tables within the table it that use the innercollapse class. Can be combined with ...