%HISTORY{}% macro is handled by the HistoryPlugin
%HISTORY{ attributes }%
| Argument | Description | Default value | 
|---|---|---|
| none | Default layout: a simple list of topic revisions using the default format (see below) | |
| "format"orformat="string" | Format of one line, may include any variable which is supported by macro REVINFO | "r$rev - $date - $wikiusername" | 
| topic="topic" | Topic name, can be in web.topicformat | current topic | 
| web="web" | Web name | current web | 
| versions="number or range" | Number or range (format: from..to). Examples:To get version 2, write: versions="2"To get version 2 to 3, write: versions="2..3"To get version 2 to the latest, write: versions="2.."To get all versions up to version 5, write: versions="..5"To get all versions up to but not including the latest, write: versions="..-1"To get the versions from 1 to 5 in reverse order, write: versions="5..1" | all versions in the order latest to first | 
| header="text" | Text to print before the list. May contain the tokens $nextand$previouswhich will be evaluated if there are newer or older revisions available for the topic that are not listed according toversions(orrev1,rev2,nrev).These tokens take the syntax $next{'some text' url='url'}(the same for$previous). 'some text' is the text which should be printed, 'url' is the url for the corresponding link.The tokens $rev1,$rev2,$nrevin 'text' or 'url' will be replaced by appropriate values for the next or previous block of revisions. See the attachedoopshistory.tmplfor an example of how to use this. | "$next" | 
| footer="text" | Text to print after the list. May contain the tokens $nextand$previous(seeheader) | "$previous" | 
| Argument | Description | Default value | 
|---|---|---|
| nrev="number" | Number of revisions to show. Ignored if versionsis specified, or if bothrev1andrev2are specified. | 10 | 
| rev2="number" | Newest revision to show | rev1+nrevifrev1is specified, latest revision otherwise | 
| rev1="number" | Oldest revision to show | rev2-nrev | 
| reverse="boolean" | Show newest revisions first, if on | "on" | 
%HISTORY% on the page. If more than one %HISTORY% is used on the same page, the values from the last one will be used.
 %HISTORY_REV1%: Oldest revision from the printed history
%HISTORY_REV2%: Latest revision from the printed history
%HISTORY_NREV%: Number of the printed revisions
%HISTORY_MAXREV%: Latest available revision of the topic
 Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.