|
Cookbook /
PageDiffSizeSummary:Add an accurate count of characters added & removed to each edit summary
Version:2009-06-09
Prerequisites:PmWiki 2.2.x, optionally InlineDiff
Status:beta
Maintainer:Eemeli Aro
Categories: Administration, Editing
Download: pagediffsize.phpΔ
Questions answered by this recipe
DescriptionPageDiffSize adds a count of the characters added and/or removed during a page edit to the edit's change summary that's displayed in the page's history as well as on RecentChanges pages. As an edit can contain both insertions and deletions of text as changes are made, the added count can contain two numbers, as in "+35/-15". For the most accurate count, PageDiffSize can make use of the Text_Diff package included by the cookbook recipe InlineDiff. If InlineDiff isn't present, PageDiffSize defaults to a simpler change counter that will overcount if multiple changes are made to a single paragrph. To install this recipe
NotesYou can customize the output of PageDiffSize by setting the value of This recipe was inspired in part by DeltaBytesRecentChanges, which does a very similar job but only compares the raw difference in length of the page text before and after an edit. The sum of PageDiffSize's counts should be equal to the difference reported by DeltaBytesRecentChanges. Release Notes
See Also
ContributorsComments
User notes?: If you use, used or reviewed this recipe, you can add your name. The following format is recognized:
* (+) Optional positive comment. Name, date * (-) Optional negative comment. Name, date These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |