Jump to content

User:ChallengeSpacePedia/WikiTutorial/All/Tables

From Wikipedia, the free encyclopedia

The following code generates a sample table with 3 rows containing three cells each. Note that |- represents a new row, ! [%Header%] represents a header, | [%Content%] represents the content. Output is shown below.

 {| class="wikitable"
 |-
 ! header 1
 ! header 2
 ! header 3
 |-
 | row 1, cell 1
 | row 1, cell 2
 | row 1, cell 3
 |-
 | row 2, cell 1
 | row 2, cell 2
 | row 2, cell 3
 |}
header 1 header 2 header 3
row 1, cell 1 row 1, cell 2 row 1, cell 3
row 2, cell 1 row 2, cell 2 row 2, cell 3