Ahecht/Scripts/potd-helper
Author(s)
UpdatedJuly 25, 2023
    (7 months ago)
Source
Beta
User:Ahecht/Scripts/potd-helper.js
User:Ahecht/sandbox/Scripts/potd-helper.js

User:Ahecht/Scripts/potd-helper.js is a script for submitting Pictures of the Day. It will create Template:POTD, update the local image description, and post notifications on the talk pages of the linked article, uploader, and nominator. It can auto-fill the image caption (based on the first paragraph of the linked article, which may require editing) and the names of the uploader and nominator.

Add the following line to Special:MyPage/common.js or meta:Special:MyPage/global.js to install:

if ([-1, 0, 6].includes(mw.config.get('wgNamespaceNumber'))) {mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Ahecht/Scripts/potd-helper.js&action=raw&ctype=text/javascript' );} //[[User:Ahecht/Scripts/potd-helper.js]]

Click on "POTDHelper" on the top toolbar (it may be hidden under the "More" tab or in the "Tools" menu) when you're on an article or a featured picture page, or go to Special:POTDHelper, to use the script. When run from an article it will suggest all images in that article in a drop-down menu (defaulting to the pageimage), when run from an image page it will suggest all articles that use that image, and when run from Special:POTDHelper you can use either of the "Autofill" buttons to generate the list of suggestions.

The script does extensive logging to the browser's developer console. If you encounter problems with the script, please open the console (see Help:CONSOLE) and copy and paste any messages from there when creating a bug report.

Version history

See also