Jump to content

Wikipedia talk:AutoEd

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

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)[reply]

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)[reply]
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)[reply]
Actually, Wikipedia:AutoEd/htmltowikitext.js#L-18 does that by default. Aaron Liu (talk) 13:24, 28 October 2024 (UTC)[reply]
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)[reply]

Edit requests to fix only-slightly–common bugs

[edit]

Remove lines 17 and 18, per the section immediately above. The part about whitespace isn't nearly worth as much as list-defined references. Aaron Liu (talk) 15:01, 28 December 2024 (UTC)[reply]

Change line 98 to if( document.getElementById('ca-edit') && !document.getElementById( autoEdLinkLocation ) ) { to prevent self-executing AutoEd modules like Dashes from accidentally adding multiple AutoEd portlets. Aaron Liu (talk) 15:01, 28 December 2024 (UTC)[reply]

 Done both. * Pppery * it has begun... 16:30, 28 December 2024 (UTC)[reply]
@Pppery Could you undo the second one? It looks like it broke everything. Sorry. Aaron Liu (talk) 16:38, 28 December 2024 (UTC)[reply]
As you wish. * Pppery * it has begun... 16:39, 28 December 2024 (UTC)[reply]
@Pppery Okay, this should work, I tested this one out:
if( document.getElementById( 'ca-edit' ) && !document.getElementById( 'ca-AutoEd' ) ) {. Thanks in advance! Aaron Liu (talk) 16:48, 28 December 2024 (UTC)[reply]
 Done * Pppery * it has begun... 16:55, 28 December 2024 (UTC)[reply]