User:Zoeannl/Project guideline/Proofreader’s Guide/Tables

Formatting codes declared in the table header (which affects the whole table) edit

  • mc = centers the table on page the order of values are clockwise Top, Right, Bottom and Left. (margin:0 auto 0 auto;)
  • ar|al|ac|aj = aligns the contents of all cells. Base this universal alignment by the content alignment of the majority of columns.
  • bc = border collapse. If omitted, cell borders are dashed.
  • border/border=1 = single line border of every cell.
  • bt|br|bb|bl = single line border around the table. where
  • |-ac|bb = when declared on a table row indicator, aligns content with a single line bottom border of a row of cells.
  • sm90|lh12 = font size of 90% and the matching line height of 120%.
  • sm85|lh11 = font size of 85% and the matching line height of 110%.
  • pt.5|pb.5 = cell padding of .5em top OR bottom.
  • ptb.5 = cell padding of .5em top AND bottom.
  • pr1|pl1 TO pr5|pl5 = cell padded 1em to 5em (increments of 1em) on the right OR left of the cell.
  • The template top row is the header for centered column titles with padding top and bottom of the cells.
  • The template second row is the first row padded on the top.
  • The template third row is no padding.
  • The template fourth row is the last table row, padded on the bottom.

Table layout for tables with single line borders for various font sizes, and matching line height. edit


{|{{ts|mc|ar|bc|bt|br|bb|bl}} <!-- border = 1 --> (standard 100% font size and matching standard line height of 140%)

{|{{ts|sm90|lh12|mc|ar|bc|bt|br|bb|bl}} <!-- border = 1 --> (90% font size and matching line height)

{|{{ts|sm85|lh1|mc|ar|bc|bt|br|bb|bl}} <!-- border = 1 --> (85% font size and matching line height)
|-{{ts|ac|bb}}
|{{ts|br|ptb.5}}|
|{{ts|br|ptb.5}}|
|{{ts|ptb.5}}|
|-
|{{ts|al|br|pt.5}}|
|{{ts|br|pt.5|pr1}}|
|{{ts|pt.5|pr1}}|
|-
|{{ts|al|br|pb.5}}|
|{{ts|br|pb.5|pr1}}|
|{{ts|pb.5|pr1}}|
|-
|}

Sample layout of 90% font size and 120% line height single border table edit

center table column title center table column title center table column title
left right right
left right right"
left right right

Sample layout of 90% font size and 120% line height double border table common in the PSM project edit

center table column title center table column title center table column title
left right right
left right right
left right right

Formatting for Effect edit

This section address the use of tables for the recreation of printed typography and layout on Wikisource. As a general rule Wikisource does not attempt to recreate the identical formatting of the original published work. The conversion from print to electronic formatting means the work will be available on a multitude of different devices with differing screen sizes so for the most part it is counter productive to attempt to recreate to the limitations of printing on paper. At the same time, occasionally a portion of a printed work is created specifically with the limitations of paper in mind, which must be maintained in order to convey the intended meaning to the reader.

  • Template:Table style lists multiple choices for formatting cells, rows and columns in tables. These shortcuts are designed specifically for use on Wikisource.
Column 1 Column 2 Column 3
A B
C D
E F
G
H
{| border="1" cellpadding="5" cellspacing="0"
|-
| Column 1 || Column 2 || Column 3
|-
| rowspan="2"| A
| colspan="2" align="center"| B
|-
| C <!-- column 1 occupied by cell A -->
| D 
|-
| E
| rowspan="2" colspan="2" align="center"| F
|- 
| G <!-- column 2+3 occupied by cell F -->
|- 
| colspan="3" align="center"| H
|}

Spanning pages edit

When a single table spans two printed pages, the desire is to have both pages appear correctly in both the Page: namespace, and when it's transcluded.

Use the header and the footer (|-, |}) to close and open the tables in the page name space, when transcluded it will read as one table.