Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
indextrue
show-titlefalse
titleDescription

The service allows to selectively remove history information for a limited number of pages.

projectdoc-transclusion-macro
documentCleaner
idssafety-warning



projectdoc-section
titleParameters

The service provides the following parameters to control the histories to be cleaned.

Section
titlepageIds

The comma-separated list of identifiers of the pages whose history is to be removed.


Section
titlekeepCount

The number of page versions to keep, 1 (default) meaning that only the current version is kept.

Accepted values are larger than zero.


Section
titlepreservePattern

The pattern to match for version comments. Versions that match this pattern are preserver, that is: not removed.

Caution Box
titleDanger of loosing Versions!

Please note that any versions that do not match are removed. This includes versions whose comments are misspelled.

The preserve pattern is applied to all page versions that are taken into consideration. That is the versions saved with the keepCount are preserved whether they match this pattern or not.

Example Box

Assume that important versions have a comment that starts with [important]. If you want to preserve this versions, use the following regular expression.

Code Block
languagetext
^\[important\].*$

Note that for this example versions with the following comments will be removed, since they do not match the example expression.

  • important: My very special version
  • [important - this is important!
  • important change



Section
titleremoveAttachments

Controls whether or not the attachments of versions that are not removed should also be cleaned.

If checked previous versions of attachments to pages are also removed.


Section
titleattachmentKeepCount

The number of attachment versions to keep, 1 (default) meaning that only the current version is kept.


...