User:Terasail/Edit Request Tool

If you have any suggestions on how to improve the tool, or run into any problems with usage. Please add a section to the talk page so that they can be addressed.

Information
Edit Request Tool is a userscript which allows users to reply, close or remove protected edit requests. This will work on Interface, Full, Template, Extended and Semi protected edit requests. The tool also allows for the changing of edit request levels (Template &#8594; Semi) and changing/adding edit request page targets. The tool will automatically sign responses and remove duplicate signatures. There is a live preview of your response as it is created and submitted.

How to use
Add the following to your common.js page: importScript('User:Terasail/Edit Request Tool.js'); // User:Terasail/Edit Request Tool

Answering edit requests
On each edit request box there will be a respond button (for open requests) or a blue icon button (for closed requests). When clicked these will open the response menu of the tool.

There is a "Quick options" section and a "Custom response" section. When any quick option buttons or the "submit" button is clicked a popup message will ask you to confirm that you wish to edit the page. The template responses will apply the correct version of EP depending on the protection level of the template (EP/EIp/ETp/EEp/ESp).

This tool does not require a response in order to change the taget pages of the edit request or to change the template "level" (Full/Template/ECP/Semi). To do this just use the "" to change the taget pages, or use the "" to select the level. Then just use the submit button while leaving "" blank and it will change one or both of these parameters without adding any response.

Respond button
This will open up the menu which will allow you to reply to the edit request as well as other functions, the menu will appear directly below the edit request box and will appear as a button with blue "Respond" text and a blue pencil icon over lines.

The following are the 8 main buttons:
 * Remove (This will appear as a red trash icon)
 * Close / Reopen (This will appear as a flag icon)
 * Done (This will add the "done" template response)
 * Unclear: X-Y (This will add the "Unclear: x-y" template response )
 * WP:Reliable (This will add the reliable sources required template response )
 * WP:Consensus (This will add the "consensus required" template response )
 * Answered (This is a checkbox)
 * Submit

Preview
There is a preview box which will show the output of the request when adding a template response. This will be updated with each character as a custom response is applied and when a reply is submitted then the preview will show the output, even if a quick response is used.

First Dropdown
This will have the different protection levels and can be used to change the protection level of the template if the page protection changes. This can be used without a reply option if you click the Submit button without selecting a reply option.

Multi input box
This will be labled "Target Pages" and should have the target page / pages of the edit request. This is for when there are multiple targets of the request or the request could not be placed on the associated talk page. If all targets are removed, the edit request will default to target the page associated to the talk page.

Reply option dropdown
This dropdown menu has every template response created for edit requests, to add an additional message onto the end of the template, use the text input box. To add the reply, click the Submit button.

Text input box
This requires the reply option dropdown to be used

To add additional text just type into the input box. A signature will automatically be added to the end of the text, and any duplicate signatures will be removed.

Answered checkbox
This is a checkbox which will automatically be active. When the toggle is active yes will be set. But if it is not selected no will be set on the template.

Close / Reopen (unFlag / flag Icon) Button
The Icon button which is a flag with a line through it (unFlag) will mark the template as yes and not add a message or signature (Used for answered requests by others that were not closed).

For closed requests there will be a flag icon which will mark the template as no and not add a message or signature (Used to reopen requests that should not be marked as answered).

Remove (Red Trash Icon) Button
The red icon button with a white trash image on it will display a button and a checkbox:

The "Remove section" button will remove the entire section on the talk page where the edit request is placed (Used to remove vandalism edit requests).

There is a checkbox that will appear once the red icon is selected and then the "Remove section" button is clicked, it will create a new section on the talk page of the user who created the edit reuqest, this will create a new section with Empty edit request.

Respond to closed requests
In the small box for closed requests there will be an icon button showing: Blue Pencil over lines.

The blue edit icon will open up a similar box as the standard edit request, this will have the same effect as the.

Problems

 * It will only be able to reply to the top edit request (If there is more than 1 in a section) - This does not apply when seperated by headers (h3, h4...).
 * The sticky header with vector 2022 may somtimes interfere with the dropdown menu of reply options. This has been reported (T318185).

Conflict of Interest
Conflict of interest edit requests can not be closed by this script. If you want to close conflict of interest requests, then please see COI Request Tool for more information.