Welcome to Warhammer 40k - Lexicanum! Log in and join the community.

Difference between revisions of "Warhammer 40k - Lexicanum:Tables help"

From Warhammer 40k - Lexicanum
Jump to: navigation, search
(Initial Entry)
 
Line 5: Line 5:
 
This article is designed to be a '''How to''' guide for creating '''tables''' using wiki formating.
 
This article is designed to be a '''How to''' guide for creating '''tables''' using wiki formating.
  
==Creating a Table==
+
==Table Elements==
# '<nowiki>{|</nowiki>' Curly Bracket followed by a Pipe is used to indicate the beginning of a table.
+
===Creating a Table===
# '<nowiki>|</nowiki>' a Pipe is used to indicate the first cell of a table.
+
# '''<nowiki>{|</nowiki>''' ''Curly Bracket'' followed by a ''Pipe'' is used to indicate the beginning of a table.
# '<nowiki>|}</nowiki>' a Pipe followed by a Curly Bracket is used to indicate the end of a table.
+
# '''<nowiki>|</nowiki>''' a ''Pipe'', on a new line, is used to indicate the first cell of a table.
 +
# '''<nowiki>|}</nowiki>''' a ''Pipe'' followed by a ''Curly Bracket'' is used to indicate the end of a table.
  
 
Example:
 
Example:
Line 25: Line 26:
 
|}
 
|}
  
==Table Caption==
+
===Table Caption===
To add a caption for a table, use a Pipe followed by a Plus <nowiki>|+</nowiki> as the 1<sup>st</sup> line in the table.
+
To add a caption for a table, use a ''Pipe'' followed by a ''Plus'' '''<nowiki>|+</nowiki>''' as the 1<sup>st</sup> line in the table.
  
 
Example:
 
Example:
Line 45: Line 46:
 
|}
 
|}
  
==Add a Border==
+
===Add a Border===
To add a caption for a table, use a Pipe followed by a Plus <nowiki>|+</nowiki> as the 1<sup>st</sup> line in the table.
+
To add a border to a table, on the first line after the ''Curly Bracket'' and ''Pipe'', type '''border=&quot;1&quot;'''. The higher the number the broader the border.
  
 
Example:
 
Example:
Line 65: Line 66:
 
|}
 
|}
  
==Additional Horizontal Cells==
+
===Additional Horizontal Cells===
To add additional horizontal cells, place a Pipe <nowiki>|</nowiki> on a new line.
+
To add additional horizontal cells, place a ''Pipe'' '''<nowiki>|</nowiki>''' on a new line.
  
 
Example (a table with 3 horizontal cells):
 
Example (a table with 3 horizontal cells):
Line 89: Line 90:
 
|}
 
|}
  
==Additional Rows==
+
===Additional Rows===
To add a row, on a new line, add a Pipe followed by a Hyphen <nowiki>|-</nowiki>. Then place a Pipe on the next line for the first cell in the new row.
+
To add a row, on a new line, add a ''Pipe'' followed by a ''Hyphen'' '''<nowiki>|-</nowiki>'''. Then place a ''Pipe'' on the next line for the first cell in the new row.
  
 
Example:
 
Example:
Line 129: Line 130:
 
|}
 
|}
  
==Row and Column Headers==
+
===Row and Column Headers===
To make a cell a row or column header, use an Exclamation Point ! instead of a Pipe.
+
To make a cell a row or column header, use an ''Exclamation Point'' '''!''' instead of a ''Pipe''.
  
 
Example:
 
Example:
Line 168: Line 169:
 
|}
 
|}
 
|}
 
|}
 +
 +
==Terms==
 +
* Curly Bracket: '''{ }'''
 +
* Exclamation Point: '''!'''
 +
* Hyphen: '''-'''
 +
* Plus: '''+'''
 +
* Pipe: '''|'''
  
 
{{Incomplete}}
 
{{Incomplete}}

Revision as of 15:48, 25 February 2007

Further Help Files  ServiceImage.jpg

Introduction

This article is designed to be a How to guide for creating tables using wiki formating.

Table Elements

Creating a Table

  1. {| Curly Bracket followed by a Pipe is used to indicate the beginning of a table.
  2. | a Pipe, on a new line, is used to indicate the first cell of a table.
  3. |} a Pipe followed by a Curly Bracket is used to indicate the end of a table.

Example:

{|

| Text in first cell
|}

 produces: 
Text in first cell

Table Caption

To add a caption for a table, use a Pipe followed by a Plus |+ as the 1st line in the table.

Example:

{|

|+ Table Caption
| Text in first cell
|}

 produces: 
Table Caption
Text in first cell

Add a Border

To add a border to a table, on the first line after the Curly Bracket and Pipe, type border="1". The higher the number the broader the border.

Example:

{|border="1"

|+ Table Caption
| Text in first cell
|}

 produces: 
Table Caption
Text in first cell

Additional Horizontal Cells

To add additional horizontal cells, place a Pipe | on a new line.

Example (a table with 3 horizontal cells):

{| border="1"

|+ Table Caption
| Cell 1
| Cell 2
| Cell 3
|}

 produces: 
Table Caption
Cell 1 Cell 2 Cell 3

Additional Rows

To add a row, on a new line, add a Pipe followed by a Hyphen |-. Then place a Pipe on the next line for the first cell in the new row.

Example:

{| border="1"

|+ Table Caption
| Row 1, Cell 1
| Row 1, Cell 2
| Row 1, Cell 3
|-
| Row 2, Cell 1
| Row 2, Cell 2
| Row 2, Cell 3
|-
| Row 3, Cell 1
| Row 3, Cell 2
| Row 3, Cell 3
|}

 produces: 
Table Caption
Row 1, Cell 1 Row 1, Cell 2 Row 1, Cell 3
Row 2, Cell 1 Row 2, Cell 2 Row 2, Cell 3
Row 3, Cell 1 Row 3, Cell 2 Row 3, Cell 3

Row and Column Headers

To make a cell a row or column header, use an Exclamation Point ! instead of a Pipe.

Example:

{| border="1"

|+ Table Caption
|
! Column 1 Header
! Column 2 Header
|-
! Row 1 Header
| Row 1, Cell 1
| Row 1, Cell 2
|-
! Row 2 Header
| Row 2, Cell 1
| Row 2, Cell 1
|}

 produces: 
Table Caption
Column 1 Header Column 2 Header
Row 1 Header Row 1, Cell 1 Row 1, Cell 2
Row 2 Header Row 2, Cell 1 Row 2, Cell 2

Terms

  • Curly Bracket: { }
  • Exclamation Point: !
  • Hyphen: -
  • Plus: +
  • Pipe: |


Related Articles