Wikisource:WikiProject 1911 Encyclopædia Britannica/Style Manual/Table examples

Table examples
This is a sub-page of WikiProject 1911 Encyclopædia Britannica/Style Manual its purpose is to show some example tables from the pages of the Encyclopædia Britannica, to enable editors to use wikitable syntax to construct table that look similar to those used in Encyclopædia Britannica articles.

Some of these examples use the template Table style in its shortened form

Writing sideways
Here are two ways to change the text to write sideways. The first uses  it writes top to bottom. The second is to use a table  this writes bottom to top. The template can be use in place of.

One problem with sideways writing is the height of the cell. It will probably be necessary to reduce the height by breaking the text into lines using the carriage return html.

An additional problem is the width, because this feature does not automatically set the width. Often the text in the other columns will mean that the columns are wide enough to handle the width of the text but it may be necessary to do so by some other method. In this example  is used

Here is another example using  the   next to the class sets the percentage of the width of the display window that the table will take up. The  takes up 15% of the initial 30% of the width. The last column take up whatever percentage is left (in this example 100-(15+25) = 60% so it and that is 60% of the initial 30% or about 16% of the width of the display. This method allows for the tailoring of the width of columns, but unlike the  above you need to check that this displays well on small screens (such as phones).

For an example see Page:EB1911 - Volume 28.djvu/409 (Water Supply)

Tables with no horizontal line in the columns (tablecolhdborder float)
Here is an example (from "Mesopotamia" volume 31 page 915 ) using a class "tablecolhdborder" and the template "". For a further explanation see Help:Templates and Template:Table style/doc.

By default this class of table will appear on rows of its own its own in the center of the page. If this table is to appear on the left or the right with text next to it then append  or   to the class eg. Below are three identical tables apart from the use float. They are ordered floatright, center (the default) and floatleft. This is only for demonstration proposes. In the wild you would probably not want to do this as the ordering of the tables will vary as the screen gets narrower.

Tables with no horizontal line in the columns (tablecolhdborder)
Here is a fragment example from the article "Irrigation" (volume 14, p. 815.). This example uses the same  but, it specifies a maximum width and adds a line under the titles to turn them into boxes and removes one line between the column containing line counter and the major works names. It also demonstrates how the table can align by default all the text to the right, and then change that default per line or per cell.

Table with borders created cell by cell and (floatleft)
This table is an fragment of one created to mimic a table that appears in the article "EB1911 Exchange" (volume 10, p. 54). The difference between this example and "Irrigation" (volume 14, p. 815.; see above) is that it starts with a table with no visible borders and adds borders cell by cell.

With a class
If a class is defined, for example, then the table by default sits on the left of the page:

To center the table add  to the class

To allow the table to float to the left or the right and have the text appear to the right or the left of a table, add:  or   to the class:

Without class but with sytle
To float a table to left or right (so that text appears on the right or the left, add "floatleft;" or "floatright;" to the table class. If the table class is not defined then use  or

To center a table without a class use the following (see also w:HELP:TABLECENTER):

Page:EB1911 - Volume 26.djvu/1080 (Tobacco) The following table, is border-less and "indicates the crops of tobacco in 1905 in the regions mentioned"