How To: Tables
From MMO Comic Index
Jump to navigationJump to search
Simple Table Message Box
To create a simple table message box, please use the following code:
{|border="1" align="center" |
|align="center"|'''Title''' |
|- |
|Simple ''message'' here |
|} |
This will result in...
Title |
Simple message here |
Basic Table Commands
(Commands borrowed from MediaWiki Help)
{| |
table start |
|+ |
table caption, optional; only between table start and first table row |
|- |
table row, optional on first row -- wiki engine assumes the first row |
! |
table header cell, optional. Consecutive table header cells may be added on same line separated by double marks (!! ) or start on new lines, each with its own single mark (! ).
|
| |
table data cell, required! Consecutive table data cells may be added on same line separated by double marks (|| ) or start on new lines, each with its own single mark (| ).
|
|} |
table end |
You can also add attributes to the table and to each cell.
For instance...
{|align="center" |
Aligns the whole table to the center of the screen |
|align="right" |
Aligns the text to the right side of the cell |
|style="color:green;" |
Makes the text color green |
|style="background:yellow;color:blue;" |
Makes the background yellow and the text color blue |
Applying the style and align commands inside the "|" cell will only affect the specific cell. Applying the commands following the "{|" line will apply to the whole table.
Additional Information
For more information about using tables, please consult the MediaWiki Help article.