User talk:SD0001/StubSorter
![]() | Stub sorting | |||
|
Suggestion
[edit]I think the stub sorter should get disabled ONLY if you are on an article with more than 4,500 bytes. That way people can't stub long articles. Just an idea ------[] /\/\/\ /\ []-------- GDFan 19:02, 10 December 2020 (UTC)
- I think it may be better if the tool just shows the size of the article in red if it is more than that, so that users can decide for themselves. – SD0001 (talk) 18:02, 9 March 2021 (UTC)
Null edit
[edit]@SD0001 Not sure how this happened. ~~~~
User:1234qwer1234qwer4 (talk) 01:54, 16 January 2022 (UTC)
- @1234qwer1234qwer4 you clikced save without changing any tags? It doesn't look like StubSorter would bail out on not seeing changes in tags, so it tried an edit anyway, which would normally not actually cause an edit – but here an extra newline was added per MOS:LAYOUT, so the edit got registered. – SD0001 (talk) 04:19, 16 January 2022 (UTC)
- @SD0001 Oh, yes, I had figured it out after accidentally doing another such edit, thanks. Maybe the script could be prevented from performing null/cosmetic edits? ~~~~
User:1234qwer1234qwer4 (talk) 11:32, 16 January 2022 (UTC)
- @SD0001 Oh, yes, I had figured it out after accidentally doing another such edit, thanks. Maybe the script could be prevented from performing null/cosmetic edits? ~~~~
Consider changing the menu text from Stub Sort to Stub Sorter
[edit]I was trying to figure out which stub sorting script I had installed today and I had to dig a bit. Having the menu display "Stub Sorter" instead of "Stub Sort" would be helpful for script identification. –Novem Linguae (talk) 04:09, 14 February 2022 (UTC)
- Is it that hard to figure out? Personally, I would prefer shorter names for script portlets as a Monobook user as to not cause them to run off the screen. ~~~~
User:1234qwer1234qwer4 (talk) 06:03, 14 February 2022 (UTC)
Duplicate stub templates
[edit]Special:Diff/1145639037, Special:Diff/1145638847, Special:Diff/1145638673, Special:Diff/1145638521, Special:Diff/1145638257 should be avoided. --Minorax«¦talk¦» 05:33, 20 March 2023 (UTC)
- @Minorax
Fixed. Stub tags with spaces in them were skipped earlier as it's very unusual for stub template names to have spaces. Have added in some logic to deal with them as well. – SD0001 (talk) 19:47, 21 April 2023 (UTC)
Is StubSorter still adding an extra line break?
[edit]Per WP:STUBSPACING, the double blank line before stub templates is no longer necessary and "should be removed when encountered". Based on this edit, StubSorter may still be inserting two blank lines instead of just one. It is also possible that the human editor added the second blank line out of habit, but if the script is doing it, can it be adjusted to use just one blank line? I think the relevant line of code may be line 342,
pageText += '\n\n\n' + tagsAfter.join('\n'); // per [[MOS:LAYOUT]]
Thanks. – Jonesey95 (talk) 13:44, 18 May 2025 (UTC)
Fixed. Only a single line break will be added now. – SD0001 (talk) 18:01, 19 May 2025 (UTC)
- I saw this post on my watchlist, so I went ahead and fixed a couple of my user scripts too :) –Novem Linguae (talk) 18:13, 19 May 2025 (UTC)
- Thank you both. – Jonesey95 (talk) 21:50, 20 May 2025 (UTC)
- I saw this post on my watchlist, so I went ahead and fixed a couple of my user scripts too :) –Novem Linguae (talk) 18:13, 19 May 2025 (UTC)