Home Countries Hazards Notable past events News COGSS About us Contact us

Adding a Table

Tables can be inserted into any page by using a macro filter. To build a table use the following method:

[table=tables-grid Month |Jan | Feb | Mar | Apr
East| 7 | 14 | 21| 28
West | 7 | 14 | 21| 28
North| 7 | 14 | 21| 28
South | 7 | 14 | 21| 28 ]

The "[table" defines the beginning of the table. If a next character is a "=" it will then look for a string ending in a space to use as the table class. Only letters numbers and the "-" are permitted to be part of the class string. Each cell is separated by a "|" and the rows are separated by a line feed. Therefore this macro becomes:

Month Jan Feb Mar Apr
East 7 14 21 28
West 7 14 21 28
North 7 14 21 28
South 7 14 21 28

Multi column cells can be created by inserting only a "&" into a cell, and it will then be merged to the cell to the left of it, or if a "^" is inserted it will merge to the cell above. Therefore:

[table=tables-grid | Month |& |& |&

Direction |Jan | Feb | Mar | Apr
East| 7 | 14 | 21| 28
West | 7 | & | ^| 28
North| 7 | 14 | ^| 28
South | 7 | 14 | ^| 28 ]

Becomes:

  Month & & &
Direction Jan Feb Mar Apr
East 7 14 21 28
West 7 & 28
North 7 14 28
South 7 14 28