Forum:Automatic file fixing (Client side)

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search
Forums: Yew Grove > Automatic file fixing (Client side)
Archive
This page or section is an archive.
Please do not edit the contents of this page.
This thread was archived on 26 June 2013 by Suppa chuppa.

Hello again RS Wiki.

While I was rolling on another wiki with Ozank, I found (or learned) this script.

The script will automatically fix file links (except files that are in this format: [[:File:BLABLABLA]], in which we should double check the WhatLinksHere.)

Example (numbered):

Fixing the link (1) 09:48, June 2, 2013 (diff | hist) . . (0)‎ . . m User blog:AnimeQueen97/Why "The Crystal Empire" episode is similar to Sailor Moon ‎ (Updating file links (automatic)) (top)

Moving the file (2) 09:48, June 2, 2013 (diff | hist) . . (0)‎ . . m File:FANMADE Cadance flying.gif ‎ (Jr Mime moved page File:FANMADE Cadence flying.gif to File:FANMADE Cadance flying.gif without leaving a redirect)

Also, there is a queue option that will move the files, but keep the pages to fix the links on.

I could ask the creator, Food, to make us fix the :File:Blablabla links for us. He would do it! :D.

So, I wanted to ask (or suggest) the allowance of using this script to move files (while double checking WhatLinksHere).

The script can be found [[w:c:dev:FileUsageAuto-update|here]].

Discussion

Comment - Any questions? ASK AWAY! — Jr Mime (talk) 20:42, June 2, 2013 (UTC)

Comment - Let me get this straight. This is going to prevent red file links? Blaze_fire.png12.png 22:21, June 2, 2013 (UTC)

There are 3 options: Normal move, fix & move or add to queue. If we all use fix & move, it will remove red file links (for the file you just moved) except linked files (like :File:Blablabla). — Jr Mime (talk) 22:41, June 2, 2013 (UTC)
Just wanted to be sure of it. Support Blaze_fire.png12.png 02:25, June 3, 2013 (UTC)

Question - Didn't we have a bot like this once except that it didn't work right.. sssSp7p.pngIjLCqFF.png 23:31, June 2, 2013 (UTC)

We have HairyBot, idk where he's gone. Also, he couldn't do multiple tasks at once. Maybe we can give this script to AWB bots or another kind of bot. — Jr Mime (talk) 23:35, June 2, 2013 (UTC)
Forum:RSW_image_renamer:_Tweaks. sssSp7p.pngIjLCqFF.png 23:45, June 2, 2013 (UTC)
That bot is dead long time ago. Wikia updated something and proof couldn't fix it. — Jr Mime (talk) 23:46, June 2, 2013 (UTC)
But how do we know that this bot you're proposing won't have the same issue? sssSp7p.pngIjLCqFF.png 23:47, June 2, 2013 (UTC)
I mean script. <.< sssSp7p.pngIjLCqFF.png 23:48, June 2, 2013 (UTC)
I've been using it on mlp and have no issues. Only one thing is it doesn't fix file links on the page (:File:Blablabla) and if you rename & replace 2 images on the same page, it will edit conflict and fail. I have enabled it on 2007rswiki if you want to try it on some random files. Also, check here. — Jr Mime (talk) 23:49, June 2, 2013 (UTC)
Hairr has just tested it on his wiki, and it updates :File:Blablabla. So, food has fixed it. — Jr Mime (talk) 23:52, June 2, 2013 (UTC)
I actually never fixed that... so I guess I'm going to need to look into how exactly it did that. Lol. --Foodbandlt 06:38, June 5, 2013 (UTC)
The script never submits more than one revision of any page no matter which option you choose. It can't really edit conflict with itself. --Foodbandlt 06:38, June 5, 2013 (UTC)
16:12:22 (UTC+10) <FoodbandltWell> It's *technically* impossible for it to edit conflict itself … because it only makes one edit to any page at one time.
Temujin 06:55, June 5, 2013 (UTC)
RSW image renamer was stopped due to renaming errors. Renaming something like book.png -> god book.png would also affect something like arrav book.png -> arrav god book.png It was nigh impossible to prevent his completely due to how files are found in two formats: [[File:Book.png|thumb|left]] and <gallery>Book.png</gallery>. I guess it's possible to improve the regex used, but it was a lot of work for minimal gain. We also left it massive tasks that weren't checked by the tasker, hence the hundreds of wanted file links. Proof stopped it due to it being buggy, not because it was broken by Wikia.
The bot that compressed images is likely the one being referred to here as there was a bug in Wikia's API that prevented some part of the process. cqm 13:32, 3 Jun 2013 (UTC) (UTC)

Comment - Bot tags (AWB or another one) should be better, since if the file is on tons of pages, it would spam RC. Queue will group edits, but still spam RC. — Jr Mime (talk) 23:44, June 2, 2013 (UTC)

This is lazy; I don't trust scripts like this, ever; and this will just make people overly zealous about moving files, something I can only see trigging bugs or being cause for some neglect. Just move & fix files yourself, people; it's not that hard. MolMan 03:58, June 3, 2013 (UTC)

Support - This will make it much easier for editors to move files, especially for those with a large number of links. Of course, there is still no excuse for leaving file links behind. This tool is not to let editors be lazy, it is to increase their productivity. 222 talk 06:36, June 3, 2013 (UTC)

Addendum: It is essential that this script be only used whilst under a bot flag. We don't need RC spam. 222 talk 06:38, June 3, 2013 (UTC)
How do you propose we obtain readily available bot flag for custodians/sysops? There are 2 'crats that we can contact through chat mediums, but relying on two users is a little much. If only we trusted admins to hand pout bot flags... cqm 13:32, 3 Jun 2013 (UTC) (UTC)
On the MLP Wiki we actually gave our Custodian look-alike group the ability to toggle their own bot flag, as it was centered around exactly what they do. Of course it's a suggestion to not edit with a bot flag when making bold edits, and I also added a big red warning on edit pages notifying users that they were manually editing with a bot flag to make sure that they're aware. --Foodbandlt 06:38, June 5, 2013 (UTC)
^ 222 talk 07:02, June 5, 2013 (UTC)

Comment - I don't really trust a script like this, it's far too easy to misname files when it's done automatically as we have seen in previous bots. It's the reason I only search for File:Filename.png when running my AWB and fix the rest of the uses by hand. And the reason I check pretty much every edit it makes when I run a task that isn't 100% safe. cqm 13:32, 3 Jun 2013 (UTC) (UTC)

Comment - I actually showed this to Mime when he obtained Image Control rights on the MLP Wiki to increase overall productivity... but it's still slightly unfinished. Everything is implemented except deleting jobs in the queue, but even that isn't necessary for functionality, as processing the queue produces the same result if the image can't be found on the page. I plan to finish it some time this week. --Foodbandlt 06:38, June 5, 2013 (UTC)

Comment - I've always known about the issue with the "book.png", but I finally got around to fixing it. --Foodbandlt 08:54, June 7, 2013 (UTC)

That edit shows a suffix rename, not a prefix rename. The issue would have been with Rainbowshine.png to Super Rainbowshine.png.  a proofreader ▸  22:43, June 12, 2013 (UTC)
It works exactly the same regardless if it's a suffix or a prefix being changed, but if you must. --Foodbandlt 05:58, June 13, 2013 (UTC)

Comment - Why not quarantine it? I.E., copy over, say, 100 random pages from this or other wikis, onto a new wiki, then put the bot on it, and after a month or two, check to see how many rats have died?Ice Rush12Zaros symbol.pngTalkHiscores 07:59, June 9, 2013 (UTC)

Do you not understand that this script is not only already being tested, but also already in use over at the ponie wiki[?]. MolMan 14:31, June 9, 2013 (UTC)
What.. sssSp7p.pngIjLCqFF.png 15:52, June 9, 2013 (UTC)
Seeing how he never mentioned turning the bot on, I think this is a test for sentience. MolMan 15:54, June 9, 2013 (UTC)
I know what he was implying. sssSp7p.pngIjLCqFF.png 16:05, June 9, 2013 (UTC)
So you do want a bot that becomes self-aware? MolMan 16:18, June 9, 2013 (UTC)
Technological singularity is hardly an immediate concern >.> Temujin 09:25, June 10, 2013 (UTC)
Sorry, Temujin; but I'm with Ice Rush on those one. MolMan 15:07, June 10, 2013 (UTC)

Comment - The bugs discovered with previous automated file renaming seem to have been prevented with this script, although as this is essentially an automated script it should really require a bot flag for file moves with a large amount of uses. To reiterate Aaron's point above, this brings up a problem. As it currently stands, only bureaucrats can add or remove bot flags. Do we now allow both admins and custodians to flag themselves as bots? Do we just allow admins to flag bots at which point custodians can informally request them? I'm more or less convinced this is a good tool, so hopefully we can get some discussion on this. cqm 11:03, 13 Jun 2013 (UTC) (UTC)

Or just force secondary bot accounts. MolMan 19:16, June 13, 2013 (UTC)

Closed - No consensus to implement this at the time. Suppa chuppa Talk 16:13, June 26, 2013 (UTC)