Attached a new version of the version macro as the previous version doesn't work correctly on more recent versions of XWiki due to https://github.com/xwiki/xwiki-rendering/commit/c342f0a850f9d3173e778654a9879445ea0fe941.