RevisionMarks

Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.


Goal

Give authors a way to indicate text insertions and deletions.

Solution

Add the following markup: inserted text and deleted text. Provide a <#>? keyword that lets readers toggle between showing and hiding revisions. In browse, the default is to show revisions; in print and publish, the default is to hide revisions.

Files

Attach:revisions.php

Installation

Put revisions.php in the local/ directory and add the following line to local/local.php:

  include_once("local/revisions.php");

Configuration

If using the printable_version or print_publish recipes, make sure revisions.php loads after so that revisions are hidden in the printable view.

The script includes the optional extra of ^^superscript^^ and __subscript__ markup. Comment out if desired.

See Also

PublishWikiTrail, which sets revisions to be hidden by default.

History

28 October 2003: released

Comments, Bugs

In this case, when the text to be revised is a bullet item:

* meeting minutes

the markup works but destroys

Leave this field for future bugs or comments for your script

Contributors

  • John Rankin (with thanks to Carlo Strozzi for spotting a fix needed so the script works correctly with PmWiki/PmWiki 0.5 and above)

pmwiki-2.2.113 -- Last modified by {{}}?

from IP: 85.171.160.186 ip should be disabled by default for security reasons