Terraria Wiki:JavaScript

From Terraria Wiki
Jump to navigation Jump to search

JavaScript is used on the Terraria Wiki for various custom functionalities. The main JavaScript code that is loaded on every page and for every reader can be found on the page MediaWiki:Common.js. Numerous additional JavaScript code snippets are available as gadgets, e.g. MediaWiki:Gadget-sidebarTranslate.js.

If you want to use custom JavaScript code that is only loaded for yourself, log in, create the page Special:MyPage/common.js, and add your code there.

Keep in mind that JavaScript must never be required to access the wiki’s content. All content must remain available to users who cannot or choose not to enable JavaScript. That said, it may be used freely to enhance functionality in line with the principles of progressive enhancement.