%HISTORY{ attributes }%
            | Parameter | Description | Default | 
|---|---|---|
| "format"format="format" | Format of one line, may include any variable which is supported by macro REVINFO | r$rev - $date - $wikiusername | 
| topic | Topic name, can be in web.topicformat | current topic | 
| web | Web name | current web | 
| versions | 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 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 | 
| Parameter | Description | Default | 
|---|---|---|
| nrev | Number of revisions to show. Ignored if versionsis specified, or if bothrev1andrev2are specified. | 10 | 
| rev2 | Newest revision to show | rev1+nrevifrev1is specified, latest revision otherwise | 
| rev1 | Oldest revision to show | rev2-nrev | 
| reverse | 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
HISTORYPLUGIN_NREV is set,  it overrides the default number of revisions shown in history when the topic History link is
selected.  For example, the following setting changes the revisions shown to 5.   Copy this setting into a topic to enable it for a pariticular topic,
user, Web, or site wide.   See System.PreferenceSettings.
* Set HISTORYPLUGIN_NREV = 5
r3 - 17 Feb 2005 - 09:56 - AnUser r2 - 31 Dec 2004 - 10:22 - AnotherUser r1 - 15 Nov 2003 - 01:23 - YetAnotherUserFor a more complex example see the attached
oopshistory.tmpl which also allows the comparison of two selected revisions.
Example screenshot of the topic history with HistoryPlugin enabled and working with CompareRevisionsAddOn and RevCommentPlugin.

cd /path/to/foswiki perl tools/extension_installer <NameOfExtension> installIf you have any problems, or if the extension isn't available in
configure, then you can still install manually from the command-line. See https://foswiki.org/Support/ManuallyInstallingExtensions for more help.
Test if the installation was successful: | Name | Version | Description | 
|---|---|---|
| Foswiki::Plugins::ZonePlugin | >=1.0 | Required. required for Foswiki < 1.1 | 
| 05 Feb 2025: | 1.21 Foswikitask:Item15453: properly implement HISTORYPLUGIN_NREV | 
| 16 Nov 2020: | 1.20 Foswikitask:Item14992: always display date and times of revisions; clean up templates | 
| 22 Jan 2018: | 1.14 Foswikitask:Item14471: HistoryPlugin not properly rendering date tokens. Foswikitask:Item14605: Unescaped brace in Regular Expression, Perl 5.27.8. | 
| 08 Sep 2015: | 1.13 Remove RevCommentPlugin hooks from the templates. | 
| 15 Mar 2015: | 1.12 Version released with Foswiki 2.0 Foswikitask:Item12881: Add HISTORYPLUGIN_NREV setting. | 
| 28 Nov 2012: | 1.11 Version released with Foswiki 1.1.6. Change to perl version strings | 
| 11 Apr 2011: | 1.10 Version released with Foswiki 1.1.3. Only a minor change related to how the plugin is being upgraded | 
| 13 Mar 2011: | 1.9 Arthur Clemens: added parameter versionsas a more versatile alternative torev1,rev2,nrevandreverse. | 
| 13 Mar 2011: | 1.8 Arthur Clemens: fix rendering of REVINFOdate and time parameters; add unit tests. | 
| 27 Dec 2010: | 1.7 Arthur Clemens: update of screen layout. | 
| 31 Jul 2010: | 1.6 Paul Harvey: Foswikitask:Item9415 - Documentation updates | 
| 09 Feb 2009: | 1.5 Kenneth Lavrsen: Small cosmetic updates. Changed the author name to non liked to avoid bogus links to Main.loginname. Changed some CSS names to Foswiki that I missed in 1.4 | 
| 08 Dec 2008: | 1.4 Kenneth Lavrsen: Changed the author to myself. JChristophFuchs is the original author but announced in 2006 that he no longer maintains this plugin. So now I officially take the task as maintainer. Plugin is changed to Foswiki namespace and tested and works under Foswiki 1.0.0 | 
| 09 Dec 2007: | 1.3 Kenneth Lavrsen: Restored the features that were lost in revision 1.1 including: Showing comments made by RevCommentPlugin, selection of render styles "interweave" and "side by side" provided by CompareRevisionsAddOn, and link to rdiff history. Restored compatibility with older releases, which means removing the dependency of 4.2 only CSS feature. Updated the default rev format to 4.X format. | 
| 13 Nov 2007: | 1.2 Michael Daum: removed cruft from plugin, updates to use modern APIs, added some more flexibility to create a diff interface, removed plugin topic options | 
| 07 Nov 2007: | 1.1 Arthur Clemens: improved user interface. | 
| 19 Jan 2007: | 1.002 Corrected coding error that causes the plugin to fail with HISTORY tag in topic | 
| 9 Apr 2006: | 1.001 Updated for new PatternSkin | 
| 17 Feb 2005: | Initial version | 
| Author | Foswiki:Main.KennethLavrsen | 
| Version | 1.21 | 
| Release | 05 Feb 2025 | 
| Description | Shows a complete history of a topic | 
| Repository | https://github.com/foswiki/distro | 
| Copyright | 2006, JChristophFuchs; 2008-2025 Kenneth Lavrsen and Foswiki Contributors | 
| License | GPL (GNU General Public License) | 
| Home | https://foswiki.org/Extensions/HistoryPlugin | 
| Support | https://foswiki.org/Support/HistoryPlugin | 
 AIP8
 AIP8
 ASTROdwg
 ASTROdwg
 AgricultureSummit
 AgricultureSummit
 AustraliaNewZealandForum
 AustraliaNewZealandForum
 AviationDWG
 AviationDWG
 BigDataDwg
 BigDataDwg
 BusinessValueCommittee
 BusinessValueCommittee
 CATdiscuss
 CATdiscuss
 CDBswg
 CDBswg
 CRSdefinitionResolver
 CRSdefinitionResolver
 CRSdwg
 CRSdwg
 CanadaForum
 CanadaForum
 ChinaForum
 ChinaForum
 CitSciIE
 CitSciIE
 CitizenScienceDWG
 CitizenScienceDWG
 ClimateChallenge2009
 ClimateChallenge2009
 CoveragesDWG
 CoveragesDWG
 DiscreteGlobalGridSystemsDWG
 DiscreteGlobalGridSystemsDWG
 EMSpectrumDWG
 EMSpectrumDWG
 EMspectrumDWG
 EMspectrumDWG
 ERGuidance
 ERGuidance
 EUforum
 EUforum
 EarthCube
 EarthCube
 EnergyUtilitiesDwg
 EnergyUtilitiesDwg
 GML
 GML
 GeoSciMLswg
 GeoSciMLswg
 GeoScienceDWG
 GeoScienceDWG
 GeocodingAdHoc
 GeocodingAdHoc
 Geospatial3DMS
 Geospatial3DMS
 HealthDWG
 HealthDWG
 HydrologyDWG
 HydrologyDWG
 I15swg
 I15swg
 ILAFpublic
 ILAFpublic
 ISGdwg
 ISGdwg
 Ideas4OGC
 Ideas4OGC
 JAG
 JAG
 JSONsubGroup
 JSONsubGroup
 JapanAssistance
 JapanAssistance
 LandAdminDWG
 LandAdminDWG
 MLSdwg
 MLSdwg
 Main
 Main
 MarineDWG
 MarineDWG
 MassMarket
 MassMarket
 MetOceanDWG
 MetOceanDWG
 NREwg
 NREwg
 NetCDFu
 NetCDFu
 NordicForum
 NordicForum
 OGC
 OGC
 PointCloudDWG
 PointCloudDWG
 QualityOfService
 QualityOfService
 SWEProCitSci
 SWEProCitSci
 Sandbox
 Sandbox
 SmartCitiesDWG
 SmartCitiesDWG
 System
 System
 TemporalDWG
 TemporalDWG
 UKIAP2013
 UKIAP2013
 UrbanPlanningDWG
 UrbanPlanningDWG
 Vocabulary
 Vocabulary
 WCTileServiceSWG
 WCTileServiceSWG
 WPS
 WPS
 WaterML
 WaterML
 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.