Page MenuHomePhabricator

Highlight selected revisions in pagehistory
Open, Needs TriagePublicFeature

Assigned To
None
Authored By
Stang
Mar 13 2022, 5:11 PM
Referenced Files
F35004311: image.png
Mar 13 2022, 5:11 PM
F35004313: image.png
Mar 13 2022, 5:11 PM
F35004305: image.png
Mar 13 2022, 5:11 PM
Subscribers

Description

Feature summary:
Add a button to highlight selected revisions in history page.

Use case(s):
Sometimes user need to point out one or a set of revision(s) of a page. They could give "oldid" of a specific page, but it is not intuitive enough for other users. To solve this problem, user could select a set of revisions, pree "Highlight" button to generate a new URL, then send this URL to other users, and others could see a history page with several revision highlighted, which helps them quickly locate the relevant revisions.

Several screenshot of this feature. Figure 1 shows the highlight button. In Figure 2, a user could select several revisions they want to highlight, and then click the "Highlight selected revisions" button. They will get a URL looks like: /w/index.php?title=[title]&action=history&highlight=[oldid1],[oldid2],[oldid3].

image.png (390×969 px, 33 KB)

image.png (914×1 px, 311 KB)
image.png (902×1 px, 305 KB)

I use ".not-patrolled" style in file resources/src/mediawiki.special/newpages.less for highlight.

#pagehistory li.highlighted {
    background-color: #FFA !important;
}

Benefits:
Specify a (set of) page revision(s) and show to other users. Useful in co-writing, revision-delete request etc.