User:Evad37/Covery

Covery (source) is a script to assist in uploading non-free cover images for video games.

Browser requirements
A reasonably modern browser – from around 2016 or later – is required to use Covery. Specifically:
 * Edge: 14 or later
 * Firefox: 39 or later
 * Chrome: 42 or later
 * Safari: 10.1 or later
 * Opera: 29 or later
 * No version of Internet Explorer is supported (sorry)

Installation
To install the script, add the line: {{subst:lusc|User:Evad37/Covery.js}} to Special:MyPage/common.js.

Usage
When viewing articles, a new toolbox menu item is added: "Upload cover". Click this link to open a dialogue window, where you can select a file – a preview of the image will be shown. Fill out the rest of the form (including a valid file name that is not already in use on Wikipedia or Commons), then click the upload button.

The script will then: When finished, the article will be reloaded.
 * Resize the file, if the resolution is more than 100000 pixels
 * Upload the file
 * Create a talk page for the file with the project banner
 * Add the image to the article's infobox (along with caption and alt text if they were specified)
 * Edit the article talk page to remove the cover parameter from the project banner (if it is present)