[go: up one dir, main page]

User:Terasail/COI Request Tool

User script
COI Request Tool
DescriptionCloses conflict of interest requests
Author(s)Terasail
StatusActive
First releasedJanuary 28, 2021; 3 years ago (2021-01-28)
UpdatedSeptember 1, 2024
    (2 months ago)
Skins
  • Vector (2022)
  • Vector legacy (2010)
SourceUser:Terasail/COI Request Tool.js

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
Name Total Users Active Users
COI Request Tool (source)11773

COI Request Tool is a userscript which allows users to reply, close or remove conflict of interest edit requests. This will only work on conflict of interest edit requests. It is based on the Edit Request Tool script.

How to use

edit

Add the following to your common.js page:

importScript('User:Terasail/COI Request Tool.js'); // [[User:Terasail/COI Request Tool]]

Answering edit requests

edit

On each COI request box there will be a respond button with a blue pencil icon. When clicked these will open the response menu of the tool.

There are three main sections to the response box: "Quick options", "Custom response" and "Preview".

Quick options

edit

When any Quick option buttons are clicked, this will make the specific change and ignore any changes made in the Custom response section (Including the watchlist selection).

The following are the 6 quick option buttons:

  • Remove: This will appear as a red trash icon and will remove the enitre section
  • Close / Reopen: This will appear as a flag/unflag icon and will open or close the edit request
  • Done: This will mark the request as answered and add the {{ECOI|d}} response
  • Go ahead: This will mark the request as "go ahead" and add the {{ECOI|g}} response
  • Promotional: This will mark the request as declined and add the {{ECOI|mpro}} response
  • Needs reliable sources: This will mark the request as declined and add the {{ECOI|rs}} response

Custom response

edit

The Custom response requires an option to be selected from the reply dropdown and additional text can be added. To make the edit, click the submit button.

Reply dropdown
edit

This dropdown menu has every template response created for COI requests ({{ECOI}}), 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
edit

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.

Preview

edit

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.

Problems

edit
  • 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).

Edit request tool

edit

Protected edit requests can not be closed by this script.
If you want to close Semi/Extended/Template/Fully protected requests, then please see Edit Request Tool for more information.