tables.py parser example

An example for two adjacent tables with Table 1 from a page and Table 2 from an attached file.

The defaults of one table per row with a width of 66% have been overridden here by option c-2 and 40%, respectively.

Table 1

Stored as page with the caption as part of the table. The caption included in the parser section to serves only as a comment.

Link to Table 1 page.

Table 2

Stored as attached text file (.txt assumed) with caption from the key:val pair positioned (borderless) above the inserted table.

   1 ## Table 2. Example table saved as an attached file.
   2 ||<-3 tablestyle="width:100%; " style="background-color: #eeeeff;">||
   3 ||'''Heading A'''||'''Heading B'''||'''Heading C'''||
   4 ||<-3 style="background-color: #eeeeff;">||
   5 ||A||B||C||
   6 ||<-3 style="background-color: #eeeeff;">||
Table 2.txt

Parser markup

{{{#!tables 40% c-2
 /Table 1:: #'''Table 1.''' Example table saved as a page.
 Table 2:: '''Fig. 2.''' Example table saved as an attached file.
}}}

Tables parsed

Table 1. Example table saved as a page.
Heading 1 Heading 2 Heading 3
1 2 3
Fig. 2. Example table saved as an attached file.
Heading A Heading B Heading C
A B C

tables.py/Example (last edited 2011-01-22 16:17:22 by IanRiley)