Extension:RevisionSlider/nl

De RevisionSlider extensie voegt een schuifbalk toe aan het overzicht van de bewerkingsgeschiedenis, waardoor navigeren tussen verschillende versies van een pagina eenvoudiger wordt

Opt-out
Als u de RevisionSlider niet gebruikt en ook niet de ingeklapte balk ervan wilt zien op de pagina met de verschillen, dan kunt u een vinkje zetten bij Laat de paginageschiedenisbalk niet zien in uw voorkeuren bij Uiterlijk -> Verschillen.



Technische achtergrond


JavaScript Hooks
The RevisionSlider uses AJAX to reload the diff page when new revisions are selected. Once the page has been reloaded both the wikipage.content and wikipage.diff hooks are fired. If user JavaScript or extension JavaScript acts on the diff page you may need to listen to these hooks.

Voorbeelden


 * 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.

Achtergrond
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.