Hi, welcome to Wikia Developers Wiki! Thanks for your edit to the CustomToolbarLinks page. If you need help, read through our help pages or contact a local admin. If there are no active admins here, stop by Community Central and check out our forums.
Looking for live help? Then join us for an upcoming webinar to chat with staff and other Wikia editors. You can also check our Staff blog to keep up-to-date with the latest news and events around Wikia. Lastly, check out the Wikia Video Library, where you can find premium licensed videos to add to the wiki.
All of these links are a great way to start exploring Wikia.
- Thanks for the information, I think I've addressed most of it. ~Bobogoobo (talk) 22:53, April 30, 2013 (UTC)
Semi-colon and closure
The semi colon is there to as a failsafe, in case someone forgot to add one at the end of of a script that is being imported before yours. There's more informaton on it here. It looks a little odd, but when you don't know what other scripts are being imported you can never be too safe. I actually had it happen to me last week with the importArticles() statement on RuneScape Wiki and it broke the ~10 scripts after the script with the error.
- I believe Pecoes uses semi-colons at the start of his scripts, if you want more examples of it (one is SexyUserPage/code.js). It's not in the coding conventions because scripts should never need to fix other scripts failures, but as most of the script here are designed to be imported it's not hard to imagine there might be other scripts also being imported.
- The other libraries may not be included by standard (jQuery is ported with MediaWiki since 1.16 or something), but you can just import them if you find a need for them. For instance at RuneScape Wiki we import tundra. In this case there's no confusion, but it shows how other libraries can be imported if you find a need for them. cqm 08:35, 22 Jun 2013 (UTC)
Hellow Bobo! I wanted to tell you about your script created, I talking about of "HighlightUsers". Works great, of course. The problem is that the script is not right when you want to highlight links users to have the AjaxRC enabled. When the RC is not auto-reload, the script works fine, but when used AjaxRC, colors are normal links to wiki's default color. Is there any solution for this? Thank you! ɥsɐD ʎʇooɔS 23:30, November 22, 2013 (UTC)
- Add the following code above the importation of AjaxRC:
window.ajaxCallAgain = window.ajaxCallAgain || ; window.ajaxCallAgain.push(highlightUsers);
- ~Bobogoobo (talk) 05:38, November 23, 2013 (UTC)
- Bobogoobo wrote:
apparently I was asked about this before, might as well add this here since I guess people don't check the AjaxRC documentation or know what to do
- Bobogoobo, U see, what happens is that the code you showed me in the top ONLY works only with wikis in English, because I inserted my global.js correctly, but when inserting the AjaxRC longer work for me, so I guess the problem is that I use different wikis into English. That's what I believe, and if I'm wrong, you can correct me. — Scooty Dash (talk) 16:57, December 4, 2013 (UTC)
- That was a bug that I had meant to fix. It should be working now, thanks for reminding me. ~Bobogoobo (talk) 02:04, December 5, 2013 (UTC)