@Furicorn: Fixed, I copied the get wikitext syntax from the user script guide, but forgot to change the title from Wikipedia:Sandbox to the current page name. Self-trout --Danski454 (talk) 10:47, 28 October 2018 (UTC)[reply]
@Danski454: Thanks, that worked. 2 more (hopefully) small things I noticed:
When the script is replacing a stub template, can it also add 2 line breaks between the first stub templates and whatever is above them? That will help ensure that it follows WP:STUBSPACING, which is that stub templates should always be at the bottom and be spaced 2 line breaks below whatever is above them.
It would also be helpful if, when adding a stub template (as opposed to replacing), either to a page without a template or to a page with an existing template, the script can check to make sure there are two line breaks before the first stub template, and add line breaks if needed.
At about Line 285, there's an extra "m" --> "Replace old stub temmplates with"
Sometimes when processing a page that was tagged with {{stub}} to put on more specific stubs, I'll want to add multiple more specific templates. For example, with a Chinese government sponsored think tank, I might want to add both {{China-org-stub}} and {{PRChina-gov-stub}}.
When I'm searching for the correct stub category and my first search is wrong or doesn't match, I'll need to search again. If I've already hit the search button, I can't figure out any way to search again without refreshing the page.
@Furicorn: I've added a checkbox to the add template interface that allows you to choose not to load the diff. It defaults to loading the diff. There is also a button to load the diff at any time if you have made an edit. Danski454 (talk) 12:39, 3 November 2018 (UTC)[reply]
@Insertcleverphrasehere: It's a little hard to tell because there's so many results, but if you type out "United Arab Emirates", the category shows up at the bottom. It's more obvious if you search "United Arab Emirates stub" -Furicorn (talk) 10:53, 29 October 2018 (UTC)[reply]
Hello, this is a pretty interesting script. Some feedback:
There's a bit of a wait while the script loads. The script should use caching.
Hitting "enter" doesn't run a search. Instead, you have to click the button.
The "Go up to" list only includes the last parent. It would be better to have the whole hierarchy there.
The separator between items seems to be a bullet point. Consider making it an interpunct instead.
Maybe the design could be improved to better differentiate between stub categories and the stub templates. You already have brackets around the latter, but maybe there are other things that can be done.
Hi, I'm trying to use your script but it appears that no "stub search" button appears for me. I'm on Vector. I do have a few other scripts in my file and I'm wondering if there's a conflict maybe. User:Paradoxsociety/common.js is my file. Any advice would be greatly appreciated! Paradoxsociety06:15, 10 May 2020 (UTC)[reply]