![]() | Chapter 15: Tables | ![]() ![]() |
15.1. Laying out tables |
We have already seen the Table of Rankings, which Inform uses automatically to score the progress of the current game. Here is a more general example:
Table 2.1 - Selected Elements
Element Symbol Atomic number Atomic weight "Hydrogen" "H" 1 1 "Iron" "Fe" 26 56 "Zinc" "Zn" 30 65 "Uranium" "U" 92 238
After the two titling lines, each line represents one row in the table, and entries on a line must be separated by at least one tab character. A table must occupy a single whole paragraph, with no skipped lines or missing entries.
The top line is a title, the first word of which must be the word 'Table'. We can then either give a table number (this need not actually be a number: Table C2, or some such, would be fine), or give a name, or both - as in this case. The possible titling formats are:
Table 2.3
Table of Population Statistics
Table 2.3 - Population Statistics
In the last example we could call the table either "Table 2.3" or "Table of Population Statistics".
Each column then has a name, and the contents must all be the same kind of value. In the elements table the "Symbol" column contains only text, for instance, and the "Atomic weight" column contains only numbers. Any kinds of value will do, so long as all the entries in the column are mutually compatible. (For instance, mixing rooms and things in a single column would be fine, as these can be reconciled, but mixing numbers and rooms would not.)
Previous | Contents | Next |