Help:Table

From D&D Wiki

Jump to: navigation, search

How-to Use[edit]

Tables use specific formatting.

Tables start with an opening and end with a closing. The opening consists of {| class="4e", {| class="{{d20}}", or {| class="pathfinder" (among some specific other types, see also syntax) depending on the affiliated edition and the closing consists of |}. If one desires any table-wide designation they are present on the same line as the opening. For example {| class="4e" style="text-align: left;". To note if one has a page with multiple tables the vardefine (the variable which determines the rows color) will go throughout tables. To stop this (as desired) use {{#vardefine:odd|0}}. For example {| class="{{d20}}" {{#vardefine:odd|0}}.

Why {| class="{{d20}}" and not just {|? The class="{{d20}}" or class="4e" determines that the tables color scheme will be recognized.

Tables can have table designators. It displays the contents of the table and is present after the opening. The table designator consists of |+.

Tables can have column and row designators. They display the contents of the column and/or row. The column and row designators consist of ! (row start) or !! (in-line row). If the designation requires only a certain cell to be the designator go down a line to start the next cell, using the "row start" formatting and include the row designation (see below) before the first desired cell row for aesthetic reasons.

Tables are organized by columns and rows.

Columns are designated by | (row start) or || (in-line row) in each row and go throughout rows.

Rows are designated by |- class="{{Odd-Even|{{#var:odd}}}}" and consist of columns.

Why |- class="{{Odd-Even|{{#var:odd}}}}" and not just |-? The class="{{Odd-Even|{{#var:odd}}}}" determines that the rows will be noticeable by way of changing the color each row.
Note: Pathfinder ({| class="pathfinder") tables just use |- since their rows are not different from one another (among some specific other types, see also syntax).

Syntax[edit]

Please wrap all table-related things with a space.

Standard table syntax works and should be used complementary to this.

See also MediaWiki:Common.css.

See also User:Sledged/sledged.css.

See also MediaWiki:Common.js.

See also User:Sledged/sledged.js.

Examples[edit]

Code:

{| class="4e"
|+ table designator
! column designator (row start) !! column designator (in-line row) !! column designator (in-line row)
|- class="{{Odd-Even|{{#var:odd}}}}"
| column (row start) || column (in-line row) || column (in-line row)
|- class="{{Odd-Even|{{#var:odd}}}}"
| column (row start) || column (in-line row) || column (in-line row)
|-
| class="notes" colspan="3" |
# Any notes that the table requires
# More notes
|}

Result:

table designator
column designator (row start) column designator (in-line row) column designator (in-line row)
column (row start) column (in-line row) column (in-line row)
column (row start) column (in-line row) column (in-line row)
  1. Any notes that the table requires
  2. More notes

Code:

{| class="{{d20}}"
|+ table designator
! column designator (row start) !! column designator (in-line row) !! column designator (in-line row)
|- class="{{Odd-Even|{{#var:odd}}}}"
| column (row start) || column (in-line row) || column (in-line row)
|- class="{{Odd-Even|{{#var:odd}}}}"
| column (row start) || column (in-line row) || column (in-line row)
|-
| class="skill" colspan="3" |
# Any notes that the table requires
# More notes
|}

Result:

table designator
column designator (row start) column designator (in-line row) column designator (in-line row)
column (row start) column (in-line row) column (in-line row)
column (row start) column (in-line row) column (in-line row)
  1. Any notes that the table requires
  2. More notes

Code:

{| class="pathfinder"
|+ table designator
! column designator (row start) !! column designator (in-line row) !! column designator (in-line row)
|-
| column (row start) || column (in-line row) || column (in-line row)
|-
| column (row start) || column (in-line row) || column (in-line row)
|-
| class="notes" colspan="3" |
# Any notes that the table requires
# More notes
|}

Result:

table designator
column designator (row start) column designator (in-line row) column designator (in-line row)
column (row start) column (in-line row) column (in-line row)
column (row start) column (in-line row) column (in-line row)
  1. Any notes that the table requires
  2. More notes

Code:

{| class="4e"
|+ table designator
|- class="{{Odd-Even|{{#var:odd}}}}"
! row designator (row start)
| column (row start) || column (in-line row)
|- class="{{Odd-Even|{{#var:odd}}}}"
! row designator (row start)
| column (row start) || column (in-line row)
|- class="{{Odd-Even|{{#var:odd}}}}"
! row designator (row start)
| column (row start) || column (in-line row)
|-
| class="notes" colspan="3" |
# Any notes that the table requires
# More notes
|}

Result:

table designator
row designator (row start) column (row start) column (in-line row)
row designator (row start) column (row start) column (in-line row)
row designator (row start) column (row start) column (in-line row)
  1. Any notes that the table requires
  2. More notes

Code:

{| class="{{d20}}"
|+ table designator
|- class="{{Odd-Even|{{#var:odd}}}}"
! row designator (row start)
| column (row start) || column (in-line row)
|- class="{{Odd-Even|{{#var:odd}}}}"
! row designator (row start)
| column (row start) || column (in-line row)
|- class="{{Odd-Even|{{#var:odd}}}}"
! row designator (row start)
| column (row start) || column (in-line row)
|-
| class="skill" colspan="3" |
# Any notes that the table requires
# More notes
|}

Result:

table designator
row designator (row start) column (row start) column (in-line row)
row designator (row start) column (row start) column (in-line row)
row designator (row start) column (row start) column (in-line row)
  1. Any notes that the table requires
  2. More notes

Code:

{| class="pathfinder"
|+ table designator
|-
! row designator (row start)
| column (row start) || column (in-line row)
|-
! row designator (row start)
| column (row start) || column (in-line row)
|-
! row designator (row start)
| column (row start) || column (in-line row)
|-
| class="notes" colspan="3" |
# Any notes that the table requires
# More notes
|}

Result:

table designator
row designator (row start) column (row start) column (in-line row)
row designator (row start) column (row start) column (in-line row)
row designator (row start) column (row start) column (in-line row)
  1. Any notes that the table requires
  2. More notes



Back to Main PageMeta Pages

This page is a help page.
Personal tools
d20M
miscellaneous
admin area
Terms and Conditions for Non-Human Visitors