Some simple macros
As always, put them under the data/plugin/macro/ directory.
Current page version
1 """
2 PageVersion.py
3 Shows the version of the current page
4
5 @copyright: 2006 by Ramiro Morales
6 @license: GNU GPL, see COPYING for details
7 """
8
9 import MoinMoin.Page
10
11 Dependencies = []
12
13 def execute(macro, args):
14 this_page = macro.formatter.page
15 rev = this_page.get_real_rev()
16 return macro.formatter.text(str(rev))
Usage
Insert [[PageVersion()]] in your wiki text.
or [[PageVersion]]