MediaWiki talk:Gadget-AjaxQuickDelete.js
|
|
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 7 days. |
|
|
TO DO
- Watching MediaWiki talk:Gadget-AjaxQuickDelete.js/auto-errors
- Using tokens from mw.user.tokens.get()
- Using mw.message
For self
Find problems with videos--DieBuche (talk) 22:43, 26 September 2010 (UTC)
Feature request: Checkbox for notifying user
It would be awesome if we could get a checkbox in the popup that allows us to uncheck it if we don't want to notify the uploader (for various reasons such as wanting to leave a custom message instead, prevent spamming when nominating multiple files from the same user, nominating your own files, nominating files uploaded by a upload bot, etc.). Rocket000 (talk) 07:51, 27 August 2010 (UTC)
"Nominate category for discussion" on Category:Waldsterben
I cannot use this tool for Category:Waldsterben. The reason is that the creator (User:ArtMechanic) died and his discussion page is therefore protected. So the author cannot be notified and the whole process stops. This is sure an odd exception. I still recommend to just give a message "Notification failed" (plus a link to the user-discussion-page) and to proceed without the notification. Notifying is sure the polite thing to do but IMHO not crucial to start a discussion. Greetings Jahobr (talk) 12:34, 29 October 2010 (UTC)
- Talk pages should never be protected. -- RE rillke questions? 14:41, 1 May 2012 (UTC)
Move category
It would be useful to have a « move category » feature, which would ask for the new name and order CommonsDelinker.
(I can attempt to code it myself [in a sandbox of course :-)], but I will certainly have a hard time with that and it is probably a piece of cake for used JS coders, so... ;-)
Jean-Fred (talk) 12:47, 6 January 2011 (UTC)
- Once an admin has determined that the consensus of a discussion created with {{move}} indicates that a category should be moved or renamed, they can add
{{move cat|Cat1|Cat2}}to User:CommonsDelinker/commands. An admin is required because that page is fully protected and must remain so. A shortcut for non-admins is to place it on User talk:CommonsDelinker/commands for the admins that patrol that page. For details, please see User:CommonsDelinker/commands/documentation. — Jeff G. ツ 04:14, 21 January 2011 (UTC)
Expand editform
It's impossible when using this particular javascript form to list multiple files within a single deletion request as it is being created. I frequently have to use *{{lf|Example.jpg}}<br />*{{lf|Example2.jpg}}<br />*{{lf|Example3.jpg}}<br />Reason... ~~~~ all on the single line that the form gives me without pressing "Enter", because "Enter" indicates proceeding with the nomination. The result is a poorly formatted nomination. This can probably be resolved by introducing some new methods of defining newlines within the form, like the well-used "/n" symbol, or in the rare off-chance that the characters "/n" are actually used as part of the nominator's rationale somehow expanding the window so as to allow the "Enter" key to define the newlines. :| TelCoNaSpVe :| 23:42, 25 March 2011 (UTC)
- In case of a request concerning the uploads of one user or category, you can use VisualFileChange.
- A textarea would be nice, indeed, but this would prevent allow starting with ↵ Enter. -- RE rillke questions? 11:13, 15 March 2012 (UTC)
- Created . Use it to expand to a textarea. -- RE rillke questions? 14:30, 1 May 2012 (UTC)
Junk at User talk:CommonsDelinker/commands
Right now this scripts places a request on the talk page of the commands page when the current user is not an admin. Although it's a nice feature and saves file moves from having to manually edit that page, it has a very important side effect (atleast the way it's done now): It's placed without condition. I highly recommend this part of the script is either removed for non-admins or it's made under higher conditions, namely the following:
- The source page actually has more than 1 global usage
If the file is not in use at all, it should not be placed on that request page at all, it's taking away too much time from admins to go through all of that shit. Many of those 100s of request are for files that were moved that aren't even used. I propose the script will check globalusage via API, and if it's none, simply skip it. If it's 1, ask the user to do it (link to the action=edit of the page where it is used), if it's used more than once, do what it does now (place a request on User talk:CommonsDelinker/commands).
Right now the script costing more time then it tries to save by automating this. I don't have time to fix this, but if nobody does by the end of this week, I'll make the bold move at disabling this automation because it's working against it's purpose. The result is that none of the requests are being dealt with at User talk:CommonsDelinker/commands. –Krinkletalk 02:12, 3 April 2011 (UTC)
- There are now some process helpers:
- No request is sent if the file was not in use
- Requests are added to User:CommonsDelinker/commands/filemovers which can be easily processed now.
- Do you think that's appropriate and sufficient? -- RE rillke questions? 14:45, 1 May 2012 (UTC)
dropdown of reasons like admis have for closing
I would be interested in a dropdown of reasons in the AjaxQuickDelete for "normal users". Often I have the problem that I'd like to provide an exact reason to the user, why I nominated for speedy - deletion (often derivative or fair-use). Therefore I have to navigate to the user's talk page and add another template. --RE RILLKE Questions? 15:34, 6 April 2011 (UTC)
Can't delete #REDIR file.
- This version. 虞海 (talk) 15:51, 17 April 2011 (UTC)
{{bad name}}
Hi, could the same QuickDelete script that is used on {{duplicate}} also be added to {{bad name}}? Process for both is similar, only real difference is the redirect is less important in more cases of bad name. Thanks.--Nilfanion (talk) 08:29, 28 May 2011 (UTC)
- This should be easy. Ask User:DieBuche on his talk-page, please. -- RE rillke questions? 20:35, 5 June 2011 (UTC)
Script does not like $$
Recently, I tagged (see User talk:Dioluc27)
File:2011-07-13221850 CA967162-B341-4FEB-88DD-FECB0766BF67$$738d42d9-134c-4fbe-a85a-da00e83fdc20$$d96c9705-c9f3-4976-bbbf-3c24059cfb1d$$img carrouselTopHomepage$$pt$$1.jpg but the user got the message for File:2011-07-13221850 CA967162-B341-4FEB-88DD-FECB0766BF67$738d42d9-134c-4fbe-a85a-da00e83fdc20$d96c9705-c9f3-4976-bbbf-3c24059cfb1d$img carrouselTopHomepage$pt$1.jpg
-- RE rillke questions? 10:37, 21 July 2011 (UTC)
How to reproduce:
"test%test%test".replace("%test%", "x$$1");
-- RE rillke questions? 10:32, 31 July 2011 (UTC)
File move error
Hm, i dont think that i saw this before...
An error occurred while trying to do the requested action. A detailed description of the error is shown below: API request returned code 504 errorError code is Gateway Time-out Report the error here
Can anyone advice? --WhiteWriter speaks 13:52, 28 November 2011 (UTC)
- This is a server error. I am going to report it. See also COM:VP#Error occuring when renaming file. -- RE rillke questions? 14:00, 28 November 2011 (UTC)
- The same error for me. The file was renamed, but I can't see now where it used. There were two pages (in en- and some else wikis), which linked to the previously named File:Pechat.JPG. --Renessaince (talk) 07:12, 12 December 2011 (UTC)
move failed for File:Sant Martí de Sadevesa (added ".file:sant martí de sadevesa:" after the intended name)
File:Sant Martí de Sadevesa.jpg (see history). Thanks for investigating and fixing. OT: In case someone is interested, the image is now at: File:Sant Martí de Sadevesa, 2011.jpg Cheers --Saibo (Δ) 01:20, 18 December 2011 (UTC)
- Rare case: "Source file" (actually no file but page) had no extension.
currentExtension = wgPageName.toLowerCase().replace(/.*?\.(\w{3,4})$/, '$1').replace('jpeg', 'jpg'); // If new file name is without extension, add the one from the old name if (uncleanName.toLowerCase().indexOf(currentExtension) == -1) uncleanName += '.' + currentExtension;
-- RE rillke questions? 01:33, 18 December 2011 (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)
REMOVE spam/whatever filter from obstructing copyvio-tagging
When script-tagging an upload as copyvio by adding http://"www.aceshowbiz.com/events/Harry%20Potter%20and%20the%20Deathly%20Hallows:%20Part%20II/jade-gordon-world-premiere-deathly-hallows-part-ii-01.html" into the script window, I got reproducibly the following error message and the process stopped.
- "Während der Ausführung einer Aufgabe, trat ein Fehler auf. Folgend eine Detailbeschreibung des Fehlers: The edit failed because www.aceshowbiz.com is on the Spam Blacklist"
This is not acceptable, as this unnecessarily increases the amount of work to tag copyvios. The spam-filter should really NOT be applied to tools such as marking a file as copyvio. --Túrelio (talk) 14:52, 30 January 2012 (UTC)
- I fear nothing I can change. It is on meta:Spam blacklist our local is MediaWiki:Spam-blacklist. Spam blacklist is a stupid piece of software... and I am not inclined having a dispute with Tim S. because this will lead to nowhere. -- RE rillke questions? 16:08, 30 January 2012 (UTC)
- bugzilla:34928 -- RE rillke questions? 10:56, 15 March 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)
- 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)
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)
- 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
- 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)
- You can't move them all at once because
- 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)
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)
Please add a warning similar to MediaWiki:Anoneditwarning at the "Nominate for deletion" link
{{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)
-
-
User:Upload Bot (Rich Smith)
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)
- 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)
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)