wiki:WikinfoPlugin

Version 3 (modified by anonymous, 9 years ago) (diff)

some rephrasing on the description..

Wiki Info

Description

Simple script to retrieve information from the database and add it to a wikipage.

This was actually made as an example on how to write a plugin using the new architecture.

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)?