MediaWiki talk:Gadget-UserMessages.js

New talk summaries edit

I'd like to discuss the new talk-summaries. Here they are:

Template Message
{{Please link images}} Please link images.
{{Copyvionote}} Please upload free content only.
{{Derivativenote}} Even derivative works of copyrighted material is protected.
{{No fair use}} On commons, we do not accept fair-use-media. Please stop uploading those.
{{Please name images}} Please name images correctly.
{{Please tag images}} The description of one of your uploads is lacking in information about reusing. Please check the whole description-page.
{{Please describe images}} Search-engine: Mhh, interesting, a picture but what is on it? Can you describe it, please.
{{Project scope}} Please do not create out of scope media and pages.
{{No comments}} Please put comments to the appropriate place.
{{Welcome}} Hello, Welcome to Wikimedia Commons! -A database of freely usable media files.
{{End of copyvios}} Immediately stop uploading copyright violations, please.
{{Off topic}} Commons is not Wikipedia. WP is for articles; commons for media.
{{No re-uploading}} Please do not re-upload
{{Test}} We have a sandbox for nonsense-edits; or use the preview function if you want to test.
{{Test2}} Please do not contribute nonsense-edits.
{{Test3}} Please stop making nonsense-edits.
{{Test4}} Last warning: Stop producing nonsense!
{{Inappropriate imagenotes}} We have a guideline for imagenotes.
{{Dont remove delete}} Please do not remove deletion-templates from pages nominated for deletion
{{Dont remove nsd or nld}} Please do not remove valid warning tags from file-description pages
{{Dont remove speedy}} Please do not remove speedy-deletion tags
{{Dont remove warnings}} Please do not remove valid warning templates from your talk page, except while archiving.
{{Be civil}} Please remain civil, even if your contributions are being attacked
{{Be civil final}} Remain civil! You will become blocked next time
{{Blocked user}} Your account has been blocked.
{{Inappropriate username}} Your username is considered being inappropriate and therefore your account has been blocked
{{Copyviouploadindefblock}} You did not stop uploading copyright violations and therefore we had to block you.
{{Indefblockeduser}} This account has been blocked indefinitely.
{{Imposter}} Mark account as blocked for impersonation or attack
{{Sockpuppet}} It is suspected that you're maybe a sock puppet or impersonator
{{Please register}} Please create an account. Your contributions are numerous and quite good.
{{Provide better quality}} Do you have a better version of this media?
{{Please use SVG}} SVG (Scalable Vector Graphics) have a few advantages, I'll tell you some of them.
{{No scaled down dupes}} Please do not upload scaled down duplicates. MediaWiki can change the size for you.
{{Unfree}} Image deletion notification
{{Attackimage}} Please do not upload attack images
{{Attackpage}} Please do not create attack pages
{{Dont overwrite}} Please do not overwrite images
{{Dont recreate}} Please do not recreate deleted images
{{Speedywhat}} One of your uploads has been speedy-deleted
{{No advertising}} Please do not advertise on commons We have the goal of an educative image collection
{{Sign}} Please sign your postings with four tildes (~~~~) at the end of your comments
{{Gadget-UserMessages.js}} A new message for you!
{{Blocked}} Your account has been blocked.
{{Sockpuppeteer}} You are suspected using sockpuppets to circumvent a block.
{{Anonblock}} Anonymous editing is not allowed from your IP address. Create an account to contribute.
{{Blocked proxy}} This IP address has been blocked because it is believed to be an open proxy or zombie computer.
{{IPsock}} An editor has expressed concern that this IP address has been used by a registered user.
{{Geocoding}} Geo-Coding: Maybe you could consider adding coordinates to some of your images.
{{Sourcefield}} Please properly use the source field.
{{Dateformat}} Please use the correct date format.
{{Do not upload thumbnails}} Please always upload the biggest resolution image, you can obtain. Thanks.
{{Flickrvionote}} Please do not upload questionable Flickr-Files to Commons.
{{Speedynote}} Some of your contributed contents will be possibly speedy-deleted.

-- RE rillke questions? 16:02, 6 December 2011 (UTC)Reply

talk edit

Can the indef blocked one read "Your account has been blocked indefinitely" rather than "Your account has been blocked indefinite." - it is better English :) Thanks --Herby talk thyme 12:44, 13 December 2011 (UTC)Reply

  Done. -- RE rillke questions? 21:36, 31 December 2011 (UTC)Reply

The summary message for {{Please describe images}} is currently "Search-engine: Mhh, interesting, a picture but what is on it? Can you describe it, please." Could we please make that more neutral and non-emotional? ;-) I do not like to say "interesting" to all pics. Suggestion: What is it? Could you please describe it in more detail? --Saibo (Δ) 15:42, 27 February 2012 (UTC)Reply

  Done -- RE rillke questions? 16:19, 2 March 2012 (UTC)Reply

Bug? edit

On MediaWiki:AxUserMsg.js there is this line:

o.doAPICall(params, callback);

Maybe I just overlooked it, but I think "callback" is not defined at that point, is it? Helder 21:44, 6 December 2011 (UTC)

doAPICall: function (params, callback) {. Even if callback is undefined (not passed by the calling function), it is "declared" and therefore, I do not expect an error. -- RE rillke questions? 10:12, 7 December 2011 (UTC)Reply
Example:
var aConter = 0;

function bla(d) {
'use strict';
    if (aConter === 5) return;
    aConter++;
    console.log(aConter);
    console.log(typeof d);
    setTimeout(function() {
        bla(d);
    }, 500);
}
bla();
-- RE rillke questions? 10:18, 7 December 2011 (UTC)Reply
Got it! =)
Never mind... Helder 12:28, 7 December 2011 (UTC)

Doesn't work on redlinked user talk pages edit

(I can't remember if I reported this issue elsewhere; it seems familiar.) The script doesn't work when clicking the notify link while visiting a user talk page without any content (like title=User_talk:Username&action=edit&redlink=1). Normally, the only users with blank talk pages are users that are not logged in (a.k.a. "anonymous" users, IP addresses). Notifying users with blank talk pages works fine from their contributions list and similar; it's only from the talk page itself that it doesn't work. When clicking the notify link on that page, the link simply disappears. This happens in both Chrome and Firefox. Obviously, this is only a very minor issue. LX (talk, contribs) 16:52, 24 January 2012 (UTC)Reply

That's strange. I tested it on http://commons.wikimedia.beta.wmflabs.org/wiki/User_talk:Rillke and I was able to notify myself from the deleted user-talk-page. I will do further investigation. -- RE rillke questions? 17:33, 24 January 2012 (UTC)Reply
I'm getting the same problem, I just tried to add a notice to a redlink ip talk page in Chrome, and it hangs as it says, "Loading...". Techman224Talk 06:28, 28 January 2012 (UTC)Reply
I tried likely everything (switching to monobook, enabling edit-toolbar, ...) but it worked all the times. Is there any error in the js-Console (ctrl+shift+j) appearing after clicking on the link? I try to step though the code, through. -- RE rillke questions? 12:11, 28 January 2012 (UTC)Reply
I should have mentioned: I checked the error console in both Chrome and Firefox – nothing. I'm using Monobook. LX (talk, contribs) 09:27, 31 January 2012 (UTC)Reply
So I prepared a test. Volunteers? Please wait 20s, then copy everything starting with Commons Troubleshooter v.0.2 (below the edit-box). You can paste it into your sandbox or if you have security concerns due to the amount of collected data, e-Mail me or simply tell me whether it worked and then I can ask step by step. Thank you. -- RE rillke questions? 17:55, 2 March 2012 (UTC)Reply
That worked, I think. If you need me or anyone else to test again on that particular page, you'll have to delete it. :) LX (talk, contribs) 19:21, 2 March 2012 (UTC)Reply

Yes, please. When the dialog appears, close it and scroll down completely. There is a very long debug output. In the best case, I'd like to have all. If that's not possible, here are the questions I have: Below which "heading" AxUserMsg: object appears?

  • Below Hello! I am your userscript tester!,
  • Below -------- Loading directly ---------- or
  • Below -------- Loading using AJAX ----------?

-- RE rillke questions? 19:42, 2 March 2012 (UTC)Reply

Ah, got it. You have mail. LX (talk, contribs) 19:50, 2 March 2012 (UTC)Reply
Thanks. I made a few changes. Does it work now? -- RE rillke questions? 21:52, 2 March 2012 (UTC)Reply
Yep, works. Thanks! LX (talk, contribs) 10:54, 3 March 2012 (UTC)Reply

Additional parameter request edit

Would it be possible to add the "additional parameter" option to the Test templates as the Attackpage template has? From what I can see the Test templates accept a page name. Thanks. —Bruce1eetalk 06:58, 26 January 2012 (UTC)Reply

  Done -- RE rillke questions? 14:04, 26 January 2012 (UTC)Reply
That was quick! Thank you. —Bruce1eetalk 14:49, 26 January 2012 (UTC)Reply

talkback edit

How about adding talkback? Or is there any other tool (similar to twinkle at enwp) which can do this? mabdul 11:55, 20 March 2012 (UTC)Reply

Not that easy but included now. (script does not support default and named params) You may have to wait 30d until your the script copy in your cache has refreshed. -- RE rillke questions? 12:33, 20 March 2012 (UTC)Reply

register edit

Consider adding {{Please register}}. Could you make it so that the tool first checks if target user is, in fact an IP.--Gauravjuvekar (talk) 16:56, 9 April 2012 (UTC)Reply

Huh? Isn't this already included for IPs? -- RE rillke questions? 17:05, 9 April 2012 (UTC)Reply

Error message edit

During the execution of AxUserMsg, the following error occured:
this.umTemplate[$("#umTagToInsert").val()] is undefined<br/>TypeError @line467

Message appears upon loading the tool at User talk:Kill Beta M. --Denniss (talk) 14:03, 9 May 2012 (UTC)Reply

Sorry for this. But according to Special:ListUsers, what the script looks up (therefore the black cross on red background behind the user name), there is no user "Kill Beta M". The username was oversighted: NavPopups tell me Not a registered username, LOCKED, HIDDEN -- RE rillke questions? 14:11, 9 May 2012 (UTC)Reply
Ah, OK. But strange the other Troll accounts of this user are not locked in the same way. --Denniss (talk) 17:31, 9 May 2012 (UTC)Reply

Another error edit

I get the follow error when I want to post an autopatrol welcome message on User talk:Ambross07:

During the execution of AxUserMsg, the following error occured:
API request failed (pagecannotexist): Namespace doesn't allow actual pages

Any idea why? Trijnsteltalk 21:46, 23 October 2012 (UTC)Reply

My fault, fixed. Reedy (talk) 22:03, 23 October 2012 (UTC)Reply
That was quick. Thanks! Trijnsteltalk 22:10, 23 October 2012 (UTC)Reply

How to file a DR (template?) edit

Is there a template which tells users how to file a DR (using AjaxQuickDelete.nominateForDeletion )? --McZusatz (talk) 13:57, 28 December 2012 (UTC)Reply

I am not aware of one but there is Help:Nominate for deletion. -- Rillke(q?) 16:20, 28 December 2012 (UTC)Reply
If there is one, please list it at Commons:Message templates. Thank you. -- Rillke(q?) 16:28, 28 December 2012 (UTC)Reply

Gadget not working with my global.js edit

When I use my global.js on Commons, when I try to use this tool it hangs on "Loading..." on the sidebar. No dialog comes up, and it does nothing. I've have my global javascript in common.js. Techman224Talk 21:48, 26 January 2013 (UTC)Reply

There is a lot in your global js... -- Rillke(q?) 13:45, 27 January 2013 (UTC)Reply
I'll try to narrow it down for you. Techman224Talk 18:38, 27 January 2013 (UTC)Reply
I think the problem is with mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:PiRSquared17/twinkle.js&action=raw&ctype=text/javascript'); Techman224Talk 18:54, 27 January 2013 (UTC)Reply

Minor problem with Blocked edit

Once selected the cursor becomes active on the second input field (for reason), shouldn't it start on the first field for duration? Duration should always be entered, reason is not a must-have. Using Firefox. --Denniss (talk) 21:25, 7 March 2013 (UTC)Reply

parameter request : nopenis edit

Can Template:Nopenis be added? --Isderion (talk) 23:56, 14 June 2013 (UTC)Reply

Available as Nude photos - Please consider reading COM:Project scope and COM:Nudity. -- Rillke(q?) 10:43, 6 December 2013 (UTC)Reply
  This section is resolved and can be archived. If you disagree, replace this template with your comment. Rillke(q?) 10:43, 6 December 2013 (UTC)

" edit

This gadget does not work for users with quotation marks in the user name. I tried to notify User:Setra "Homer" with {{subst:dont recreate}} but the notification went to the unrelated User:Setra instead. --Stefan4 (talk) 23:02, 5 December 2013 (UTC)Reply

Thank you for reporting this issue. It turned out that the code flaw did not only introduce this bug but made the script potentially vulnerable against JS-injection, although unlikely because a user name like " onmouseover="alert('There is a security vulnerable. Please contact the next admin.')" target=".png (with at least 2 double quotes and 2 parentheses would have been required to exploit it. -- Rillke(q?) 23:49, 5 December 2013 (UTC)Reply
  This section is resolved and can be archived. If you disagree, replace this template with your comment. Rillke(q?) 23:49, 5 December 2013 (UTC)

dropdown not working edit

This is maybe related to the last change: I can not get the dropdown menu to work properly because it is empty screenshot --McZusatz (talk) 00:47, 6 December 2013 (UTC)Reply

Idem. Gunnex (talk) 08:30, 6 December 2013 (UTC)Reply
Yes, it was Rillke again. Thanks for the swift and illustrative report. For all who did not customize window.AxUserMsgCustomText, it broke. I regret the inconvenience. -- Rillke(q?) 10:32, 6 December 2013 (UTC)Reply
  This section is resolved and can be archived. If you disagree, replace this template with your comment. Rillke(q?) 10:32, 6 December 2013 (UTC)

It's … edit

… just not working (appearing it the "Tools" section of the sidebar) for me. Using Vector, the Croptool gadget (which takes the place above VTC in the sidebar) …    FDMS  4    22:46, 18 May 2014 (UTC)Reply

The link appears but it's not loading? Does it say it's loading? -- Rillke(q?) 15:08, 20 May 2014 (UTC)Reply
No, it's not appearing …    FDMS  4    15:12, 20 May 2014 (UTC)Reply
There was recently some ResourceLoader-glitch. Please go to this diagnostic page and tell me what is written behind ext.gadget.UserMessages or if you cannot find it at all. -- Rillke(q?) 15:52, 20 May 2014 (UTC)Reply
registered   FDMS  4    15:56, 20 May 2014 (UTC)Reply
It should say "loading" at least :( Are you sure the checkbox is still ticked in your preferences? Try unticking, saving and ticking it again. What does UserMessages -> at the diagnostic page say? -- Rillke(q?) 16:48, 20 May 2014 (UTC)Reply
I'm very, very sorry, it seems like I had turned it off in the meantime. I've now rechecked the box (and purged a filespace page to find out it is still not working), and now the diagnostic page says ready. The other value now is ->on -->ready. Also there is (and has always been) a ---- USER MESSAGES ---- section. Are there any requirements I don't know of yet? Should the link show up on every filespace page?    FDMS  4    17:39, 20 May 2014 (UTC)Reply
No point. According to Help:Gadget-UserMessages, at the user's talk page, that link is show. However, it's also shown on contribs and logs; almost each time a user can be guessed; though not on file description pages. -- Rillke(q?) 19:50, 20 May 2014 (UTC)Reply
True, very true, I did not read the first section of the helppage (but most of the rest of it). Could you introduce an option to make the link available on any kind of page (even editing this MediaWiki talkpage I still have a VTC link in my sidebar)? The default message target should be the uploader's one, but on one the screenshots I noticed a field for changing user anyway. I thought this might be especially helpful for sending messages such as {{Unfreeflickrnote}} to uploaders …    FDMS  4    20:16, 20 May 2014 (UTC)Reply
Did you consider QuickDelete? -- Rillke(q?) 20:59, 20 May 2014 (UTC)Reply
Thanks for the recommendation, that worked (except for the line it always wants to prepend to file pages). Still I think it would be great to have access to the gadget on any page, but that's just a suggestion and I'm thankful for the gadget without as much as with the option.    FDMS  4    21:35, 20 May 2014 (UTC)Reply

Gadget is broken today edit

  • Browser: Chrome 35
  • OS: Ubuntu 64
  • Additional note: I have https enforcement via HSTS in Chrome for everything in the wikipedia and wikimedia domains.

I am going to notify the user, and everything looks fine.[1] As soon as I try to select something, the display breaks entirely.[2]

I have cleared my browser cache already and that didn't fix it.

Magog the Ogre (talk) (contribs) 03:48, 25 June 2014 (UTC)Reply

jQuery UI has been updated. -- Rillke(q?) 07:20, 25 June 2014 (UTC)Reply
Looks like a bug in WebKit/Blink as only newer versions of Opera and Chrome are affected at line input.autocomplete( "search", "" );. Cannot test Safari. -- Rillke(q?) 07:37, 25 June 2014 (UTC)Reply
Maybe they dig out the error: https://code.google.com/p/chromium/issues/detail?id=388779 -- Rillke(q?) 17:26, 25 June 2014 (UTC)Reply
No idea what makes you think this is a Webkit/Blink issue instead of a JQueryUI issue. Also, since you're running Windows, you could quite easily just download Safari 5. Granted, it's an unpatched old browser, but you're just using it to test Wikimedia. Magog the Ogre (talk) (contribs) 23:34, 25 June 2014 (UTC)Reply
Don't see how a jQuery UI issue could produce this kind of output. It's like part of the dialog's rendering said bye while other parts are still visible and the most strange thing is that all elements and inputs are still accessible with the cursor (note the ULS IME thing behind the grey layer). If it would be jQuery UI, there most likely wouldn’t be these edges of the dialog. When I've time I try to track this down. -- Rillke(q?) 23:51, 25 June 2014 (UTC)Reply
It wouldn't hurt to report it to them too. As a web programmer, you surely know that the line between "the browser needs to be fixed" and "I need to work around the browser being stupid" is not a fine one. (If you think I'm picking on IE, it's because I am). Magog the Ogre (talk) (contribs) 23:59, 25 June 2014 (UTC)Reply
For what it is worth, no problem appears in Safari 7.0.4 on OS X 10.9.3 when I follow the steps to reproduce in the Chromium bug report. —RP88 (talk) 22:35, 26 June 2014 (UTC)Reply
@Rillke: are you going to report this to JQueryUI, or do I need to? Magog the Ogre (talk) (contribs) 23:20, 26 June 2014 (UTC)Reply
Please do. Note, however that for reproducing, you have to send people to User:Rillke/x as it is now fixed everywhere else. And be prepared that they close it as WONTFIX as it is a browser bug (which jQuery UI should of course work around). -- Rillke(q?) 08:49, 27 June 2014 (UTC)Reply
@Magog the Ogre: Any news from jQuery UI? -- Rillke(q?) 10:10, 28 June 2014 (UTC)Reply
Please don't report. They have fixed it since and it just has to be fixed in MW. -- Rillke(q?) 16:02, 1 July 2014 (UTC)Reply
Just in time; I was about to report it. Who are they, and what was the fix? Magog the Ogre (talk) (contribs) 04:06, 2 July 2014 (UTC)Reply
Nevermind, I see now. Magog the Ogre (talk) (contribs) 04:08, 2 July 2014 (UTC)Reply

Thanks for reporting. -- Rillke(q?) 21:57, 3 July 2014 (UTC)Reply

  This section is resolved and can be archived. If you disagree, replace this template with your comment. Rillke(q?) 21:57, 3 July 2014 (UTC)

Sandboxing is broken edit

The option "Sandboxing - Referral to sandbox for conducting experiments" recently started resulting in the generic edit summary "A new message for you!." (with punctuation as shown here) and an empty preview except for one's signature. The actual result is broken in the same way as the preview. This is the only template I've noticed being affected, but I haven't checked them all. LX (talk, contribs) 19:40, 3 July 2014 (UTC)Reply

That should be fixed. If not, let me know :) -- Rillke(q?) 21:56, 3 July 2014 (UTC)Reply
  This section is resolved and can be archived. If you disagree, replace this template with your comment. Rillke(q?) 21:56, 3 July 2014 (UTC)

Script doesn't like ampersands in the username edit

Go to Special:Contributions/Charlotte & Marie-Sarah. Click Notify this user, and the script will refuse to continue. User can get around this by replacing %26 with &. Magog the Ogre (talk) (contribs) 03:57, 18 December 2015 (UTC)Reply

  Fixed with rev 182192257. Thanks for reporting! -- Rillke(q?) 16:25, 18 December 2015 (UTC)Reply
  This section is resolved and can be archived. If you disagree, replace this template with your comment. Rillke(q?) 16:27, 18 December 2015 (UTC)

Script is leaving the wrong link for talkback edit

Per this edit by Natuur12 and this edit by myself, I suspect that it might be corrupting a previous page visited, and placing it as the main link to talk back to when you leave a message. It's not a big deal since our talk pages are linked below, but it could confused a few editors down the road. Kevin Rutherford (talk) 05:23, 8 March 2016 (UTC)Reply

I don't get it. Could you clarify what it corrupts and how it relates to a previous page visited using your provided examples? Thanks. -- Rillke(q?) 10:16, 8 March 2016 (UTC)Reply
Natuur could comment on his thing, but he was linked to Dikson from AN, so I suspect it might have linked to AN based on a previous page view. Mine linked to my name, which likely could have happened because I was right on my talk page before that. I can test it on my page a few times to see what happens, but I figured this could be easily fixable. Kevin Rutherford (talk) 18:20, 8 March 2016 (UTC)Reply
Please have a close look: {{autotranslate|base=end of copyvios}} vs. {{autotranslate|base=end of copyvios|1=Ktr101}}. This is the result following a village pump discussion. I changed {{End of copyvios}} to include the user's name who puts the template on a user's talk page (who subst:s the template to be precise but this is what the user message gadget does). Templates placed before that change needed a fallback solution (because they do not include the user name) and the one that came into my mind was to link to COM:AN. That might not be the perfect place to ask about copyright, however the template puts a threat of being blocked on the user's talk page so it might be the best for them to get an opinion by an individual who is able to block. -- Rillke(q?) 21:14, 8 March 2016 (UTC)Reply
Ah okay, I had no idea it was implemented so recently. Thanks for clarifying that, as it is much appreciated. Kevin Rutherford (talk) 05:13, 9 March 2016 (UTC)Reply

Slight bug edit

When adding 'additional text', the script should add a space between the end of the text and the editor's signature. Currently it does not - you have to remember to put it in the box. Reventtalk 15:33, 15 August 2016 (UTC)Reply

Feature request edit

Please disable "Add template" button when a template is not selected in order to avoid empty notifications, e.g. Special:Diff/240627527. --jdx Re: 03:01, 13 April 2017 (UTC)Reply

Broken JavaScript edit

MediaWiki developers found that this page probably breaks JavaScript for users (example: not seeing the buttons when editing a page). You probably need to edit this .js page and/or MediaWiki:Gadgets-definition as in the examples at phabricator:T122755. List more pages to check.

If you have questions or need help, please ask at phabricator:T164242. You can login with your wiki account. Best wishes, Nemo 09:49, 14 May 2017 (UTC)Reply

End of copyvios edit

{{Editprotected}} Our current "End of copyvios" template makes some assumptions about predecessor actions, such as "requests from editors", "instructions", and something before a "last warning". We do not appear to have a template in this gadget which is a more polite request from an editor to stop uploading copyvios, with instructions, or with a prior-to-last warning. If there is no such template, there should be. If it is not in this gadget, it should be. The welcome doesn't count, it's not from individual editors. On the other hand, we could just make the current template more true by softening those assumptions, and only assume the standard welcome has been sent. Of course, this is all in English, but I assume the other language versions have similar issues.   — Jeff G. ツ please ping or talk to me 02:42, 5 March 2018 (UTC)Reply

  • Personally, I would keep the current one and create a second "softer" one. We have 4 options for people making nonsense edits, we could easily have 2 for people uploading copyvios that don't fit other categories and may also be new users you don't want to scare off, or users that don't deserve such a harsh "last warning" edit. -- Sixflashphoto (talk) 02:17, 8 March 2018 (UTC)Reply
@Sixflashphoto: I made one at Template:Fcs, what do you think?   — Jeff G. ツ please ping or talk to me 03:19, 8 March 2018 (UTC)Reply
@Jeff G.: I slept on it and I like it. I think it is nicely done. -- Sixflashphoto (talk) 16:25, 8 March 2018 (UTC)Reply
@Sixflashphoto: Thank you.   — Jeff G. ツ please ping or talk to me 16:33, 8 March 2018 (UTC)Reply
@Perhelion: What do you think? Can we add this template to the gadget?   — Jeff G. ツ please ping or talk to me 02:21, 5 April 2018 (UTC)Reply
@Jeff G.: I think this new creation needs more support first. We need more opinions, more translations and a documentation. -- User: Perhelion 15:41, 15 August 2018 (UTC)Reply
@Perhelion and Sixflashphoto: I documented and tweaked it. Translation will take longer.   — Jeff G. ツ please ping or talk to me 18:16, 15 August 2018 (UTC)Reply
  Done Thank you! -- User: Perhelion 00:04, 17 August 2018 (UTC)Reply

How to translate phrase "Notify this user"? edit

Please convert this message into translatable mode. --Kaganer (talk) 17:15, 19 June 2018 (UTC)Reply

Hello Kaganer, what about the autotranslation {{int:Echo-category-title-edit-user-talk}} "Edits to my user talk page" or simply the toolname "UserMessages"!? -- User: Perhelion 15:32, 15 August 2018 (UTC)Reply
@Perhelion: IMHO, not fine. Need to use standard way for gadget's messages internationalization.--Kaganer (talk) 17:31, 15 August 2018 (UTC)Reply

Error message edit

Hello, as per this : [3], I tried to use the notification tool for this user but I got this message "During the execution of AxUserMsg, the following error occured: this.umTemplate[$(...).val(...)] is undefined
TypeError @line451" . Regards, Christian Ferrer (talk) 20:38, 21 December 2018 (UTC)Reply

Template:Test edit

{{Editprotected}} Can we add this template, please?   — Jeff G. please ping or talk to me 08:09, 19 January 2019 (UTC)Reply

Hey Jeff G., this template is already present as "Sandboxing". Should we improve this name as "Test/Sandboxing"!? -- User: Perhelion 02:30, 24 February 2019 (UTC)Reply
@Perhelion: Yes, please.   — Jeff G. please ping or talk to me 14:40, 24 February 2019 (UTC)Reply
  Done[4] -- User: Perhelion 16:34, 24 February 2019 (UTC)Reply
@Perhelion: After recent changes the script doesn't add full signature, i.e. only username without timestamp, e.g. Special:Diff/340396414. --jdx Re: 18:36, 24 February 2019 (UTC)Reply
Confirmed.   — Jeff G. please ping or talk to me 19:06, 24 February 2019 (UTC)Reply
Ups*   Fixed -- User: Perhelion 20:09, 24 February 2019 (UTC)Reply

Advertising edit

{{Editprotected}} Please change "commons" to "Commons." in "Please do not advertise on commons We have the goal of an educative image collection" on MediaWiki:AxUserMsg.js to form "Please do not advertise on Commons. We have the goal of an educative image collection".   — Jeff G. please ping or talk to me 15:31, 26 May 2019 (UTC)Reply

  Done --Didym (talk) 18:35, 31 May 2019 (UTC)Reply
@Didym: Thanks!   — Jeff G. please ping or talk to me 08:48, 1 June 2019 (UTC)Reply

Copyvionote edit

{{Editprotected}} An additional umsg.umFlag needs to be added to Mediawiki:AxUserMsg.js as the 2= and 3= parameters of {{Copyvionote}} adds the reason to why it’s a copyvio. 1989 (talk) 09:40, 22 October 2019 (UTC)Reply

@1989: what ~riley said – I tried looking at the code but couldn’t figure out what change would need to be made. If I understand the functional change that’s being requested correctly – the person using the gadget should be able to enter additional parameters for the message that’s about to be sent to the user, for the extra {{Copyvionote}} parameters– then it’s not even clear to me that this could be done with simple umsg.umFlag changes: the gadget might need larger changes to support this. (That said, I don’t use the gadget myself, so this is not an especially well-informed opinion.) --Lucas Werkmeister (talk) 21:07, 8 April 2020 (UTC)Reply
@Lucas Werkmeister: if an edit request is unclear, please just change it so it's no longer in Category:Commons protected edit requests for interface administrators. That category should only contain requests that are clear and can be acted on by an (interface) admin. @1989: can you update your request so it's clear what needs to be done? Multichill (talk) 13:30, 7 August 2020 (UTC)Reply


Edit request of MediaWiki:AxUserMsg.js: Rewording of template descriptions edit

{{Edit request}} In MediaWiki:AxUserMsg.js: change the singular third-person pronouns used in the template descriptions to be gender neutral (e.g., he/him/his to they/them/their).

Because it should be pretty self explanatory, I'm only putting the line number and the changed version of the portion of the string in question. If it's unclear what I meant by any of those changes let me know and I'll clarify.

  • Line 812: please link their images
  • Line 816: please name their images
  • Line 817: please tag their images
  • Line 818: please describe their images
  • Line 839: because they did not stop

Perryprog (talk) 15:51, 16 November 2020 (UTC)Reply

  Done (in theory MediaWiki can customize messages depending on another user’s gender, but in JS that’s a bit more tricky and probably requires an asynchronous network request to look up the target user’s gender preference, so let’s keep it simple for now and use singular they) --Lucas Werkmeister (talk) 21:19, 23 November 2020 (UTC)Reply
Lucas Werkmeister: many thanks. Clearly though, the solution should involve embedded magic words and templates within JS—what better way to leverage MediaWiki's capabilities? :^) Perryprog (talk) 22:02, 23 November 2020 (UTC)Reply

Bug: Cannot read properties of undefined edit

Hi, Trying to send a message to https://commons.wikimedia.org/wiki/User_talk:Md._Rasel_Hossain_-_%E0%A6%AE%E0%A7%8B%E0%A6%83_%E0%A6%B0%E0%A6%BE%E0%A6%B6%E0%A7%87%E0%A6%B2_%E0%A6%B9%E0%A7%8B%E0%A6%B8%E0%A7%87%E0%A6%A8 I get the following:

During the execution of AxUserMsg, the following error occured: Cannot read properties of undefined (reading '3')<br>TypeError

Then I can't send any message to this user. There is a red cross near the username field. I suppose the problem is with the usename in Bengali: User talk:Md. Rasel Hossain - মোঃ রাশেল হোসেন. Clicking on [5], I get User account "Md. Rasel Hossain - মোঃ রাশেল হোসেন" is not registered. Please check if you want to create/edit this page., however I can add a message this way. Regards, Yann (talk) 20:04, 27 September 2021 (UTC)Reply

The user had changed their name manually[6]. They should have requested a username change using m:Special:GlobalRenameRequest rather than moving their talk page manually. I moved back their usertalk to the original name.[7] You should be able to communicate with them there. 4nn1l2 (talk) 20:48, 27 September 2021 (UTC)Reply

Vandalism edit summaries edit

{{Edit request}} The level 1-3 edit summaries for vandalism warnings in MediaWiki:AxUserMsg.js are:

  1. Please do not contribute nonsense-edits.
  2. Please stop making nonsense-edits.
  3. Stop producing nonsense!

"Nonsense" seems the wrong word to use here (not all vandalism is nonsensical), and indeed the warned user gets a talk page section of "Vandalism warning" which opens "You have vandalized the content of Wikimedia Commons", so the concept of vandalism is not being deliberately avoided. Suggest changing these to be more obvious:

  1. Please do not vandalize Wikimedia Commons.
  2. Please stop vandalizing Wikimedia Commons.
  3. Stop vandalizing Wikimedia Commons!

--Lord Belbury (talk) 13:39, 12 June 2022 (UTC)Reply

  Done Awesome! Thank you! —‍Mdaniels5757 (talk • contribs) 15:16, 20 October 2022 (UTC)Reply

add: Commons is not meme place edit

many users uploading memes here. almost all of them are copyvio and out of project scope. yes, we can give warning about "project scope" but i think we should specify when it is about meme images.

if you planning add more warnings, consider to add this too.

----modern_primat ඞඞඞ TALK  15:22, 14 January 2023 (UTC)Reply

Vandalism warnings give test warning templates edit

The "Warning for vandalism and request to cease" selection on this gadget puts the {{Test2}} template onto the user's talk page, "Second warning for vandalism and announcement of block if it continues" puts {{Test3}} and "Last warning for vandalism and announcement of block on next violation" puts {{Test4}}.

{{Uw-vandalism4}} redirects to {{Test4}}, so fair enough, but should the first two be using {{Uw-vandalism1}} and {{Uw-vandalism2}} instead of test2 and test3?

The main difference is that uw-vandalism1 is a little more good faith, saying that the edit "did not appear constructive" rather than accusing the editor of deliberate vandalism. Belbury (talk) 14:52, 24 January 2023 (UTC)Reply

Return to "Gadget-UserMessages.js" page.