Difference between revisions of "Help:Tables"

From Earth Science Information Partners (ESIP)
Line 15: Line 15:
 
|}</nowiki>
 
|}</nowiki>
 
{| style="width:70%;height:200px" cellpadding=0 cellspacing=1 border="1" align="center"
 
{| style="width:70%;height:200px" cellpadding=0 cellspacing=1 border="1" align="center"
|- valign="top" bgcolor="#FFFFFF"   
+
|- valign="top" bgcolor="#FD4FFF"   
 
|+ The table's caption
 
|+ The table's caption
 
! Column heading 1 !! Column heading 2 !! Column heading 3
 
! Column heading 1 !! Column heading 2 !! Column heading 3
 
|-
 
|-
|Row heading 1 || Cell 2 || Cell 3
+
|Row 1 || Cell 2 || Cell 3
 
|-
 
|-
| Row heading A
+
|Row A
 
|Cell B
 
|Cell B
 
|Cell C
 
|Cell C
 
|}
 
|}
  
 +
'''Width''' can be given in % or px and determines the size of the entire table.
 +
'''Height''' is given in pixels and is for cell height.
 +
'''Cell padding''' determines how far apart the cell walls
 +
'''Cell spacing''' is the amount of room around the words in each cell.
 +
'''Border''' is the thickness of the table border
 +
'''Align''' centers the entire table if placed at the top.
 +
'''|-''' Starts a new row
 +
'''||''' or '''|''' Seperates cells in the same row
 +
'''bgcolor''' is cell background
  
 
2. The wiki also understands html code for tables (i.e. <table> tags) if you prefer that.  <br>
 
2. The wiki also understands html code for tables (i.e. <table> tags) if you prefer that.  <br>

Revision as of 11:41, May 23, 2006

There are two ways to construct tables in the wiki :

1. Particular formatting style with { and | in "wiki text"

{|style="width:70% ; height:200px" cellpadding=0 cellspacing=1 border="1" align="center"
|- valign="top" bgcolor="#FFFFFF"  
|+ The table's caption 
! Column heading 1 !! Column heading 2 !! Column heading 3
|-
|Cell 1 || Cell 2 || Cell 3
|-
| Row heading A
|Cell B
|Cell C
|}
The table's caption
Column heading 1 Column heading 2 Column heading 3
Row 1 Cell 2 Cell 3
Row A Cell B Cell C

Width can be given in % or px and determines the size of the entire table. Height is given in pixels and is for cell height. Cell padding determines how far apart the cell walls Cell spacing is the amount of room around the words in each cell. Border is the thickness of the table border Align centers the entire table if placed at the top. |- Starts a new row || or | Seperates cells in the same row bgcolor is cell background

2. The wiki also understands html code for tables (i.e.

tags) if you prefer that.
For more information go to Meta.Wikimedia. If this terse instruction set is unclear or inadequate, users are requested to fix it. Thanks.