Version 3 (modified by Ryan J Ollos, 8 years ago) (diff)

Adding plugin maintainer

SQL Table in Wiki Page


This is a simple macro that enables you to place tables resulting from SQL queries into a wiki page.

It is similar to, but simpler than, SqlQueryMacro. The main differences are that it has fewer dependencies and always queries the Trac database, rather than letting you set up a separate data connection.

Bugs/Feature Requests

Existing bugs and feature requests for WikiTableMacro are here.

If you have any issues, create a new ticket.


Download the zipped source from [download:wikitablemacro here].


You can check out WikiTableMacro from here using Subversion, or browse the source with Trac.


Use the !SQLTable macro:

        SELECT count(id) as 'Number of Tickets'
        FROM ticket

The result will be a table.

Recent Changes

16994 by rjollos on 2017-11-20 00:43:24
WikiTableMacro 0.3: Release version 0.3

Fixes #13336.

16993 by rjollos on 2017-11-20 00:41:44
WikiTableMacro 0.3dev: Conform to PEP8

Refs #13336.

14734 by rjollos on 2015-06-22 22:53:59
0.3dev: Partial revert of [14524]. Refs #11708.

Reverts to format_to_html but adds CSS to shrink the cell margins.



Author: optilude
Maintainer: optilude