Feature: @OLDREVISIONS@ placeholder for page changelog - #547
Open
eduardomozart wants to merge 3 commits into
Open
Feature: @OLDREVISIONS@ placeholder for page changelog#547eduardomozart wants to merge 3 commits into
eduardomozart wants to merge 3 commits into
Conversation
Replace the static @OLDREVISIONS@ placeholder with a dynamic version supporting an optional numeric limit: @OLDREVISIONS(N)@. Defaults to 50 if no limit is specified. Updated README to document the new syntax.
Klap-in
requested changes
Jul 23, 2026
Klap-in
left a comment
Collaborator
There was a problem hiding this comment.
Did you test this? On an older DokuWiki version? On Mort it did not run.
I think the suggested newer functions are already in Librarian.
eduardomozart
commented
Jul 23, 2026
eduardomozart
left a comment
Contributor
Author
There was a problem hiding this comment.
Yes, I've tested it in an older DokuWiki version; I think that on DokuWiki Kratos (Yes, that misspelling was my fault, haha) XD
I only separated the PRs; I didn't get to test it on Mort. I updated the code to the Mort release, thank you for helping to port it!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a new
@OLDREVISIONS@placeholder that can be used in headers, footers, or cover pages.When used, it dynamically renders an HTML table containing the changelog of the exported page. By default, it displays up to the last 50 revisions. You can also specify a custom limit by providing a number in parentheses, such as
@OLDREVISIONS(10)@, to show a specific number of recent revisions. The table includes the date, author, and edit summary for each revision.This feature is especially useful for generating official documentation PDFs that require an embedded revision history.
Sample: https://github.com/eduardomozart/ScriptUtil/blob/master/Scripts/DokuWiki/dw2pdf/nethouse/citation.html