MediaWiki talk:Gadget-DeletionHelper.js

Latest comment: 11 months ago by Hoo man in topic Remove this

Dashes edit

I disagree with the reasoning to remove the two dashes. The default signature by MediaWiki is --~~~~, i.e. the the conversion of ~~~~ does not yield any dashes. --Leyo 17:25, 8 March 2013 (UTC)Reply

What about an opt-out feature that would work for all gadgets with an automatic signature? For example, SignatureWithoutDashes = true or similar. --Leyo 09:36, 11 March 2013 (UTC)Reply
The opt-out feature is the best work-around. Also, I disagree with your saying what the "default" signature is. Firstly, I'm sure many users manually type their signatures many times, myself included for the most part. Secondly, not having the dashes for a user who doesn't have a dash in his/her signature isn't "annoying"/a problem, or at least that's my opinion, while if the user does have a dash, there are multiple dashed created, which I'm not entirely pleased with.  Hazard-SJ  ✈  02:37, 26 March 2013 (UTC)Reply
I agree with everything Hazard just said. IMHO, "--" looks bad no matter what (in fact, it's forbidden in en:WP:MOS#Other dashes). "-- –" or "-- —" is downright ugly. In fact, I have half a mind to go file a bug to change the "default" to a dash-free one. (It's worth noting that while the button above the edit window includes dashes, the button below it does not.)
Anyways, workaround-wise... would there be any way to automatically detect if a user has a dash in their sig? Alternatively... a script like this is used almost exclusively by admins. I know this is rather low-tech, but could we perhaps just draw up a list of which admins have dashes in their sigs, and which don't? — PinkAmpers&(Je vous invite à me parler) 02:58, 26 March 2013 (UTC) (not -- — PinkAmpers&(Je vous invite à me parler) 02:58, 26 March 2013 (UTC) )Reply
Because the en.MOS affects en.talk pages... right. :) Personally, I would prefer the dashless version, precisely because it's just wasted effort and increased code to maintain a list. That said, we could remove the sig altogether and have people do it themselves, but that behavior might vary too much from Twinkle. --Izno (talk) 03:08, 26 March 2013 (UTC)Reply
I fully agree that the additional dashes do not look nice for user with a modified signature that already includes something similar. That's why there should be a possibility to opt-out.
Some considerations why by default there need to be dashes: For example {{deleted}} [[User:Izno|Izno]] gives the text “Deleted Izno”, which is grammatically incorrect. Izno was not deleted at all. The German version of {{done}} [[User:Izno|Izno]] can be translated as “wore down Izno”…
An example from Commons (where the same problem exists): What the heck is an “unused Ricordisamoa”? It's even worse if the user has a name that looks like a part of normal text. --Leyo 09:40, 26 March 2013 (UTC)Reply
So, we need dashes because we have bad grammar? :) That problem could be just as simply solved by a full stop. --Izno (talk) 12:13, 26 March 2013 (UTC)Reply
I thought about this possibility, too. It might work for certain cases, but not for others (where some users add a full stop manually). In addition, {{Deleted}} or {{Done}} is not a full sentence. Hence, dashes or a user defined separator are fine. --Leyo 14:05, 26 March 2013 (UTC)Reply


Ladies and gentlemen, I hereby introduce you User:Ricordisamoa/DashesInSignature.js! Try it out. --Ricordisamoa 03:30, 26 March 2013 (UTC)Reply
Did you test it? I'm not sure if this is the intention, but using the direct API query, I got {"parse":{"title":"Wikidata:Requests for deletions","text":{"*":"<p>ciao<\/p>\n\n\n<!-- \nNewPP limit report\nPreprocessor visited node count: 1\/1000000\nPreprocessor generated node count: 4\/1500000\nPost-expand include size: 0\/2048000 bytes\nTemplate argument size: 0\/2048000 bytes\nHighest expansion depth: 1\/40\nExpensive parser function count: 0\/500\n-->\n"}}}.  Hazard-SJ  ✈  03:55, 26 March 2013 (UTC)Reply
Sure, I tested it! Simply run the code by adding it in your common.js or via the browser console: it will alert the result (it parses the resulting HTML code) --Ricordisamoa 04:27, 26 March 2013 (UTC)Reply
Oooooopps :-))))))) It was still using some test-code, I thought it was correct...... ------------Ricordisamoa 10:00, 26 March 2013 (UTC)Reply
Is this script for users with or without a modified signature? Does it also work for other gadget that have an automatic signature (if there are any) or for Template:Request for deletion? --Leyo 14:05, 26 March 2013 (UTC)Reply
Now it is only a test, but we can create a "global variable" with true or false (if the user has dashes or not) and then this will be used by other scripts and gadgets. --Ricordisamoa 16:04, 26 March 2013 (UTC)Reply
Yes, that would be good. Users who use the default settings should not be requested to edit their common.js. Hence, false should be used for the default case. --Leyo 17:26, 26 March 2013 (UTC)Reply
No one is "requested" to do anything, it's merely an opinion of preference. The "default signature", as it stands, is MediaWiki:Signature, which does not include the dashes. It is up to the user to chose whether or not to use them, so I think the dashes should be excluded by default.  Hazard-SJ  ✈  04:05, 28 March 2013 (UTC)Reply
  yields --~~~~. This is how a signature is added by default. --Leyo 09:42, 28 March 2013 (UTC)Reply

──────────────────────────────────────────────────────────────────────────────────────────────────── Again, I refuse to call it default, because using the button on that bar would be a user's choice, just as it would be his/her choice to type the four tildes or to use the four tildes by clicking the link provided by edit tools box below the edit box. Most of the times, I manually type my signature, even before using the dash as a part of my signature, and I'm sure others do this too.  Hazard-SJ  ✈  18:28, 28 March 2013 (UTC)Reply

I am pretty sure that most “non-power editors”/“non-geeks” click on the on the icon above to sign. No one of us can prove his guess. Anyway, the most important thing is to have a global variable for the dashes preference introduced. --Leyo 19:34, 28 March 2013 (UTC)Reply
BTW: The simplest option for automatic signing would be
--[[User:{{subst:REVISIONUSER}}|]] ~~~~~
, but I guess not everyone would like that. --Leyo 11:31, 3 April 2013 (UTC)Reply

some suggestions edit

for this message

Q3667070  (empty)
(delete | history | links | log)
Removed ITEN link by user:Buttons to Push Buttons
Dupe of Q2532672, now merged Buttons to Push Buttons (talk) 22:13, 9 March 2013 (UTC)

please:

should be fixed (waiting for some RfDs... :-) PS: you don't have to call me every time... --Ricordisamoa 22:44, 9 March 2013 (UTC)Reply
Fixed now! Be careful to preserve Bene*'s edits while re-updating it. --Ricordisamoa 23:08, 9 March 2013 (UTC)Reply
thanks   DoneReza1615 / T 23:33, 9 March 2013 (UTC)Reply

suggestion edit

please change it to show upper example like this ▬ Reza1615 / T 10:32, 10 March 2013 (UTC)Reply

Q3667070  (empty)
(delete | history | links | log)
Removed it:test, en:test links and added it:test, en:test links to Q2532672
Dupe of Q2532672 , now merged Buttons to Push Buttons (talk) 22:13, 9 March 2013 (UTC)
What do you mean with "it:test" and "en:test"? --Ricordisamoa 15:05, 10 March 2013 (UTC)Reply
language link's title which is removed. some times users remove language link which are not correct and admins should revert their edits and not delete that item i.e. in this diff I added fa:شیراز to the item▬ Reza1615 / T 15:20, 10 March 2013 (UTC)Reply
So, it is not important to display a link to the diff page in which the sitelink was removed? --Ricordisamoa 15:25, 10 March 2013 (UTC)Reply
in my opinion yes. because we can check item history▬ Reza1615 / T 15:31, 10 March 2013 (UTC)Reply

enhancement edit

When closing a Request :

  • It will send {{Delete}} if it's a simple request and if you've deleted this item.
  • It will send {{Deleted|admin=SomeOne}} if it's a simple request and if it's another person who have deleted this item.
  • It will send {{Not deleted}} if it's a simple request and if the item isn't deleted.
  • It will send {{not done}} if the page has never been created.
  • It will send {{done}} if it's a bulk.

A Custom Text:

  • You can close the request with a custom text and or a custom template
  • for exemple:
    • because it's not empty → (will send "{{default template}} because it's not empty --~~~~")
    • support# → (will send "{{support}} --~~~~")
    • oppose#per someone → (will send "{{oppose}} persomeone --~~~~")
    • deleted|admin=Legobot# and me → (will send "{{deleted|admin=Legobot}} and me --~~~~")

--Jitrixis (talk) 17:10, 17 March 2013 (UTC)Reply

Remove this edit

Hi, this gadget is no longer a "gadget" (which you could enabled in your preferences) and I doubt anyone is still using it at all, if it even still works. To make sure we don't spent time trying to maintain this in the future, I would suggest to remove all the source code, but keep the page history for historical reference. Hoo man (talk) 10:41, 22 May 2023 (UTC)Reply

Given there were no objections, I boldly went ahead and removed the code now! Cheers, Hoo man (talk) 14:09, 30 May 2023 (UTC)Reply
Return to "Gadget-DeletionHelper.js" page.