MediaWiki talk:Gadget-AjaxQuickDelete.js/Archive/2012

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Feature request: Include rationale in error message

From time to time, the script fails for various reasons (timing issues, locked database, spam filters, cosmic radiation, the alignment of the moon and the stars) and you end up with an error message. Obviously, nothing can be expected to work 100% of the time. The most common thing you want to do when something doesn't work (at least if you're convinced that you didn't do anything wrong) is to try again. This would be much easier if you didn't have to retype everything that you just wrote. Would it be possible to include the original rationale in wiki source format as part of the error message so that one can copy it and use it again? LX (talk, contribs) 09:37, 31 January 2012 (UTC)

Strongly support that. I mentioned the same at #Handle server error 504 and 502 ("Annoying that you need to type all info again - no back functionality.") above. Cheers --Saibo (Δ) 00:08, 1 February 2012 (UTC)
This section was archived on a request by: RE rillke questions? 16:58, 1 February 2012 (UTC)

Renaming uses translated summaries - feature or bug?

I had "Entferne die Vorlage; Umbenennen abgeschlossen" when I moved a file with "move & replace". I would prefer a English summary, as I would have done manually. German is of not so much use to everybody. ;) --Saibo (Δ) 14:28, 1 February 2012 (UTC)

Not my fault. Special:Permalink/50801356 this.savePage(page, (this.declineReason || this.i18n.renameDone), 'nextTask');. Will be replaced with next change. -- RE rillke questions? 14:55, 1 February 2012 (UTC)
This section was archived on a request by: RE rillke questions? 16:58, 1 February 2012 (UTC)

Question on quick deletion of tagged files

I remember some months ago there was a small icon (looked like a trash basket) on the description page of every file with "No permission / no source/ no license" template. By klicking on that one the file was being deleted automatically with the proper reason filled in. Meanwhile I miss this icon. How may I have it back? Thanks. A.Savin 14:09, 4 February 2012 (UTC)

From my experience, I would start removing the invalid and unnecessary <nowikis> from your User:A.Savin/monobook.css -- RE rillke questions? 14:13, 4 February 2012 (UTC)
Just in case you've doubts because I may be from Germany. ;-) -- RE rillke questions? 14:15, 4 February 2012 (UTC)
Deleted, purged, but still found no icon. - A.Savin 14:37, 4 February 2012 (UTC)
1) You must be logged in with a sysop-account b) 3) If you didn't see the text, you have to delete your cache/ remove temporary internet files (not just Ctrl+F5 but using the menus). 4) If all this does not help, you can finally copy the code from MediaWiki:Group-sysop.css to your User:A.Savin/common.css. -- RE rillke questions? 16:21, 4 February 2012 (UTC)
OK, seems to be repaired now, thanks. - A.Savin 16:36, 4 February 2012 (UTC)
This section was archived on a request by: A.Savin 16:36, 4 February 2012 (UTC)

Manually reporting 504 error

Whilst trying to nominate File:Indomie_Common_Variants.jpg for deletion, I received the following error: API request returned code 504 errorError code is Gateway Time-out. Automatic reporting failed, so I've posted here. Twinkle gives me the same error on enwp as well. Acather96 (talk) 08:55, 12 February 2012 (UTC)

Thanks. Some smart retry code will follow. -- RE rillke questions? 12:47, 29 February 2012 (UTC)
This section was archived on a request by: RE rillke questions? 12:47, 29 February 2012 (UTC)

Translations do not work

The translations of this gadget do not work, the toolbar links are always in English. The problem is that the $(document).ready event fires (and AjaxQuickDelete.install() is executed) prior to the execution of the localization script in MediaWiki:AjaxQuickDelete.js/xx. It might be related to the 1.19 upgrade. Also note that when using ?debug=true, the problem goes away. --Mormegil (talk) 09:29, 29 February 2012 (UTC)

This problem occurs on all scripts now. Cat-a-lot seems to be also affected. We will use a cached XHR-GET-request to circumvent this problem like on Stockphoto. -- RE rillke questions? 10:31, 29 February 2012 (UTC)
This section was archived on a request by: RE rillke questions? 12:47, 29 February 2012 (UTC)

Manual report error

Hi, y have error message with the "process duplicate" button :

"v.imageinfo is undefined TypeError @line10
The tag to be inserted into this page was undefined"

Have you got a solution to my problem ? --M0tty (talk) 07:22, 6 March 2012 (UTC)

I fear, no. This means that the API does not know one of the image's dimensions and URL so the tool cannot show the compare-dialog. You could try to purge the server cache of both images. -- RE rillke questions? (ریلکه) (里尔克) (リルケ) 09:16, 6 March 2012 (UTC)
No, the problem is not solved.
I have a new error message :
Retrieving information about {{{1}}} failed. It is possible that it is deleted or the last revision is corrupt. 
(v.imageinfo is undefined) Error @line10
The tag to be inserted into this page was undefined
I don't understand... --M0tty (talk) 12:30, 7 March 2012 (UTC)
A possible reason is that the the file which you are trying to delete has been renamed and is now a redirect. When I got this error once, this is what I saw. --Sreejith K (talk) 13:13, 7 March 2012 (UTC)
Yes, this is possible, too. The API does not resolve redirects when asking for imageinfo. As long as we don't know the file and the destination... -- RE rillke questions? 14:09, 7 March 2012 (UTC)
But, the problem is systematic and occurs on all files... redirects are not the problem... --M0tty (talk) 16:07, 7 March 2012 (UTC)
Est-ce que vous prouver me donner un fichier exemple et quel navigateur est-ce que vous utiliser? Merci. -- RE rillke questions? 16:25, 7 March 2012 (UTC)
Aucun des fichiers classés dans la catégorie "duplicate" ne fonctionne pour moi. Par exemple File:Sarah Tobias, Wiederverwertung und Recyclingfähigkeit von Pelzen - Die serviceorientierte Geschäftsidee.jpg. Je suis sous Ubuntu 11.04 et Firefox 10.0.2. J'ai purgé le cache, désactivé puis ractivé les gadget concernés, rien n'y fait. J'ai également de temps en temps un bref message d'erreur très étrange qui apparaît dans le site notice, j'ignore si c'est lié. Tout cela est récent. Merci pour votre aide. --M0tty (talk) 18:19, 7 March 2012 (UTC)

Merci pour la réponse. J'ai deux questions:

-- RE rillke questions? 14:38, 8 March 2012 (UTC)

Bonjour, je dois reconnaître que je suis un peu perdu et que je ne comprends pas bien ce que je dois faire...
Pour commencer, le message d'erreur que j'obtiens dans la console d'erreur de Firefox lorsque je clique sur le bouton "process duplicate" est le suivant :
Avertissement : Erreur d'analyse de la valeur pour « filter ».  Déclaration abandonnée.
Fichier Source : http://commons.wikimedia.org/wiki/File:Asahikawa_Hokkaido_chapter.svg
Ligne : 21
puis ensuite, j'ai 4 fois la même erreur :
Avertissement : « important » attendu, mais « ie » trouvé.  « ; » ou « } » attendus pour terminer une déclaration, mais « ie » trouvé.  Déclaration abandonnée.
Fichier Source : http://commons.wikimedia.org/w/index.php?title=MediaWiki_talk:Gadget-AjaxQuickDelete.js&action=edit&section=29
Ligne : 33
Firefox a récemment été modifié au niveau du support de javascript il me semble. Cela peut-il provenir de là ?
Pour ce qui est de la comparaison entre API et le permalink (et j'espère avoir compris ce que je devait faire) voici un lien des différences
Notez que la console d'erreur me renvoi des dizaines d'erreurs lorsque j'ouvre le bac à sable... j'ignore pourquoi. Merci pour votre aide ! --M0tty (talk) 16:00, 8 March 2012 (UTC)
I am so dumb! "Retrieving information about {{{1}}} failed." -- The "{{{1}}}" was the problem, it's inside the french version of the template. Maybe you have to purge the page before it works but it should now. Excusez-moi pour voler du temps. -- RE rillke questions? 16:38, 8 March 2012 (UTC)
This section was archived on a request by: RE rillke questions? 16:38, 8 March 2012 (UTC)
Waw ! Ça fonctionne ! Un grand merci ! --M0tty (talk) 18:49, 8 March 2012 (UTC)

Process dupes - Declining

How do I decline a Duplicate request. I am seeing a lot of files tagged as duplicates which are not exact duplicates, but the gadget does not have an option to decline it or remove the template. Ideally, there should be a Decline button and on clicking, it should ask for a edit summary and save the page after removing the template. Thoughts? --Sreejith K (talk) 01:56, 7 March 2012 (UTC)

We also need something like x-to-DR. -- RE rillke questions? 11:51, 7 March 2012 (UTC)
Another feature I would like to see is the ability to delete the second file and keep the first one. In the window where the two images are displayed, it would be nice if we can select which one to be deleted. --Sreejith K (talk) 11:57, 7 March 2012 (UTC)
I'd say if the speedy is declined, always send it to DR automatically with an initial summary like "Marked as duplicate (by tagging user), speedy declined (by admin) because (reason)". It could then notify the uploader in usual manner for a DR.--Nilfanion (talk) 12:14, 7 March 2012 (UTC)

Decline button & inverse delete: ✓ Done

x-to-DR follows. (Needs some more efforts since you have to find out the user.) This will be also good for wrong copyvio or speedy-tags. -- RE rillke questions? 14:04, 7 March 2012 (UTC)

The new script is awesome except that when I remove the Duplicate template, the notification popup I get says "Removing rename template". Small thing, but might confuse an editor. --Sreejith K (talk) 07:40, 8 March 2012 (UTC)
Can you add x-to-Dr button on {{Derivative}} template? --Sreejith K (talk) 09:01, 8 March 2012 (UTC)
The documentation is on {{X-To-DR}}. But I will do it one more. -- RE rillke questions? 09:24, 8 March 2012 (UTC)
✓ Done -- RE rillke questions? 13:48, 8 March 2012 (UTC)
I just removed the decline move because it is redundant: Use the "remove template"-button, please. -- RE rillke questions? 14:41, 9 March 2012 (UTC)
This section was archived on a request by: RE rillke questions? 13:48, 8 March 2012 (UTC)

Convert to a Gadget

I'd like to propose turning this into a gadget instead of a script loose in the MediaWiki-namespace. That would, among other things, make the loading of it much more efficient, since it would load:

  • MediaWiki:Gadget-AjaxQuickDelete.js
  • MediaWiki:Gadget-AjaxQuickDelete.css
  • jquery.ui.* modules
  • etc.

all in the same ResourceLoader module, instead of requesting those from inside the script. It would also make caching a bit better (coming from bits.wikimedia.org, minified, faster cache invalidation when there is a change). Has this been tried before or can we just do this ?

Of course the Gadgets-definition entry would have [default], the line in Common.js should be removed.

Also, it would remove the currently existing race condition where the OptOut code in the user script might be loaded after the site script. Because users who want to opt-out can just do so from the preferences, in which case the module simply won't be loaded at all. –Krinkletalk 21:41, 7 February 2012 (UTC)

 Support suggested this here. -- RE rillke questions? 22:10, 7 February 2012 (UTC)
I  Support that as well, but I have one question: if
importScript('MediaWiki:AjaxQuickDelete.js/' + mw.config.get('wgUserLanguage')
is also added to the gadget definition, won't that make the code of all languages to be loaded for all users? Is it possible to avoid that and still get the code minified?
Helder 16:01, 13 February 2012 (UTC)
The language code is not minified yet. Let's wait until the devs ship the real RL 2.0 with MW-message dependencies. Or they allow minification via URL-parameter --this would be also great and more appropriate for this huge script. -- RE rillke questions? 12:50, 29 February 2012 (UTC)
This section was archived on a request by: RE rillke questions? 10:51, 15 March 2012 (UTC)

Require longer rationales

The current minimum length to enable the "Proceed" button is four characters. I daresay such short rationales are never helpful. Even an extremely lazy (and still not very helpful) nominator will need at least 11 characters for something like "[[COM:FOP]]". I think it should be increased to at least 10 (and preferably 15 or 20) characters. LX (talk, contribs) 09:13, 25 February 2012 (UTC)

This section was archived on a request by: RE rillke questions? 10:48, 15 March 2012 (UTC)

Mark as dupe problem

Since a while when executing "Mark as dupe" the proceed button can't be clicked when the filename is filled in the field. With an prepending space it works.--Funfood 20:17, 14 March 2012 (UTC)

It did not recognize copy&paste / drag&drop, also a minlen was required. Changed & fixed.
This section was archived on a request by: RE rillke questions? 10:50, 15 March 2012 (UTC)

Notify operator of File Upload Bot

Magnus' upload bot now states the user working with the respective upload tool in the upload summary. It would be good if the user mentioned there could be notified automatically, if a file is nominated for deletion. --Leyo 17:59, 5 April 2012 (UTC)

#TO DO -- RE rillke questions? 19:06, 5 April 2012 (UTC)
This section was archived on a request by: Leyo 19:18, 5 April 2012 (UTC)

A few days ago, I noticed that the "Missing permission" and "Report Copyright Violation" buttons disappeared from the toolbox. I tried purging my browser cache (Opera web browser), which had no effect on the issue. Other features of this script (i.e. the Move and Replace button) are still visible. When I checked Google Chrome, the links appeared, so the issue appears to be isolated to the Opera web browser. Any suggestions on how I can resolve the issue. Thank you, Alpha_Quadrant (talk) 23:07, 10 March 2012 (UTC)

 Shift+Reload -- RE rillke questions? 14:15, 15 March 2012 (UTC)
I just wondered that both buttons mentioned here disappeared this day for me using firefox - in Opera they exist. Reloading didn't help.--Funfood 20:41, 15 March 2012 (UTC)
OK - back again now!--Funfood 20:47, 15 March 2012 (UTC)
Thanks, the links are back now. Alpha_Quadrant (talk) 21:46, 15 March 2012 (UTC)
This section was archived on a request by: RE rillke questions? 09:17, 12 April 2012 (UTC)

Deletion requests - No timestamp given

The files I nominate for deletion using this script get added to Category:Deletion requests - No timestamp given (like File:Штильман Илья Нисонович (художник, 1942).jpg). Why and how to fix that?Plushy (talk) 10:59, 5 April 2012 (UTC)

The problem was on Template:Delete/pl and should be fixed. All new requests should be categorized properly. -- RE rillke questions? 13:57, 5 April 2012 (UTC)
This section was archived on a request by: RE rillke questions? 09:09, 12 April 2012 (UTC)

Use noinclude tags for Creator templates

This section was archived on a request by: RE rillke questions? 09:08, 12 April 2012 (UTC)

When Creator templates are nominated for deletion, noinclude tags should be used (example). --Leyo 23:14, 11 April 2012 (UTC)

Thanks. Did you consider other custom namespaces, too? --Leyo 09:16, 12 April 2012 (UTC)
I am not sure about timed-text and sequence. Is it required there? And how escaping works on them? Institution&creator: done. -- RE rillke questions? 20:21, 15 April 2012 (UTC)
Thanks. It is probably sufficient, at least for now. --Leyo 21:54, 15 April 2012 (UTC)

Did I do something wrong?

Hi,

I created Commons:Deletion requests/Files of User:Belsen nearly a month ago but nobody but me and the uploader seem to have been involved in the discussion. A large part of his uploads consist of screenshots of tv programs. Did I not file this correctly? --Vera (talk) 08:41, 12 March 2012 (UTC)

It seems to have been correctly filed. {{Delete}} templates have been added to the files (but you seem to have removed some of them?), the uploader has been notified, and the request has been listed on Commons:Deletion requests/2012/02/19. But we have a very large number of deletion discussions every day, and most of them receive little attention until they are eventually closed. As you can see, there are many more request from that day which have very few comments (or none at all). We also get so many deletion discussions per day that the monthly logs such as Commons:Deletion requests/2012/02 run into transclusion count limitations very quickly, so the last three quarters of the month are not shown until a number of requests are closed and archived. Basically, the drive to lower the bar for uploaders has led to an explosion in maintenance needs on Commons that is massively disproportionate to our resources, and our processes have not been adapted accordingly. LX (talk, contribs) 16:13, 12 March 2012 (UTC)
This section was archived on a request by: RE rillke questions? 14:25, 1 May 2012 (UTC)

Removing template: no empty line

When removing the template after renaming, it should not be replaced by an empty line. The whole line with the template should be removed. --Leyo 14:21, 7 February 2012 (UTC)

Consider
== Heading == {{rename|new name}}
text
It would break the heading (well it was broken by the user who added the template but the script would not repair it) -- RE rillke questions? 10:55, 15 March 2012 (UTC)
Can't the script check, if there are empty lines prior to the first line with content and remove them. This would prevent such cases. --Leyo 09:35, 14 April 2012 (UTC)
This is allll sooo difficult ;-) Should be done, now. Hopefully all browsers will understand it and not insert null or $1$2. -- RE rillke questions? 15:44, 1 May 2012 (UTC)
This section was archived on a request by: RE rillke questions? 15:38, 7 June 2012 (UTC)

Check for previous DRs

When nominating a file for deletion, it would be useful if a notice would be shown in the case there was a previous deletion request. Not everyone checks the file talk page before. --Leyo 13:55, 3 January 2012 (UTC)

How to check? The talk page for {{Kept}} or look for Commons:Deletion requests/(File|Image):X? I think looking for {{Kept}} might be the simplest way. -- RE rillke questions? 10:59, 15 March 2012 (UTC)
Doing both. Also looking for Village-Pump-threads. -- RE rillke questions? 20:54, 11 June 2012 (UTC)
Thanks a lot. --Leyo 22:06, 11 June 2012 (UTC)
This section was archived on a request by: RE rillke questions? 20:54, 11 June 2012 (UTC)

{{Editprotected}}

Please add a warning in the first dialog box of the "Nominate for deletion" link, similar to MediaWiki:Anoneditwarning telling people that their IP adress will become publicly available if they proceed while not logged in. Teofilo (talk) 22:34, 14 April 2012 (UTC)

Or this tool should be unvailable for non logged in editors. Teofilo (talk) 22:35, 14 April 2012 (UTC)

Before doing anything, I expect a response on the thread from the past year on your talk page. -- RE rillke questions? 22:57, 14 April 2012 (UTC)
Sorry for forgetting about that issue. See my reply on your talk page.
How about adding ~~~~ (or "reason ~~~~") by default in the "preview" box, or creating a "preview signature" field below the preview box ? This way, people would see instantly how their signature will look like before clicking on "proceed". Teofilo (talk) 16:53, 15 April 2012 (UTC)
That's indeed a good idea. Thanks. -- RE rillke questions? 20:00, 15 April 2012 (UTC)
Do you think it's sufficient, now? -- RE rillke questions? 20:19, 15 April 2012 (UTC)
I am afraid it might be too much. I mean it is good for advanced users who know that those four "~" have to be deleted. I am afraid some newbies might not delete them and end up with two signatures on deletion request pages and on the user talk page. How about having software show the signature in the preview field "as if" it were prefilled, while not actually prefilling it, so that users don't need to bother to delete those four "~" ? The meaning would be this is a preview of what the deletion request page will look like, including your signature at the end. [I tried to check today's log to see if people had troubles. All I could find is Commons:Deletion requests/File:B6054a9bd510741af7ada0d2153bd53a-djnxej.jpg with one extra "~" before signature and Commons:Deletion requests/File:Escudo APF extra grande.png with the same small problem]. Teofilo (talk) 12:49, 16 April 2012 (UTC)
I am considering requesting a {{USERISLOGGEDIN}} magic word at bugzilla so that this kind of warning can be easily created and displayed. Do you think it is worth asking ? Or perhaps it is the same request as written at https://bugzilla.wikimedia.org/show_bug.cgi?id=13242 ? Teofilo (talk) 13:47, 16 April 2012 (UTC)
With JS, it is pretty easy to determine if the user is logged in. The major problem is getting the message from MediaWiki:Anoneditwarning to the script without ugly (e.g. copy&paste) or slow (extra XHR) technics to the script. With Gadgets 2.0, the devs promise that it would be easily possible, so I suggest just to wait 2 months and look into this when Gadgets 2.0 are ready.
JS can either check mw.user.anonymous() or we could create a class in MediaWiki:Group-user.css (which hides the message for users but not for anons)
BTW, the script already looks whether there is a signature at the end. If the signature is present, it is removed. Additionally, the signature is selected in the textbox, initially. You just have to start typing and the prefilled value is replaced by the first letter you insert. -- RE rillke questions? 16:49, 16 April 2012 (UTC)
Thanks for you reply. As I had tried it only once, I had not realized that the prefilled value was removed when starting to type. I have used it a couple more times, and it looks pretty convenient. Teofilo (talk) 15:26, 17 April 2012 (UTC)
If you leave the four tilde characters in, there's an extra ~ added to the nomination and the template. LX (talk, contribs) 16:28, 25 April 2012 (UTC)
Thanks! Fixed. -- RE rillke questions? 20:21, 25 April 2012 (UTC)

Now using indeed MediaWiki:Anoneditwarning. -- RE rillke questions? 17:28, 11 June 2012 (UTC)

This section was archived on a request by: RE rillke questions? 17:28, 11 June 2012 (UTC)

Buttons missing again

The AjaxQuickDelete buttons in the toolbox and also the "Perform batch task" from Visualfilechange are missing for me again like here. This time in Firefox and Opera. How to get it back? --Funfood 12:31, 6 May 2012 (UTC)

This section was archived on a request by: RE rillke questions? 17:27, 11 June 2012 (UTC)

Fällt mir immer wieder auf: IPs und Benutzer die nicht autoconfirmed sind dürfen auf diesem Wiki keine URLs posten ohne ein captcha abtippen zu müssen. Für Quickdekete bedeutet das, wenn eine IP oder ein neuer Benutzer einen LA startet und in der Begründung eine URL eingibt, kann er das captcha nicht abtippen. Es wird nicht {{Delete}} auf der Dateibeschreibung platziert, die Antragsseite wird nicht erstellt, die Antragsseite wird aber auf dem Log eingetragen und der Uploader wird informiert. Eine Fehlermeldung gibt es nicht. Gesehen jetzt wieder bei Special:Contributions/195.126.85.201 der auf File:Takabisha Drop.jpg einen LA gestellt hatte. --Martin H. (talk) 23:52, 11 July 2012 (UTC)

Das muss vor dem switch zu libAPI erfolgt sein. Jetzt wird jedenfalls nach dem Captcha gefragt, wenn es ein Bild ist. Leider weiß ich nicht, ob es auch noch diese Rechenaufgaben gibt. -- Rillke(q?) 01:13, 12 July 2012 (UTC)
Gut :) Wusse nicht, ob das Problem bekannt ist/war, daher mal gemeldet. --Martin H. (talk) 19:22, 21 July 2012 (UTC)
Wenn ich mehr Zeit hätte, hätte Commons noch viel stärkere Tools. Gerade beim DelReqHandler gibt es noch viele Ideen... aber auch "alltägliche Sachen", wie die Textfelder könnten verbessert werden, indem sie Vorschläge unterbreiten. -- Rillke(q?) 23:14, 21 July 2012 (UTC)
This section was archived on a request by: Rillke(q?) 23:14, 21 July 2012 (UTC)

No automatic watching of files when using Move & Replace

I do not like that files moved using Move & Replace are automatically watched (incl. the new redirect). The watch status should be unchanged by default. --Leyo 15:07, 16 August 2012 (UTC)

Is there a config parameter for this? --Leyo 22:17, 6 September 2012 (UTC)
No. People who like to watch can use "the star". -- Rillke(q?) 23:03, 6 September 2012 (UTC)
Thanks. --Leyo 00:46, 7 September 2012 (UTC)
Also: diff2 -- Rillke(q?) 07:43, 7 September 2012 (UTC)
There is an unwanted side-effect: If moving a file that is on the watchlist, moving results in unwatching it. Only the new redirect is (still) watched. Could you please change this? --Leyo 07:55, 13 September 2012 (UTC)
Huh, this is really strange. I set watchlist to nochange. This seems to be a result of MediaWiki's understanding of nochange. Hmmm, so one has to query the watch-status of the old page before. api query. Perhaps this could be done when obtaining other info and the tokens… -- Rillke(q?) 08:34, 13 September 2012 (UTC)
This issue should be also fixed. I am just not sure whether it is "right" to ignore the preference from Special:Preferences#mw-prefsection-watchlist. -- Rillke(q?) 10:52, 13 September 2012 (UTC)
Thank you. What might be possible cases, where this would have negative consequences? --Leyo 12:13, 13 September 2012 (UTC)
We'll see when somebody complains :-) -- Rillke(q?) 14:01, 13 September 2012 (UTC)
This section was archived on a request by: Rillke(q?) 14:01, 13 September 2012 (UTC)

Notification posted to user page

Any ideas why these DR notifications were posted to the user page instead of the user talk page? --Leyo 00:01, 3 October 2012 (UTC)

His problem: He redirected his bot talk page to his user page. -- Rillke(q?) 20:15, 3 October 2012 (UTC)
This section was archived on a request by: Rillke(q?) 20:15, 3 October 2012 (UTC)

Notification posted to user page

Any ideas why these DR notifications were posted to the user page instead of the user talk page? --Leyo 00:01, 3 October 2012 (UTC)

His problem: He redirected his bot talk page to his user page. -- Rillke(q?) 20:15, 3 October 2012 (UTC)
This section was archived on a request by: Rillke(q?) 20:15, 3 October 2012 (UTC)

il8n

Could someone please create a localised version for a language other than English, so that people can see how to do it for other languages? Thanks. Rd232 (talk) 23:42, 30 March 2012 (UTC)

We need to move the translatable strings to an en sub-page like MediaWiki:Gadget-AjaxQuickDelete.js/en. Others can then copy-paste and modify accordingly. --Sreejith K (talk) 06:28, 31 March 2012 (UTC)
There are plenty of translations at Special:PrefixIndex/MediaWiki:AjaxQuickDelete.js. -- RE rillke questions? 08:36, 31 March 2012 (UTC)
Ah, they're in the wrong place! That's why {{Gadget-talk}} doesn't detect them! Could you move them, please? I would do it myself but there's a slight risk of breaking something. (In theory we could add another parameter to {{Gadget-talk}} to allow storing the subpages somewhere other than with the script page, but I don't think that's worth the extra complexity.) Rd232 (talk) 10:13, 31 March 2012 (UTC)
You can't move them all at once because {{BASEPAGENAME:MediaWiki:AjaxQuickDelete.js/foo}} → AjaxQuickDelete.js/foo. There is also Special:PrefixIndex/MediaWiki talk:AjaxQuickDelete.js. This means breaking i18n for a short time. First move them, then adjust the code. -- RE rillke questions? 10:21, 31 March 2012 (UTC)
Now I'm confused (and I don't know how to adjust the code). And can't redirects bridge the gap during the move? Rd232 (talk) 10:41, 31 March 2012 (UTC)
1) When moving normal pages, you can move all subpages and subpages of talk pages. That's impossible with pages in MW-namespace because they aren't recognized as subpages. 2) You just have to look for MediaWiki:AjaxQuickDelete.js/ 3) No. The page's content is loaded raw. (&action=raw) 4) Ok, I will do it. -- RE rillke questions? 10:44, 31 March 2012 (UTC)

JavaScripts should always have the ending .js 1) Intuitive 2) Automated rendering as script (then MW knows "This is a js-file") Therefore I moved them to de.js, ... I think the template needs to be adjusted ;-) -- RE rillke questions? 11:20, 31 March 2012 (UTC)

Oh. Unfortunately there's no easy way to do that, because {{Gadget-talk}} relies on {{Lang links}}, and that has no easy way to add a parameter after the language code (and it provides formatting which means the parameter can't be added within gadget-talk either). So there's no easy way to accommodate this naming change. Rd232 (talk) 11:28, 31 March 2012 (UTC)
:This section was archived on a request by: Senator2029 06:19, 21 November 2019 (UTC)

Shouldn't User:Upload Bot (Rich Smith) get the same kind of handling as User:File Upload Bot (Magnus Manske)? This bot is a Commons Helper and all deletion requests are placed at User talk:Upload Bot (Rich Smith). It would be better to notice the bot users. --Stefan4 (talk) 21:53, 27 April 2012 (UTC)

I've done this a few months ago in MediaWiki:VisualFileChange.js/exec.js but now I think it's time to create a module that can be used by both scripts to avoid double-maintenance efforts. -- RE rillke questions? 08:08, 28 April 2012 (UTC)

MediaWiki:Gadget-libCommons.js

Just wondering: since you do manage to identify the bot operators, would it also be possible to identify the original uploaders from the original upload log and notice those users on their talk pages on the original project? --Stefan4 (talk) 20:27, 4 May 2012 (UTC)
Notifying users on the original project is not possible because Wikimedia uses different domains. You would have to make a cross-site XHR; JSONP does not work because edits must use the POST-request.
But one could attempt to lookup whether they have SUL and if so, notify them on Commons. -- RE rillke questions? 20:54, 4 May 2012 (UTC)
Notifying SUL users on Commons would at least be better than nothing, and if bugzilla:35707 is implemented, it will work for many more accounts, although e-mail notification on talk page edit probably won't work for users who haven't visited Commons. --Stefan4 (talk) 23:14, 4 May 2012 (UTC)
Update: New technologies would allow notifying users at their home-project (currently the home-project would need to install a JavaScript that would listen for events, in future we possibly get CORS). But someone has to implement it. -- Rillke(q?) 23:16, 21 July 2012 (UTC)
:This section was archived on a request by: Senator2029 06:19, 21 November 2019 (UTC)

use "Process Duplicates" for NowCommons

Hi there, would it be possible to create a gadget that allows local project admins to compare file description and attributes of a file tagged with NowCommons? Best regards, --Flominator (talk) 10:05, 19 August 2012 (UTC)

Doesn't User:Magog the Ogre already have something like that for English Wikipedia? --Stefan4 (talk) 10:29, 19 August 2012 (UTC)
Yes I do have such a tool; it is at tools:~magog/commons_images.htm. It hasn't been operational in a while because I was the only one using it (and it has weird options which are for me only). I can reenable it to update once per day or so upon request. Magog the Ogre 2 (talk) 18:10, 19 August 2012 (UTC)
Looks great. Could that be customized for de.wp? --Flominator (talk) 19:47, 19 August 2012 (UTC)
Yes. I'll keep you posted. Magog the Ogre 2 (talk) 21:07, 19 August 2012 (UTC)
Ok, I've set it up to update daily; it's at tools:~magog/commons_images-de.htm. Magog the Ogre (talk) (contribs) 05:58, 22 August 2012 (UTC)
Thanks. --Flominator (talk) 12:18, 26 August 2012 (UTC)
BTW, if you have any text that is written in English and you want to have translated to Germany instead (e.g., "using Magog the Ogre's move to commons assistant: report errors here"), let me know. Magog the Ogre (talk) (contribs) 18:21, 27 August 2012 (UTC)
Thanks, but I don't think that this is required right now. What exactly does the column issues represent? --Flominator (talk) 15:49, 7 September 2012 (UTC)
Problems that the script encountered. For example, the file listed on the page couldn't be found, it was found under a different name than the one listed, it is the wrong MIME type (i.e., file extension), etc. Magog the Ogre (talk) (contribs) 16:49, 7 September 2012 (UTC)
:This section was archived on a request by: Senator2029 06:19, 21 November 2019 (UTC)

Redirecting to duplicate file

Currently, a redirect from the deleted duplicate file to the other is always generated. IMHO there are situations, where this shouldn't be done, e.g. in the case of a newly uploaded file (that has never been used) or in the case of offensive or nonsense file names.
The newly created redirect is added automatically to the watchlist. Maybe adding an option for this, too? --Leyo 10:55, 22 September 2012 (UTC)

getDupeDetails will have to ask the API for the watch status and the globalUsage of the file. -- Rillke(q?) 14:10, 27 September 2012 (UTC)
I'd say if a redirect is inappropriate due to offensive file names, the user should be warned and the redirect deleted. I don't think there will be lots of usage scenarios for a check box. The watchlist issue should be fixed (no option; if one of the files was watched before, both will be watched). -- Rillke(q?) 09:14, 29 September 2012 (UTC)
Thank you.
Two scenarios more: File names such as IMG 12.jpg or Unidentified bird xy.jpg are not worth being recreated as redirects if unlinked. --Leyo 08:45, 30 September 2012 (UTC)
The bad file names might be used outside Wikimedia using mw:InstantCommons. I think that it is better to have redirects in those cases, at least for images which have been around for some time. --Stefan4 (talk) 09:29, 30 September 2012 (UTC)
It's also not worth uploading new files under these names, so I don't see the problem with these redirects. -- Rillke(q?) 20:08, 30 September 2012 (UTC)
:This section was archived on a request by: Senator2029 06:19, 21 November 2019 (UTC)

Flickr files

If you nominate a Flickr file for deletion, then the notification ends up at User talk:Flickr upload bot and not at the bot user's talk page. If a file is uploaded using that bot, then the first revision of the file information page was created by the person who operated the bot. Maybe the script can notify the person who created the file information page and skip the bot? --Stefan4 (talk) 20:40, 31 December 2012 (UTC)

Sorry, this issue slipped in while making the script using the first text revision (there was no user name in the revision text; only the token). -- Rillke(q?) 00:03, 1 January 2013 (UTC)
:This section was archived on a request by: Senator2029 06:19, 21 November 2019 (UTC)