Template:Table

From DDO Compendium
Revision as of 16:17, 25 April 2018 by Jibo (talk | contribs) (Created page with "<noinclude> == How To Use This Template == The following will create a 'wikitable' using the default .css. The following are the templates needed to create wikiTables. *Temp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

How To Use This Template[edit]

The following will create a 'wikitable' using the default .css.

The following are the templates needed to create wikiTables.

  • Template:Table_Header
  • Template:Table_optHeader
  • Template:Table_Row
  • Template:Table_optRow
  • Template:Table_Footer

Template: Table_Header[edit]

  • Include sortable=1 if you want to enable sorting the columns. If the table does not need to be sorted, omit the line.
  • Include collapsible=1 if you want the allow the user to collapse the table. If you don't want the table to be collapsible, omit the line.
  • Include collapsed=1 if you want the table collapsed when the page is loaded. If you don't want the table collapsed, omit the line.
  • Include center=1 if you want the columns centered. If you don't want the contents of the table centered, omit the line.
  • caption-style=text-align: left; width: 200px. This was added to ensure the caption, for a table that is collapsed, is presented on a single line. This line can be omitted.
  • caption=<enter a caption for the table>. All tables should have a caption. However is you choose to not have a caption, omit the line.

Template: Table_optHeader[edit]

Nothing is required from you, it is used in the header template to accommodate columns beyond column 1

Template: Table_Row[edit]

You must have at least one column heading. The template is able to accommodate up to 6 columns. Headings for columns 2 thru 6 are optional.


Table Caption
Column Heading 1 Column Heading 2 Column Heading 3 Column Heading 4 Column Heading 5 Column Heading 6
Row 1 Cell 1 Row 1 Cell 2


Row 1 Cell 3


Row 1 Cell 4


Row 1 Cell 5


Row 1 Cell 6