User talk:Ais523/stubtagtab2.js
Having problems w/ this script?
[edit]I have edited the script and restored functionality. My seemingly funcitonal version resides here. I dont REALLY know what im doing, but i think it works. Seems that the "stubtagmenurender" funciton was looking for an index in the string response text to display th eloading message. I changed this to check the response state. Also, the string it was looking for (and also splitting on) seems to have changed, which was what i think was breaking it. The response text is not in a plain "<text>" node, but rather the text node contains the property 'xml:space="preserve"'. There are likely better solutions that the one i implemented but funcitonality is restored until i or some one smarter can look a tit again. Let me know. ./zro (⠠⠵) 00:54, 15 July 2009 (UTC)
- Thank you!! Mine stopped working awhile ago, and I started to give up on it. Looks like the creator isn't active much anymore :( -- Collectonian (talk · contribs) 22:19, 15 September 2009 (UTC)
Replace with this script
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Currently, ais523's version of the script does not work at all. Please replace it with my version, located at User:MC10/stubtagtab.js. Cheers, —mc10 (t/c) 00:11, 25 November 2011 (UTC)
- Okay, Done — Martin (MSGJ · talk) 21:34, 26 November 2011 (UTC)
- I've just updated my version of the script (User:MC10/stubtagtab.js) by fixing a minor bug. Please update this version as well. Thanks. —mc10 (t/c) 23:03, 21 July 2012 (UTC)
- Done --Redrose64 (talk) 16:18, 22 July 2012 (UTC)
- I've just updated my version of the script (User:MC10/stubtagtab.js) by fixing a minor bug. Please update this version as well. Thanks. —mc10 (t/c) 23:03, 21 July 2012 (UTC)
Architecture etc.
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Looking through stubtag scripts the other day, I noticed that
- A. Architecture: Only User:Darkwind/stubtagtab2.js has the Architecture set of tags included. Could we have it here in User:Ais523/stubtagtab2.js as well?
- B. Bug with {{Stub}}: Meteor sandwich yum made a note on 7 April 2014 saying:
User:Ais523/stubtagtab2.js/User:MC10/stubtagtab.js/User:Wolfgang42/stubtagtab.js. All of them will return an error if the common "stub" tag is used.
I tested them today, and can confirm that instead of {{Stub}}, they will insert the deleted {{Stub-stub}}. This bug is also found in User:Darkwind/stubtagtab2.js. - C. Sync: Last sync was by Redrose64 in 2012, but MC10 made two updates of User:MC10/stubtagtab.js in 2013; they have not been applied here.
- D. Edit summary: When MSGJ copied code on request in 2011, the edit summary made by this script became "
using [[User:MC10/stubtagtab.js|stubtagtab.js]]
". Ais523 brought up the matter in Diff of User talk:MC10 in 2014. Isn't the sweet and easy solution to keep them in sync and have each script link to its own location? — Sam Sailor 11:03, 24 August 2016 (UTC)
- No idea what I'm supposed to be doing here, nor why there is a code blob in a talk page thread. --Redrose64 (talk) 11:46, 24 August 2016 (UTC)
- Blob removed. — Sam Sailor 12:54, 24 August 2016 (UTC)
Not done – use of {{edit protected}} requires a specific change to be requested, and although I agree with the idea behind the request, it's unclear exactly what needs changing and how. Feel free to re-enable the {{edit protected}} template once you have a specific request in mind that I or an administrator can enact without needing further discussion.
It's probably worth explaining some of the history behind the script. My version was the original (and thus many people use it), but I'm not all that accurate nowadays and so people have been making copies of it. If there's more than one copy, and there's not any reason to exclude features from one but not another, it'd make sense to merge all the features together to have one centralised stub tagging script (which would be easier to maintain than a bunch of different ones). Unfortunately, I can't just redirect my script for security reasons (it was established a while back that if you're going to redirect a widely used script, the redirected-to script should be owned by an admin, because otherwise you can potentially allow a non-admin to gain control of admin accounts). I have no objection to someone else's script being copied over mine if it's more featureful and confirmed as non-malicious, though.
I think the best solution is to agree on which script is the best, add all the features we need to it, and then sync it over the other scripts. (I'm not sure what to do about the edit summary; ideally we should be advertising the best-updated version and dissuading people from using the less-updated versions, but ideally we should also be specifying the script that made the edit in order to avoid problems.) --ais523 13:16, 24 August 2016 (UTC)
- @Ais523: Thank you for your reply. I shall try to better explain, what is suggested.
- A. Script lacks the Architecture stub types that were added to WP:WSS/ST in 2009. Could we have them added?
- Code now:
a = ['General', 'Commerce', 'Culture', 'Education', 'Geography', 'Government, law, and politics', 'History', 'Leisure', 'Military and weaponry', 'Organizations', 'People', 'Religion, mythology, faiths, and beliefs', 'Science', 'Sports', 'Technology', 'Transport', 'Miscellaneous'];
- Code suggested:
a = ['General', 'Architecture', 'Commerce', 'Culture', 'Education', 'Geography', 'Government, law, and politics', 'History', 'Leisure', 'Military and weaponry', 'Organizations', 'People', 'Religion, mythology, faiths, and beliefs', 'Science', 'Sports', 'Technology', 'Transport', 'Miscellaneous'];
- B. When General is selected and {{Stub}} is clicked on, the template {{Stub-stub}} will be inserted. I would not know what to do about it.
- C. and D. That's all up to you, and MC10 I suppose, to decide what to to do. — Sam Sailor 14:36, 24 August 2016 (UTC)
Done A, B, and D. C needs a bit more thought. Remember to bypass your cache to see the changes. --ais523 17:30, 24 August 2016 (UTC)
- I've marked the edit request template as answered. Please reactivate it if/when there is a consensus to implement point C. — Mr. Stradivarius ♪ talk ♪ 00:37, 25 August 2016 (UTC)
Spacing
[edit]WP:STUBSPACING asks for two blank lines between the first stub template and whatever precedes it. Script only leaves one blank line. Thanks again, Sam Sailor 20:48, 1 March 2018 (UTC)
Follow up: and if one stub tag is already present, the script will add a blank line before the next tag, Special:Diff/841842289/841842414. Sam Sailor 12:37, 18 May 2018 (UTC)
StubSorter
[edit]There exists a modern stub tagging script - see User:SD0001/StubSorter. The main improvement over this one and similar variants is the ability to search for a stub template rather than having to hunt for it in a massive list, which itself takes quite a while to load. SD0001 (talk) 18:48, 12 October 2019 (UTC)