|描述||Adds a slider interface to the diff view allowing to easily move between revisions|
|作者||Wikimedia Germany (WMDE)|
|Compatibility policy||Snapshots releases along with MediaWiki. Master is not backwards compatible.|
|許可||GNU General Public License 2.0 or later|
|問題||Open tasks · 報告臭蟲|
The RevisionSlider extension adds a slider interface to the diff view, so that you can easily move between revisions.
- Download and place the file(s) in a directory called
- Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'RevisionSlider' );
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
When on a diff page, the slider is collapsed by default and only a narrow bar labelled "Browse history" is visible at the top of the page. Click on that bar to expand the RevisionSlider.
Once expanded, the RevisionSlider fetches data about the revisions and allows you to navigate and compare revisions on the diff page.
Each bar represents a page revision.
To select the revisions you want to compare, use the yellow and blue knobs. The blue knob controls the newer revision, the yellow knob maps to the older revision.
There are several ways to do this:
Use the backward and forward arrows to move through revision history and show older and newer revisions.
If you are not using the RevisionSlider at all and also don't want to see the collapsed RevisionSlider bar at the top of the diff page, you can opt-out by checking Don't show the RevisionSlider in your preferences under Appearance -> Diffs.
- The Thanks extension https://phabricator.wikimedia.org/rETHA0b241d4d296f488dc7d3a1f4260aa0e426b2d7f5#1493b925
- The English Wikipedia wikEdDiff gadget https://en.wikipedia.org/w/index.php?diff=741585034&oldid=630494053&title=User:Cacycle/wikEdDiff.js
API calls & fetching data
Unless expanded, the tool is not doing any API calls. Only when the user expands the slider, it fetches data about revisions (revision-id, timestamp, user, comment, size and flags). The tool only fetches data for revisions that are currently visible on the screen (maximum 500 revisions) and data about additional revisions is only loaded when the user navigates back or forth on the timeline using the arrows.
The RevisionSlider is a feature to fulfill one of the top wishes of the German Community wishlist and is developed by WMDE's TCB team. It is inspired by DerHexer's revisionjumper gadget and based on a prototype by the WMF Community Tech team.
Notes (for rather technical audience) on RTL issues discovered while developing the extension have been published on the separate subpage.
|This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page.|