OK, downloads of the update are running so I have some time ><
The problem, so far, is that Wikia want us to use the Jquery library instead of the custom built library for the tooltips.
The time frame for doing this is "1-2 weeks to show progress".
The size of the problem is changes in over 450 pages just for tooltips alone, without even looking at the map templates.
I've been at work for the past few hours and been googling like crazy in my free time to see what the options are, and have come up with the following:
The existing custom script queries the wiki API (Applications Programming Interface) directly in order to draw down the information needed for the tooltips etc. This is done using Ajax, and is therefore concurrent with the page load or "snippets on demand" once the load is complete. Due to the way our pages are designed, these calls can request a specific part of a page by name without having to pull the entire page. The API is designed and implemented in Wiki for exactly this purpose, and is used by a number of bots for automated bulk page editing, although I hasten to add that the custom interface is designed for read-only access.
Having looked at the current implementation of Jquery, jQuery JavaScript Library v1.3.2 downloaded from googleapis, it is intended for "normal" websites and uses a page call for each query which it then parses for the required information. Jquery has no concept of an API interface in a wiki and would require a fairly large rewrite in order to be usable for this purpose. Without the API it has the potential to increase the number of page hits substantially, and as a consequence, the traffic load on the site. Simply put, a wiki page listing 11 NPCs, and using the custom script, would result in 1 page hit and 11 API queries (each of which pulls ONLY the information needed for the tooltip). The same page, using Jquery, would cause 12 page hits on the site, and each page hit would cause resending the header, menus, all page content, page footer, adverts, etc. for every page, all of which has to then be parsed client side to produce the same result!
Rewriting the custom script as a handler so it passes the query to jquery for execution and then interprets the results is a possibility, but would require some extensive recoding of a system that was written specifically for this purpose. This is certainly not a feasible proposition in a 1-2 week timeframe unless dedicated coders were found with nothing else to do with their time (ie: no full time job, no real life and FFXI is right out of the window!) As Gahoo will know, the time frame from then original idea behind this to having it working properly was a period of several months!
Again, I would ask, please tell us EXACTLY what problems are being seen with the javascript - it may be far quicker and easier to fix the problems than to recreate the existing functionality on a new platform. Also, with the exception of wowwiki, none of the major sites on Wikia are using this type of functionality, so there are no guarantees that the effort to change to Jquery would resolve any of these problems or even worse, create more problems that haven't even surfaced as yet.
"Conflicts and errors with the existing js library" isn't really helpful - conflicts with what, and from where? What kind of errors? Are they re-creatable? This whole thing may come down to one or two minor changes in the code but hey, we're open to working towards fixing it. Jquery? Not sure who came up with that one, but it doesn't solve the problem for Wikia - no more than rewriting the entire wiki interface in ASP would help. Sorry, I digress!!!
We need the exact problems that they are seeing, and if possible a way to recreate them and observe them so we can figure out the cause, and therefore resolve the issues. Jumping to an untried, untested programming base that isn't even compatible with existing wiki features is nonsensical to the point of hilarity .... insert image of a Lamborghini being pulled by a carthorse!
