Add comments to wiki pages

Notice: This plugin does not necessarily meet coding standards or functions correctly in all use cases.


This macro allows for easily adding comments to a wiki page, in a standard format. Each comment is added in the following form:

==== Comment by <user> on <date> ====

The comment body supports normal Trac WikiFormatting.

Comments are added after the first line that starts with [[AddComment]].

The macro supports previewing and adheres to the TracPermissions scheme, only allowing comments to be added if the user has write access to the page.

Since changeset [21] the macro can fulfil the role of an append only Wiki page. By passing the argument appendonly to the macro, comments can be appended to the page even when the user does not have permission to modify the page. This is potentially unsafe, but can be useful.

Note that this macro differs from the standard wiki #comment feature.

Bugs/Feature Requests

Existing bugs and feature requests for AddCommentMacro are here.

If you have any issues, create a new ticket.


21 / 28


4 / 11


Download the version as per your Trac installation:

Download all versions as a zip file.

The plugin is also available on PyPi.


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


Dependencies: You need to install MacroPostPlugin first, or else the 'Preview' and 'Submit' buttons won't work:

$> easy_install
$> easy_install

Add the following to your trac.ini file:

macropost.web_ui.macropostmodule = enabled
addcomment.* = enabled

Alternatively, use the WebAdmin interface to enable both plugins.

Recent Changes

16765 by rjollos on 2017-08-26 02:58:15
TracAddCommentMacro 0.3: Add license info
16760 by rjollos on 2017-08-25 18:54:20
TracAddCommentMacro 0.3: Run autopep8 on codebase
16397 by rjollos on 2017-03-25 09:37:00
Remove obsolete "0.9" code


Author: athomas
Maintainer: osimons
Contributors: eblot (ported Trac to trunk), osimons (0.11 version)

Last modified 2 years ago Last modified on Apr 18, 2022, 10:26:44 AM