Col. 1 | Column 2 | Col. 3 |
---|---|---|
item | column width defaulted to ~60% | item |
{| width="100%" border="1" cellspacing="0" |+'''Our Example Table''' ! width="20%" | Col. 1 ! Column 2 !! width="20%" | Col. 3 |- | item | column width defaulted to ~60% || item |}
Here is the above code broken down into what each part means.
Code Fragment | Explanation |
---|---|
{| | Begin a wikitable. many of the standard options found in a HTML table tag can be used here. |
|+ | Caption |
|- | Row break |
! | Header |
! width="20%" | | Header with options |
!! | Header break on same line |
| | New cell |
|| | Separate cells on the same line |
|} | End of table |
Contents [hide] |
In addition to the above explanation of wiki-tables, it should be mentioned that HTML tables also work in the wiki, and in fact, SHOULD be used exclusively in templates. Transcluding a wiki-table (from a template) into a wiki-table (on a page) can do some strange things, so as a rule of thumb, templates should not use wiki-tables.
The classes defined in the following sections should be defined in EVERY skin here at ZAM, so you can use them on any page and, if that page is viewed on a different skin than the game it was designed for, it should still look good and be readable.
PLEASE avoid using custom colors on wiki pages except where ABSOLUTELY needed, and be sure to talk to JerekDain or Bludwyng about it, first! We may be able to suggest an already existing style you can use.
See this page for examples, but basically all tables in the wiki should use no color styling except for that provided by one of the following classes:
These can be used on any table element, table, row, or cell, to set the background and foreground colors. They will be adjusted to be consistent with the primary skin colors on the game you are viewing it on.
There are a few more classes that were created for very specific uses, but can be used in other ways.
This is based on a page I originally wrote at EQ2i. --[bludwyng (contribs)]
ZAM credits this article at EQ2 Wikia for some of the info in this article. Licensed under the GFDL. |