Jump to content

User:Ahecht/Scripts/draft-sorter

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Ahecht (talk | contribs) at 02:24, 23 January 2024 (Language agnostic link-based article topic). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

draft-sorter
DescriptionSorts AfC drafts.
Author(s)Ahecht, based on User:Enterprisey/draft-sorter.js by Enterprisey
StatusStable
UpdatedJanuary 11, 2021; 3 years ago (2021-01-11)
Skin supportVector
Source
Beta
User:Ahecht/Scripts/draft-sorter.js
User:Ahecht/sandbox/Scripts/draft-sorter.js

A userscript to sort AfC drafts by adding WikiProject banners to their talk pages. This script adds the following features to User:Enterprisey/draft-sorter.js:

Installation instructions

Hint: It's much easier if you get ScriptInstaller, then navigate to User:Ahecht/Scripts/draft-sorter.js and click "Install" at the top.

However, here's the manual method:

  1. Place {{subst:iusc|User:Ahecht/Scripts/draft-sorter.js}} on Special:MyPage/common.js or a skin-specific page, like Special:MyPage/vector.js.
  2. Clear your cache and enjoy!

Usage

  • While on any draft page, go to the "Tools " menu at the top of your screen and click on "Sort draft".
  • The interface for adding WikiProject tags is displayed. You can click the "(add)" link next to any of the suggested WikiProjects or search for a WikiProject in the text box. WikiProjects already on the talk page are displayed in the text box but cannot be removed by this script.
  • Click Submit to add the WikiProject banners to the draft's talk page. When the edit is saved successfully, you are given the option to reload or proceed to a randomly selected Next draft. You can also click Skip to continue to the next draft without making any changes.
  • The draft-sorter interface is automatically opened on the next draft page.
  • Add submit and save, or skip.
  • Repeat, or close the script by hitting Cancel.

See also