Wikipedia talk:AutoEd
This page has archives. Sections older than 180 days may be automatically archived by Lowercase sigmabot III when more than 2 sections are present. |
Three things
[edit]I'm coming here from User talk:Paulinefowler666 § Question, where I expressed concern about this edit, which I suspect may have been made using AutoEd. If so, and if the bugs are replicable, then there appear to be three issues:
- Non-breaking spaces specified with
 
are being removed and converted to normal spaces. - Substituted anchors in section headings are being removed.
- There is no tag or autosummary for edits made using AutoEd, which makes it hard to trace errors and report bugs like the two above.
I might be diagnosing what's happening here incorrectly (in which case just lmk), but if not, these are significant issues and should be resolved before this script is used further. Best, Sdkb talk 22:22, 15 May 2024 (UTC)
- I have a config that's even completer than complete, and I do not replicate any of these issues. Plus, the editor is an IP, so I doubt that they are running userscripts. Aaron Liu (talk) 01:41, 16 May 2024 (UTC)
- The editor who made the edit is Paulinefowler666, not an IP. Sdkb talk 01:44, 16 May 2024 (UTC)
- Okay, I got confused while navigating diffs, sorry. I'll take a look at the other scripts they have and see if there's anything that can cause this. Aaron Liu (talk) 01:45, 16 May 2024 (UTC)
- The editor who made the edit is Paulinefowler666, not an IP. Sdkb talk 01:44, 16 May 2024 (UTC)
- The culprit for removing the nbsp seems to be de:Benutzer:TMg/autoFormatter.js. Aaron Liu (talk) 01:53, 16 May 2024 (UTC)
- After loading up the appropriate revisions, the German invader caused the exact erroneous changes. It seems like the invader prosecutes anchor tags that aren't self-closed (which were recently fixed into being self-closed in the university article as a linter error. So, the {{anchor}} template may be rapidly generating linter errors?) Aaron Liu (talk) 02:00, 16 May 2024 (UTC)
Doesn't work
[edit]I followed the installation steps, purged the page's cache, but I don't see the "auto ed" entry. Susbush (talk) 12:51, 21 September 2024 (UTC)
- Hey there. JavaScript (.js pages) is a tricky thing. You can't add extra lines like your first line in common.js. If it can't get what something means, it'll stop loading the entire page. TL;DR: Remove your first line from User:Susbush/common.js.Also, since you're a new editor, please note that edits that only consist of changes by AutoEd are not welcome on Wikipedia; instead, run AutoEd after you make an edit that changes the content of the article. Happy editing! Aaron Liu (talk) 13:29, 21 September 2024 (UTC)
- "Remove your first line from the page" I need better clarification, because I don't understand what that means, Does that mean only include the AutoEd code and nothing else? Susbush (talk) 17:29, 21 September 2024 (UTC)
- Okay, now I understand, I deleted the "first line" and know I see the auto ed entry, but how do I use AutoEd? Susbush (talk) 17:33, 21 September 2024 (UTC)
- Also I'm using wikiEd. Susbush (talk) 17:35, 21 September 2024 (UTC)
- You click on the "AutoEd" button and it'll automatically remove minor issues it can find from the edit box. (Also, wikiEd is unmaintained and IMO archaic and unneded). Aaron Liu (talk) 17:44, 21 September 2024 (UTC)
- Wait i see two entries, which one do I click on??? Susbush (talk) 17:54, 21 September 2024 (UTC)
- any of them Aaron Liu (talk) 19:01, 21 September 2024 (UTC)
- No idea what the difference between the first and the second entry is Electrou (formerly Susbush) (talk) 18:54, 4 October 2024 (UTC)
- any of them Aaron Liu (talk) 19:01, 21 September 2024 (UTC)
- Wait i see two entries, which one do I click on??? Susbush (talk) 17:54, 21 September 2024 (UTC)
Dashes
[edit]Can someone help me with AutoEd customization to add User:Ohconfucius/dashes.js? I'm really confused with the instructions. 𝙹𝚒𝚢𝚊𝚗 忌炎 (𝚃𝚊𝚕𝚔) 19:21, 23 October 2024 (UTC)
- Hey! Add the following, and make sure it is below the imports for dashes and autoedcomplete:Aaron Liu (talk) 21:01, 23 October 2024 (UTC)
function autoEdFunctions() { //Activates individual modules when "auto ed" tab is clicked var $textbox = $( '#wpTextbox1' ); var txt = $textbox.textSelection('getContents'); txt = autoEdUnicodify(txt); txt = autoEdISBN(txt); txt = autoEdWhitespace(txt); txt = autoEdUnicodeHex(txt); txt = autoEdWikilinks(txt); txt = autoEdHTMLtoWikitext(txt); txt = autoEdHeadlines(txt); txt = autoEdUnicodeControlChars(txt); txt = autoEdTemplates(txt); txt = autoEdTablestoWikitext(txt); txt = autoEdExtraBreaks(txt); txt = autoEdLinks(txt); txt = autoEdDashes(txt); txt = autoEdFullwidth(txt); txt = autoEdCurlyFixer(txt); if(txt===$textbox.textSelection('getContents')){ autoEdTag = ""; mw.notify("No changes required!"); } else $textbox.textSelection('setContents', txt); }
- This is wonderful. I really appreciate your help. So many thank you. 𝙹𝚒𝚢𝚊𝚗 忌炎 (𝚃𝚊𝚕𝚔) 21:04, 23 October 2024 (UTC)
- @Aaron Liu A question when importing those to my common.js it should be like this:
Line1 = Dashes script
Is that right? 𝙹𝚒𝚢𝚊𝚗 忌炎 (𝚃𝚊𝚕𝚔) 21:15, 23 October 2024 (UTC)
Line2 = AutoEd script
Line3 = Custom text- no, the autoed one first. That should work Aaron Liu (talk) 21:21, 23 October 2024 (UTC)
- I added it but AutoEd was gone in the tools and dashes duplicated. Could you take a look at my User:Windborne Rider/common.js? Did I do it right? 𝙹𝚒𝚢𝚊𝚗 忌炎 (𝚃𝚊𝚕𝚔) 21:30, 23 October 2024 (UTC)
- Try importing AutoEd complete.js at the very start of the file Aaron Liu (talk) 22:01, 23 October 2024 (UTC)
- I added it but AutoEd was gone in the tools and dashes duplicated. Could you take a look at my User:Windborne Rider/common.js? Did I do it right? 𝙹𝚒𝚢𝚊𝚗 忌炎 (𝚃𝚊𝚕𝚔) 21:30, 23 October 2024 (UTC)
- no, the autoed one first. That should work Aaron Liu (talk) 21:21, 23 October 2024 (UTC)
why does AutoEd trash references?
[edit]Here is what it let a user do to an article the other day: it closed a references tag and blew away the reference definitions. -- mikeblas (talk) 14:47, 25 October 2024 (UTC)
- As the page says, users are responsible for inspecting their edits. This user clearly did not. Aaron Liu (talk) 15:05, 25 October 2024 (UTC)
- I would be surprised if there is code in the default AutoEd setup that adds a closing slash to <references>, which is used in 4,000 articles. I suspect that the editor did that one manually. User talk:Trivialist is probably the best place to raise this issue. – Jonesey95 (talk) 12:57, 28 October 2024 (UTC)
- Actually, Wikipedia:AutoEd/htmltowikitext.js#L-18 does that by default. Aaron Liu (talk) 13:24, 28 October 2024 (UTC)
- Well, color me surprised! That looks like a bug to me, since <references> is a supported feature of MediaWiki. That line should probably be removed from the AutoEd code. – Jonesey95 (talk) 15:03, 29 October 2024 (UTC)
- Actually, Wikipedia:AutoEd/htmltowikitext.js#L-18 does that by default. Aaron Liu (talk) 13:24, 28 October 2024 (UTC)
- I would be surprised if there is code in the default AutoEd setup that adds a closing slash to <references>, which is used in 4,000 articles. I suspect that the editor did that one manually. User talk:Trivialist is probably the best place to raise this issue. – Jonesey95 (talk) 12:57, 28 October 2024 (UTC)