wiki:WikinfoPlugin

Version 2 (modified by rede, 9 years ago) (diff)

Added installation instructions

Wiki Info

Description

Simple script to add some database stored information to wikipage.

This is actually made for example how to write new macroplugin for new plugin system.

Usage: NlWikinfo([keyword][,keyword][...])

Currently supported keywords:

  • author - Author of first version
  • version - Latest version of page
  • changed_by - Page last changed by
  • comment - Latest comment of changed by
  • changed_ts - Page last changed timestamp

Installation

Since this is new style plugin instead of old style macro, you have to install this plugin. Copy nlwikinfo.py macro to any path you want and add following in trac.ini:

[nlwikinfo]
module = nlwikinfo
path = /var/trac/plugins/nlwikinfo

Path is required only if nlwikinfo.py is not in Python search path.

Bugs/Feature Requests

Existing bugs and feature requests for WikinfoPlugin are here.

If you have any issues, create a new ticket.

Download

WikinfoPlugin for 0.9.

Source

You can check out the source for WikinfoPlugin from Subversion at http://trac-hacks.swapoff.org/svn/wikinfoplugin.

Examples

Latest version of wikipage:

Version [[NlWikinfo(version)]] 

Page originally created by:

Created by [[NlWikinfo(author)]]

Page last modified by:

Modified by [[NlWikinfo(changed_by)]]

Page last modified timestamp:

[[NlWikinfo(changed_ts)]]

Last edit comment:

([[NlWikinfo(comment)]])

Author/Contributors

Author: rede
Contributors:

TagIt(plugin,rede,example,0.9)?