Wikipedia talk:WikiProject Articles for creation/Helper script/Archive 2: Difference between revisions
Content deleted Content added
ClueBot III (talk | contribs) m Archiving 1 discussion from Wikipedia talk:WikiProject Articles for creation/Helper script. (BOT) |
ClueBot III (talk | contribs) m Archiving 1 discussion from Wikipedia talk:WikiProject Articles for creation/Helper script. (BOT) |
||
Line 390:
::Given that most web forms don't clear when changing one element, I personally would rather have a pop-up "copy your text first" alert than sudden loss of something I may have spent several minutes typing. Alternatively, can the contents be assigned to a variable and then re-inserted into the box after the reset? –[[User:Darkwind|Darkwind]] ([[User talk:Darkwind|talk]]) 01:58, 10 August 2015 (UTC)
::{{Ping|APerson}} Forgot to ping. –[[User:Darkwind|Darkwind]] ([[User talk:Darkwind|talk]]) 01:59, 10 August 2015 (UTC)
== Teahouse invite ==
Can we do something about the teahouse invite? I just visited one persons talk page, who has had their article declined 5 times, and there were 4 teahouse invitations on the page. It's starting to look like spam.
Can the script check if an article has already been declined once before, and if so, not have the teahouse invitation box ticked? - [[User:Happysailor|<span style="color:#8B0000">'''Happysailor'''</span>]] [[User talk:Happysailor|<sup><span style="color:Green"><i>(Talk)</i></span></sup>]] 09:45, 10 August 2015 (UTC)
:You can blame me for this, actually. In short, I monkeyed around with the logic that put [[:Category:Wikipedians who have received a Teahouse invitation through AfC|the marker category]] on users' talk pages. The script checks for the presence of that category [https://github.com/WPAFC/afch-rewrite/blob/master/src/modules/submissions.js#L2032-L2051 here]. On {{diff2|612414390|10 June 2014}}, I decided to apply a template [[Help:Safesubst|"design pattern"]] to {{tlu|Wikipedia:Teahouse/AfC Invitation}}, which, unknowingly, borked the logic and resulted in the category ''not'' being applied on pages where it was needed. On {{diff2|675025982|7 August 2015}}, I reverted this after [https://en.wikipedia.org/w/index.php?title=User:APerson/sandbox&action=history&offset=201508&limit=10 realizing] the consequences.
:I can run a bot task to fix the user talk pages missing a category and the user talk pages with too many invitations; coding that up right now. [[User:APerson|APerson]] ([[User talk:APerson|talk!]]) 20:16, 11 August 2015 (UTC)
::How diligent of you, thank you! <small>[[User:FoCuSandLeArN|FoCuS]]</small> [[Special:Contributions/FoCuSandLeArN|<span style="color: green">contribs</span>]]; [[User_talk:FoCuSandLeArN|<span style="color: dark blue">talk to me!</span>]] 21:45, 11 August 2015 (UTC)
::Thanks, FoCuS. {{diff2|675695556|Here's}} an example of the bot fixing a user talk page. Most of the difficulty lies in the fact that we're dealing with a user talk page notice, so it's subst:'ed; thus, there's no easy way to find all of these substitutions without grinding through every page in the user talk namespace. (Unless I've missed something terribly obvious.) BRFA: coming soon to a project administration page near you. [[User:APerson|APerson]] ([[User talk:APerson|talk!]]) 03:11, 12 August 2015 (UTC)
:::{{BOTREQ|brfa|APersonBot 3}}. [[User:APerson|APerson]] ([[User talk:APerson|talk!]]) 03:32, 12 August 2015 (UTC)
::::Cheers for that. In any case, it's not such a big issue if you don't get all of them. The main point is that new repeated declines don't place duplicate invites. I appreciate your pursuit for perfection nonetheless. {{smiley}} <small>[[User:FoCuSandLeArN|FoCuS]]</small> [[Special:Contributions/FoCuSandLeArN|<span style="color: green">contribs</span>]]; [[User_talk:FoCuSandLeArN|<span style="color: dark blue">talk to me!</span>]] 13:05, 12 August 2015 (UTC)
|