Operator: Wugapodes (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 03:25, Monday, June 24, 2019 (UTC)
Function overview: Transcludes an article's WP:DYK nomination on the article talk page.
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python
Source code available: Yes dev branch
Links to relevant discussions (where appropriate): Wikipedia talk:Did you know#Proposal: automated notification of DYK nomination on article talk pages
Edit period(s): Daily
Estimated number of pages affected: About 20 nominations are added a day, so probably that many pages would be affected per day, not counting the first run which would likely be around 500-600.
Namespace(s): Talk
Exclusion compliant (Yes/No): Yes
Function details: Did you know nominations are contained on their own subpages in the Template namespace and transcluded on the nomination page. Once per day, the bot will go through the nominations and transclude the nomination subpage into a section on the article's talk page. It will not transclude the nomination if the page already has the nomination transcluded or if the page has ((bots|deny=.*?WugBot.*?))
or ((nobots)) anywhere in its text. It will be similar in result to what Legobot's Task 33 does with GA reviews. An example can be seen at User:WugBot/DYKNoteTest.
Beyond the bot proper, I plan to make changes to ((DYK top)) and ((DYK bottom)) (one idea currently visible in their sandboxes) that will keep the review visible when transcluded in the Talk namespace. Currently, when a DYK nomination is closed, the ((DYKsubpage)) template is substed which substs DYK top and bottom which wraps the whole nomination in <noinclude> tags so it doesn't show on WP:DYKN. This would prevent it from showing up on the article talk page as well, which is not ideal. I'm still finalizing how I plan to fix this, the current plan is only having the <noinclude> tags added if transcluded outside the Talk namespace. I'm not sure if this works and am trying to figure out how to test it. But worst case, they may be modified to no longer add <noinclude>. Since WugBot's Task 2 removes closed DYK noms within two hours, this change should have minimal impact on the appearance of the pages.
Approved. As per usual, if amendments to - or clarifications regarding - this approval are needed, please start a discussion on the talk page and ping. --TheSandDoctor Talk 23:31, 20 July 2019 (UTC)[reply]