Difference between revisions of "User:Bromaelor/Sandbox"

From FamilySearch Wiki
Jump to navigation Jump to search
(new test page)
 
(table help)
Line 1: Line 1:
Test page
+
__NOTOC__
<!-- Tidy found serious XHTML errors -->
+
A table is made up of a number of '''cells''' arranged into '''rows'''.
 +
 
 +
{| border="1" cellspacing="0" cellpadding="5"
 +
|-
 +
| row 1, cell 1
 +
| row 1, cell 2
 +
| row 1, cell 3
 +
|-
 +
| row 2, cell 1
 +
| row 2, cell 2
 +
| row 2, cell 3
 +
|}
 +
<br>
 +
 
 +
==Creating tables using Wikitext==
 +
 
 +
Tables begin with:
 +
 
 +
<pre><nowiki>
 +
{|
 +
</nowiki></pre>
 +
 
 +
and end with:
 +
 
 +
<pre><nowiki>
 +
|}
 +
</nowiki></pre>
 +
 
 +
Each row within the table begins with:
 +
 
 +
<pre><nowiki>
 +
|-
 +
</nowiki></pre>
 +
 
 +
and is followed by the contents of each cell within that row, each on a new line, and beginning with a:
 +
 
 +
<pre><nowiki>
 +
|
 +
</nowiki></pre>
 +
 
 +
For example:
 +
 
 +
<pre><nowiki>
 +
{|
 +
|-
 +
| one
 +
| two
 +
| three
 +
|-
 +
| red
 +
| blue
 +
| green
 +
|}
 +
</nowiki></pre>
 +
 
 +
which will result in:
 +
 
 +
{|
 +
|-
 +
| one
 +
| two
 +
| three
 +
|-
 +
| red
 +
| blue
 +
| green
 +
|}
 +
<br>
 +
 
 +
Additional formatting features are available:
 +
 
 +
===border===
 +
----
 +
 
 +
The '''border''' parameter determines the thickness of the gridlines within the table:
 +
 
 +
<pre><nowiki>
 +
{| border="1"
 +
|-
 +
| one
 +
| two
 +
| three
 +
|-
 +
| red
 +
| blue
 +
| green
 +
|}
 +
</nowiki></pre>
 +
 
 +
which will result in:
 +
 
 +
{| border="1"
 +
|-
 +
| one
 +
| two
 +
| three
 +
|-
 +
| red
 +
| blue
 +
| green
 +
|}
 +
<br>
 +
 
 +
===cellspacing===
 +
----
 +
 
 +
The '''cellspacing''' parameter determines the space between individual cells within the table:
 +
 
 +
<pre><nowiki>
 +
{| border="1" cellspacing="0"
 +
|-
 +
| one
 +
| two
 +
| three
 +
|-
 +
| red
 +
| blue
 +
| green
 +
|}
 +
</nowiki></pre>
 +
 
 +
which will result in:
 +
 
 +
{| border="1" cellspacing="0"
 +
|-
 +
| one
 +
| two
 +
| three
 +
|-
 +
| red
 +
| blue
 +
| green
 +
|}
 +
<br>
 +
 
 +
===cellpadding===
 +
-----
 +
 
 +
The '''cellpadding''' parameter determines the space surrounding the contents of the individual cells within the table:
 +
 
 +
<pre><nowiki>
 +
{| border="1" cellspacing="0" cellpadding="5"
 +
|-
 +
| one
 +
| two
 +
| three
 +
|-
 +
| red
 +
| blue
 +
| green
 +
|}
 +
</nowiki></pre>
 +
 
 +
which will result in:
 +
 
 +
{| border="1" cellspacing="0"  cellpadding="5"
 +
|-
 +
| one
 +
| two
 +
| three
 +
|-
 +
| red
 +
| blue
 +
| green
 +
|}

Revision as of 13:39, 2 September 2008

A table is made up of a number of cells arranged into rows.

row 1, cell 1 row 1, cell 2 row 1, cell 3
row 2, cell 1 row 2, cell 2 row 2, cell 3


Creating tables using Wikitext[edit | edit source]

Tables begin with:

{|

and end with:

|}

Each row within the table begins with:

|-

and is followed by the contents of each cell within that row, each on a new line, and beginning with a:

|

For example:

{|
|-
| one
| two
| three
|-
| red
| blue
| green
|}

which will result in:

one two three
red blue green


Additional formatting features are available:

border[edit | edit source]


The border parameter determines the thickness of the gridlines within the table:

{| border="1"
|-
| one
| two
| three
|-
| red
| blue
| green
|}

which will result in:

one two three
red blue green


cellspacing[edit | edit source]


The cellspacing parameter determines the space between individual cells within the table:

{| border="1" cellspacing="0"
|-
| one
| two
| three
|-
| red
| blue
| green
|}

which will result in:

one two three
red blue green


cellpadding[edit | edit source]


The cellpadding parameter determines the space surrounding the contents of the individual cells within the table:

{| border="1" cellspacing="0" cellpadding="5"
|-
| one
| two
| three
|-
| red
| blue
| green
|}

which will result in:

one two three
red blue green