Wikipedia talk:ReFill

[edit]

T305178 Hi, when creating archive links, archiveurl=, it's also creating deadurl=yes, which is a deprecated parameter, and therefore errors. Please replace with |url-status=dead. Thanks for setting up the tool, I use it loads, Tom B (talk) 13:20, 31 May 2023 (UTC)[reply]

@Tpbradbury: thanks Tom, this is known about, and once we've got our house in order this will get fixed at last. I will archive this thread for now. Curb Safe Charmer (talk) 16:48, 9 June 2023 (UTC)[reply]
I have unarchived this section, since it is a perennial topic for a few years now. It looks like some slow development has happened and has stalled. See T352379 for details. – Jonesey95 (talk) 21:06, 20 April 2025 (UTC)[reply]
Same issue on §Invalid parameter usage.––kemel49(connect)(contri) 12:38, 8 July 2025 (UTC)[reply]

deadurl?

[edit]

Why does refill use the non-existent parameter deadurl=y? Can't someone just change it in the code or something to be url-status=dead instead? Schützenpanzer (Talk) 20:26, 20 April 2025 (UTC)[reply]

See #Error on dead links above. This has been happening since 2019. – Jonesey95 (talk) 21:06, 20 April 2025 (UTC)[reply]

Invalid parameter usage

[edit]

I edited using refill on a page and it added a parameter |deadurl= which shown as invalid, i guess |url-status= was an appropriate parameter but refill forgot that.––kemel49(connect)(contri) 12:36, 8 July 2025 (UTC)[reply]

Two links, still

[edit]

As I noted here three(!) years ago:

I still get, on en.Wikipedia, two entries under "Tools":

  • reFill 2 New!
  • reFill(o)

Do we expect a fix? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:38, 5 April 2025 (UTC)[reply]

@Pigsonthewing: This is because in your common.js you have a reference to https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js which inserts those two links. Zhaofeng Li has long since left Wikipedia. Nobody but him can edit pages in his user space on meta. The workaround would be to copy the script, remove the bits no longer needed, save to a new location and then reference that in your common.js. Curb Safe Charmer (talk) 16:37, 5 April 2025 (UTC)[reply]
"remove the bits no longer needed"
If I knew which they were, I wouldn't be asking here. I also note that the page whose talk page we are on says that is the correct link to use, so me forking the script into my own userspace won't help anyone else. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:46, 5 April 2025 (UTC)[reply]
A fork of that script might exist. User:Jonesey95/refill.js used to be one but was deleted. You could check WP:US/L for forks, or request a new fork with your changes at WP:US/R. –Novem Linguae (talk) 18:03, 5 April 2025 (UTC)[reply]
@Pigsonthewing I have made a fork that merges the two links into one reFill button, and moves it to the Tools > Actions menu on Vector 2022 or Tools menu in Vector 2010. User:Qcne/reFill-singlelink.js qcne (talk) 13:02, 25 August 2025 (UTC)[reply]
Thank you.
Can we all agree that this should replace the link given on Wikipedia:reFill, and any similar pages? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:16, 25 August 2025 (UTC)[reply]
I just added it but am not seeing the link (in Vector 2010). Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:22, 25 August 2025 (UTC)[reply]
Just to point out that there is a similar conversation at the bottom of this page - a merge, of sorts, may be preferable before folks go off in different directions ! - Derek R Bullamore (talk) 16:36, 25 August 2025 (UTC)[reply]
Is that not the same fork? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:42, 25 August 2025 (UTC)[reply]
@Pigsonthewing Novem created a much cleaner one here: User:Novem Linguae/Scripts/ReFillLink.js.
Try that and purge cache. qcne (talk) 17:31, 25 August 2025 (UTC)[reply]
Thanks again, I have that working now.
It's not under "Tools" though, but "More".
My question about updating the link(s) stands. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:51, 25 August 2025 (UTC)[reply]
@Pigsonthewing I have updated Wikipedia:ReFill and will shortly add it to Wikipedia:User scripts/List. I think that's the only places it is. qcne (talk) 17:54, 25 August 2025 (UTC)[reply]
If you want the script in "Tools" let me know. Should be easy to create a config setting for that. Or if you can live with it in the "More" menu, then it's less code :) –Novem Linguae (talk) 18:04, 25 August 2025 (UTC)[reply]
Thank you. "More" is fine by me; I was just confused by the earlier description. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 18:51, 25 August 2025 (UTC)[reply]
Turns out I am just crap at describing things. qcne (talk) 18:52, 25 August 2025 (UTC)[reply]
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:28, 28 August 2025 (UTC)[reply]

Fork to merge the two reFill buttons into one

[edit]

I have made a fork of reFill that:

- merges the two links into one reFill button.

- moves it to the Tools > Actions menu on Vector 2022 or Tools menu in Vector 2010.

User:Qcne/reFill-singlelink.js

EDIT: After some discussion with Novem off-wiki, he's created a beautifully simple version here: User:Novem Linguae/Scripts/ReFillLink.js

You'll need to remove / uninstall the existing User:Zhaofeng_Li/Reflinks.js from your common.js and purge the cache. qcne (talk) 13:04, 25 August 2025 (UTC)[reply]

@Qcne. Nice work. Thanks. I think I uninstalled the old version of that script because it was making 2 API queries on every page. I took a quick peek at this one and sadly it is still doing the same thing. It's making API queries to a dead URL too, for example https://refill.toolforge.org//api.php?action=i18n&callback=jQuery371049907755910564133_1756136129227&_=1756136129228. The problematic code is around line 142. I wonder what Messages API keys it is trying to look up. It appears to be failing to get anything and instead falling back to some kind of hard coded default, and the hard coded defaults work fine. Maybe we can just delete the API call entirely and always use the hard coded default? –Novem Linguae (talk) 15:42, 25 August 2025 (UTC)[reply]
All fixed in User:Novem Linguae/Scripts/ReFillLink.js. –Novem Linguae (talk) 18:05, 25 August 2025 (UTC)[reply]

Bug: Content removed

[edit]

In this edit, merging to citations to the same source, ReFill removed a |quote= value from the second citation. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:28, 28 August 2025 (UTC)[reply]

reFill not working

[edit]

Nothing happens when I click the arrow button at https://refill.toolforge.org/ng/. GTrang (talk) 00:17, 5 September 2025 (UTC)[reply]

I get the same. It let me save preferences though, if that helps. awkwafaba (📥) 03:06, 5 September 2025 (UTC)[reply]
 Fixed I think. I restarted the API server. –Novem Linguae (talk) 08:32, 5 September 2025 (UTC)[reply]