Extension:RevisionSlider/zh

修订滑块（RevisionSlider）扩展添加滑块界面至修订视图，这样您可以更容易地在修订版本间移动.

Opt-out
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.

JavaScript钩
当新的修订被选择时，修订滑块使用AJAX重新加载差异页面. 一旦页面被重新加载，wikipage.content和wikipage.diff钩会被剔除. 如果用户JavaScript或扩展JavaScript在差异页面起作用，您可能需要监听这些钩.

例子


 * 感谢扩展 https://phabricator.wikimedia.org/rETHA0b241d4d296f488dc7d3a1f4260aa0e426b2d7f5#1493b925
 * 英语维基百科wikEdDiff小工具 https://en.wikipedia.org/w/index.php?diff=741585034&oldid=630494053&title=User:Cacycle/wikEdDiff.js

API调用和取得数据
除非您展开了该工具栏，工具不会进行任何API调用. 只有当用户展开了滑块时，它才取得有关修订版本的数据（修订版本id、时间戳、用户、摘要、大小和标记）. 工具只取得当前屏幕上可用修订版本的数据（最多500个修订版本），且有关额外修订版本的数据只当用户使用箭头在时间轴上向前或向后导航时才会加载.

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.

背景
修订滑块 是实现德语社群愿望单 最大愿望之一的功能，并由德国维基媒体协会（WMDE）的TCB团队开发. 它受DerHexer的revisionjumper小工具启发，并基于维基媒体基金会社群技术团队的原型.

Notes (for rather technical audience) on RTL issues discovered while developing the extension have been published on the separate subpage.