user talk:Exhelah

From Minecraft Wiki
Jump to: navigation, search

Contents


Scripting[edit]

I noticed you've made .js pages (templates in JavaScript?) and I'd like to learn the API for that. (Don't worry, I already know the syntax of JavaScript and how it works with ordinary HTML and CSS.) Have a reference for me or want to make one? Thank you. AwesomeMan31415926 (profile|contribs) 00:32, 3 June 2015 (UTC)

There is no API. Literally all you do is create a page called "common.js" in your userspace and put javascript stuff in it. Then after saving it takes affect when you're logged in. Does that answer your question? - Iamanai t - c 03:09, 3 June 2015 (UTC)
If you want a list of available modules, you should read mw:ResourceLoader and mw:ResourceLoader/Modules KnightMiner t/c 03:53, 3 June 2015 (UTC)
Oh, so THAT'S what he meant. I literally just copied some stuff from someone else's .js file, so I don't know much about it. I do program though, just not in this language. - Iamanai t - c 03:55, 3 June 2015 (UTC)
Thanks KnightMiner. AwesomeMan31415926 (profile|contribs) 10:25, 3 June 2015 (UTC)
I feel like such a noob now. :( - Iamanai t - c 16:40, 3 June 2015 (UTC)