User talk:Mathmagician/railgun.js

Just out of curiosity: What does this Railgun code do? -- peco e s 21:13, April 27, 2012 (UTC)


 * What it's supposed to do is create a new module on the Wikia Rail (Oasis skin only) -- an editor toolbox + navigational device. Basically, the idea is that I want all of my tools in one centralized location. I don't want to have to go to the bottom of the screen for my toolbox, or to the top of the screen for the search bar. I want links, lots of them, and all in one place -- and I want them to be available across all of Wikia on every page that has the rail (will put the code in my global.js when completed).


 * Additionally, it will have a custom search bar for quickly searching Wikipedia, Wikia, Bing, Google and various other sites. Also, it will have some method of looking up a username. The current implementation (likely to change) allows you to type in a username into the field and press the "Stalk" button -- giving you instant links to their profile, talk page, contribs, logs, etc.


 * Also, provides a button for collapsing the Wikia Rail (code originally by Monchoman) for easier reading.


 * I'm not sure how functional the code is in other browsers besides Chrome -- and it's certainly not complete yet. Work in progress heh. — Mathmagician 20:06, April 29, 2012 (UTC)

Here's a sample pic of what it currently looks like for me (see rail on the right side of the screen). The little extra blue-ish colored button in the toolbar (definitely needs restyling / should be a link instead of a button is what collapses the Wikia Rail). — Mathmagician 20:14, April 29, 2012 (UTC)




 * That's basically a link collection, isn't it? In case you want to move a little beyond that, you should take a look at the API You could e.g. protect or unprotect a page without leaving it. Just saying... :) -- peco e s 20:27, April 29, 2012 (UTC)


 * Oh, er, and that looks very nice btw :) You've clearly put some thought into this! -- peco e s 20:28, April 29, 2012 (UTC)


 * Thanks! I'll definitely take a look at the API. I think I may wish to just stick with the list of links for now. But then, maybe once I feel like I've learned more about JavaScript maybe I'll try something fancy like protecting the page without leaving it. Like maybe clicking "Protect" would create a small pop-up window where you can type in the reason and set the duration -- and then press OK to proceed. That's way beyond my current level of knowledge though.


 * As it is, I'm going to have a hard enough time trying to figure out how to write a cookie so I can store variables from pageload to pageload :( — Mathmagician 21:01, April 29, 2012 (UTC)


 * Wikia uses this library for cookies. -- peco e s 21:17, April 29, 2012 (UTC)