Project

General

Profile

How to create a macro that displays the most current version number of currently displayed Wiki page

Added by Wallace Winfrey over 11 years ago

I would like to create a macro that, when embedded in a wiki page, displays the version number of that page's most recent commit, i.e. say we have a wiki page that is at version 56, and it's contents include the string:

This page's last revision was:

{{current_page_last_commit}}

When viewed, the page would display

This page's last revision was: 56

How might I do this? How about author and date of the last commit, i.e.

{{current_page_last_author}}
and
{{current_page_last_revision_date}}
?