Extension:RevisionSlider/sv
RevisionSlider Utgivningsstatus: stabil |
|
---|---|
File:Screenshot Revision slider EN large.png | |
Genomförande | Användargränssnitt |
Beskrivning | Adds a slider interface to the diff view allowing to easily move between revisions |
Författare | Wikimedia Tyskland (WMDE) |
Kompatibilitetsregler | Snapshots releases along with MediaWiki. Master is not backward compatible. |
MediaWiki | 1.25+ |
Förändringar i databasen | Nej |
Licenser | Ingen angiven licens |
Ladda ner | |
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Översätt tillägget RevisionSlider om det finns tillgängligt på translatewiki.net | |
Ärenden | Öppna ärenden · Rapportera en bugg |
The RevisionSlider extension adds a slider interface to the diff view, so that you can easily move between revisions.
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/RevisionSlider/sv</tvar>|Download]] and move the extracted <tvar name=name>
RevisionSlider/sv
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider%2Fsv - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'RevisionSlider/sv' );
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
Användning
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:
If you move the blue knob to a position left of the yellow knob, the yellow knob is automatically moved along, and vice versa if you move the yellow knob to a position right of the blue knob. | |
Use the backward and forward arrows to move through revision history and show older and newer revisions. |
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 "⧼revisionslider-preference-disable⧽" in your preferences under "Appearance" → "Diffs".
Technical Background
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.
Exempel
- The Thanks extension: phab: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.
Bakgrund
The RevisionSlider[1] is a feature to fulfill one of the top wishes of the German Community wishlist[2] 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.
Referenser
File:Wikimedia-logo black.svg | <translate> This {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is being used on one or more [[<tvar name=2>m:Special:MyLanguage/Wikimedia projects</tvar>|Wikimedia projects]].</translate> <translate> This probably means that the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is stable and works well enough to be used by such high-traffic websites.</translate> <translate> Look for this {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension's|skin's}} name in Wikimedia's <tvar name=2>CommonSettings.php</tvar> and <tvar name=3>InitialiseSettings.php</tvar> configuration files to see where it's installed.</translate> <translate> A full list of the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extensions|skins}} installed on a particular wiki can be seen on the wiki's <tvar name=ver>Special:Version</tvar> page.</translate> |
Screenshot Revision slider EN large.png |
- Pages with script errors
- Pages with broken file links
- Stable extensions/sv
- User interface extensions/sv
- Extensions with manual MediaWiki version
- Extensions with no license specified/sv
- Extensions in Wikimedia version control/sv
- All extensions/sv
- Extensions not in ExtensionJson
- Extensions used on Wikimedia/sv