User:Evad37/SPS
{{infobox user script
| name = Signpost Publishing Script
| desc = Automates Signpost publication steps
| author = Evad37
| version = 2.4.2
| updated = {{date|2020-12-04}} ({{History|User:Evad37/SPS.js|history}})
| source = {{flatlist|
- Main script
- sandbox
- {{Compare pages|User:Evad37/SPS.js|User:Evad37/SPS/sandbox.js|diff}}
}}
| mainsource = User:Evad37/SPS.js
| skins = {{plainlist|
- {{y&}} Vector
- {{y&}} Monobook
- {{y&}} Modern
- {{y&}} Cologne Blue
- {{y&}} Timeless
- {{n&}} MinervaNeue
}}
| browsers =
| logo =
| screenshot =
| screenshot-caption =
}}
Signpost Publishing Script (source) – automates the many, many steps in publishing the Signpost, as described at Wikipedia:Wikipedia Signpost/Newsroom/Resources#Publication. See also User:JPxG/SPS.js (forked version, in use as of 2023)
Installation
Add the line {{tlsx|lusc|User:Evad37/SPS.js}} to Special:MyPage/common.js.
But note that this script will only work for users specified in the source code. Evad37, or any interface administrator, can add (or remove) approved users – generally, this should only be the editor(s)-in-chief and the publication manager(s).
Also, this script assumes users have the following permissions - please request them if you do not already have them.
- Page mover (or administrator) on English Wikipedia
- This ensures redirects are not left behind when moving pages during publication.
- Template editor (or administrator) on English Wikipedia
- Required to edit Wikipedia:Wikipedia Signpost/Templates/Issue, as of October 2021.
- Mass message sender (or administrator) on English Wikipedia
- This allows posting the Signpost on the talkpages of English Wikipedia subscribers.
- Mass message sender (or administrator) on Meta
- This allows posting the Signpost on the talkpages of subscribers on other projects.
Usage
On the Wikipedia:Wikipedia Signpost/Newsroom or Wikipedia:Wikipedia Signpost/Newsroom/Coordination page you'll get a "Publish next edition" link, in the "More" dropdown (Vector skin) or on a tab (Monobook skin) at the top of the page.
Before starting make sure that all the articles are ready to go, are subpages of Wikipedia:Wikipedia_Signpost/Next_issue/ (so the script can find them), and have a completed {{tld|Signpost draft}} template (so the script can grab the title and blurb). If the
template is missing or blank, the script will use "[title]: [blurb]" for the RSS description. If the
template is missing or does not have a previous issue date specified, the script will attempt to find the previous issue and fill it in.
Once you click on the "Publish next edition" link, you'll get a few interface screens where you:
- choose to get started with publishing for real, or do a "dry run" simulation where no edits/moves are made
- select which pages are to be published
- adjust the order {{small|(as used for the main Signpost page, single page edition, etc)}}, and adjust the titles & blurbs if needed
Then, if everything goes right, you can just click the "Publish" button to do all the on-wiki publishing tasks (i.e. everything apart from announcing on the email list, Twitter, and Facebook).
Screenshots
File:SignpostPublishingScript-screen0.png
{{-}}
Initial screen.
----
File:SignpostPublishingScript-screen1.png
{{-}}
Select articles to publish. Only the ticked articles will be published; the unticked articles will not be touched.
----
File:SignpostPublishingScript-screen2.png
{{-}}
Adjust the order of sections by clicking drag-and-dropping with the mouse.
----
File:SignpostPublishingScript-screen3.png
{{-}}
Publication progress screen. The current task is highlighted in blue. Some tasks take longer than others.
----
File:SignpostPublishingScript-screen4.png
{{-}}
Simulated (dry-run) publication completed. The main page and the mass message can be previewed, and their wikitext shown, by clicking on the buttons.
{{User:Evad37/Scripts navbox}}