MediaWiki talk:DYK-nomination-wizard.js

This is an old revision of this page, as edited by Pppery (talk | contribs) at 00:48, 31 March 2024 (Interface-protected edit request on 24 March 2024: Done). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

MediaWiki namespace move

Please move this page to MediaWiki:DYK-nomination-wizard.js, so that it can be loaded by URL. See discussions: Wikipedia:Village pump (technical)/Archive 193#Proposal to turn the DYK helper into a gadget and Wikipedia talk:Did you know#DYK-helper script improvements and auto-loading.

Also, please apply some protection on Wikipedia:Did you know/Create new nomination – the page from which the script is invoked. ECP should be fine. – SD0001 (talk) 11:37, 3 November 2021 (UTC)Reply

  Done, although I upped the protection level to TE after reflection, since it looks like ECP is still only authorized in specific fields. Writ Keeper  16:46, 20 November 2021 (UTC)Reply

hlist moving from Common.css

At some point in the nearer rather than further future, .hlist styles will be removed from Common.css and Mobile.css in favor of TemplateStyles. This is a headsup to adjust what this script is doing. The replacement is at Template:Hlist/styles.css in case you wish to load the sheet in JavaScript instead. cc @SD0001 Izno (talk) 03:39, 24 December 2022 (UTC)Reply

please sync with User:SD0001/DYK-helper/withJsMode2.js (diff). This replaces use of .hlist with a hand-made bulleted list. cc @Izno. – SD0001 (talk) 05:20, 24 December 2022 (UTC)Reply

  Done Izno (talk) 05:23, 24 December 2022 (UTC)Reply

Interface-protected edit request on 21 March 2024

Please sync the changes from User:SD0001/DYK-helper/withJsMode2.js (diff). The following change(s) have been done:

  • Now shows the number of QPQs required in the interface, based on count of user's past nominations and whether the backlog mode is active.

SD0001 (talk) 11:21, 21 March 2024 (UTC)Reply

  Done, noting this creates a dependency on User:SDZeroBot/DYK nomination counts.json. — xaosflux Talk 13:24, 21 March 2024 (UTC)Reply

Interface-protected edit request on 24 March 2024

Please sync the changes from User:SD0001/DYK-helper/withJsMode2.js (diff). The following change(s) have been done:

  • Improve performance by not loading the big page User:SDZeroBot/DYK nomination counts.json on the client. Instead do it on the server by invoking a lua function in Module:NewDYKnomination. The module only being semi-protected is not a problem as only two numeric outputs from it are used. We also validate that they are numeric.

SD0001 (talk) 17:55, 24 March 2024 (UTC)Reply

  Done * Pppery * it has begun... 00:48, 31 March 2024 (UTC)Reply