Find blacklist entryEdit

Thanks for this. I have one request though, could this be hooked into the {{BLRequestLink}} and’s {{WLRequestLink}}? Both are used on the blacklists and whitelists. —Dirk Beetstra T C (en: U, T) 04:24, 20 December 2020 (UTC)

@Beetstra what do you mean by hooked into? What do those templates do? DannyS712 (talk) 07:02, 20 December 2020 (UTC)
With 'hooking into': I would like to have a 'find entry' link that calls your script, reporting back the results on these links.
For 'BLRequestLink' it is to specify a specific link for the blacklist (either adding or removing), 'WLRequestLink' (on en.wikipedia) is specifically used on the whitelist but basically doing the same as BLRequestLink:
  • Link/text requested to be blacklisted:
The blacklisting script (BLHandler and the WL and BL scripts in my userspace) take that link, convert it to a regex and add/remove it to/from the blacklist and whitelists, like they do with the domains out of {{LinkSummary}} (the 'find entry' is sometimes also informative on the domains reported in LinkSummaries).
Thanks. --Dirk Beetstra T C (en: U, T) 08:13, 20 December 2020 (UTC)
Hmm, okay. So this will need to include the regex handling your scripts have, and also have a parameter to pre-set the url to search for. Might take me a bit DannyS712 (talk) 09:08, 20 December 2020 (UTC)
Is your script matching an url against all regexes? In that case it is a matter of doing the same with parameter '1' (or 'link'). --Dirk Beetstra T C (en: U, T) 11:16, 20 December 2020 (UTC)
The script is testing the url against the blacklist api first. If it matches (and thus the url is blacklisted) it retrieves the contents of the local spam blacklist, filters the lines, and then checks the url against each regex until one matches. If there is no match, it does the same for the global blacklist DannyS712 (talk) 20:52, 20 December 2020 (UTC)
Okay, you can now set the link= param to preload a value. Is that what you were looking for? DannyS712 (talk) 04:29, 22 December 2020 (UTC)



The Editing team has scheduled a major update to mw:Extension:DiscussionTools (the new Reply tool) for next week's deployment train. Since you invoke the feature from a script (I do, too), you're probably going to see that update next week, before it's officially released in the mw:Beta Feature system. The new update will use a similar system for starting a ==New discussion==. As before, full-page wikitext editing will not be affected. There is more information on the project page at mw:Talk pages project/New discussion.

If you encounter problems next week, please ping me or leave a note on the talk page for the project. Thanks, Whatamidoing (WMF) (talk) 19:49, 12 January 2021 (UTC)

@Whatamidoing (WMF) thanks for letting me know DannyS712 (talk) 23:56, 12 January 2021 (UTC)

re-opening previous requestEdit

Dear DannyS712,
in your talkpage archive 2 is a request User_talk:DannyS712/Archive_2#Help_activating_translation - from user:Wirjadisastra with regards to how to get the page Wiki Masyarakat Adat/Berkas set up for translation. It was requested after the original message and so you mightn't have seen the followup. This page is the most visually impressive part of that project's report, and so as the grant-officer from the WMF associated with the project I would really like to help it be seen by as many people as possible. I don't suppose you could help set it up so that it can match the Indonesian equivalent - see the redlink for "Berkas" at Wiki_Masyarakat_Adat/en. I'm sorry if this is an unusual request, but I don't wish to ruin or cause extra work for user:Wirjadisastra by fiddling with templates I am not confident with. Sincerely, LWyatt (WMF) (talk) 16:44, 17 January 2021 (UTC)