Wikipédia:LiveRC/Documentation/Extensions/AskForRevisionDeleteFromHistExtension/en
AskForRevisionDeleteFromHistExtension.js is an extension for LiveRC. It allows non-sysop users to ask for a revision delete with checkboxes and button added in an history preview.
Overview
modifierThe image shows an history preview with the extension enabled.
Three elements come from the extension :
- 1 : Checkboxes, to select the revision(s) to delete
- 2 : Button to lauinch the revisiondelete request
- 3 : Pop-up asking the reason of the request (visible after the button is clicked)
Customization
modifierThe texts are customizable through the Texts 1 and Texts 2 tabs of the config panel.
The edit summary (wich is also the section title), is customizable throught the Texts 3 tab.
In the Params tab, it is possible to customize :
- The page where the request is done. "Magic words" can be used to define a sub-page on a per-date basis:
$day
for the day (here :4
)$month
for the month name (firstletter = lower case) (here :novembre
)$Month
for the month name (firstletter = upper case) (here :Novembre
)$year
for the year (here :2024
)
- The (substed) template used to perform the request (without
{{
and}}
). It accepts three parameters :$page
: name of the targeted page, where revision(s) have to be deleted$url
: the complete URL to the deleterevision special page$reason
: the reason for the revision delete request
- Example (all uppercase text can be edited) :
"TEMPLATENAME|PARAMPAGE=$page|PARAMURL=$url|PARAMREASON=$reason"