Difference between revisions of "Help:Tables"

From Earth Science Information Partners (ESIP)
Line 3: Line 3:
 
1. Particular formatting style with { and | in "wiki text"  
 
1. Particular formatting style with { and | in "wiki text"  
  
  <nowiki>{| border="1" cellpadding="5" cellspacing="0"
+
  <nowiki>{| width="70%" cellpadding=0 cellspacing=1 border="1" align="center"
 +
|- valign="top" bgcolor="#FFFFFF"
 
|+ 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
Line 13: Line 14:
 
|Cell C
 
|Cell C
 
|}</nowiki>
 
|}</nowiki>
{| border="1" cellpadding="5" cellspacing="0"
+
{| width="100%" cellpadding=0 cellspacing=1 border="1"
 +
|- valign="top" bgcolor="#FFFFFF"
 
|+ 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
Line 23: Line 25:
 
|Cell C
 
|Cell C
 
|}
 
|}
 +
  
 
2. The wiki also understands html code for tables (i.e. <table> tags) if you prefer that.   
 
2. The wiki also understands html code for tables (i.e. <table> tags) if you prefer that.   

Revision as of 11:30, May 23, 2006

There are two ways to construct tables in the wiki :

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

{| width="70%" 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 heading 1 Cell 2 Cell 3
Row heading A Cell B Cell C


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.