Help:JavaScript

From Merrily We Roll Along wiki
Jump to navigation Jump to search

This is a ShoutWiki help page, hosted at ShoutWiki Hub. If you want to suggest changes, leave a message on its talk page. If you want to replace this page with a custom help page for your wiki, click the create button above.

JavaScript allows site administrators to customize a wiki, or other website, in many ways. JavaScript code cannot be directly embedded into a page (<script type="text/javascript"><!-- ... --></script>), but instead an admin must define per-page specific JS at either on MediaWiki:Common.js or on MediaWiki:Skinname.js (replacing skinname with the current skin's name, e.g Monobook is MediaWiki:Monobook.css). It is usually best to use Common.js, as any JavaScript in that page will be applied no matter what skin a person is using.

Many default features are JavaScript based, such as the pop-up login window, dismiss button on site-wide notice, search suggestions, edit toolbar on edit view and so on.

The JavaScript in MediaWiki:Global.js is the global JavaScript for all ShoutWiki sites on every page load, no matter what skin is used. MediaWiki:Global.js can only be edited by ShoutWiki Staff.

If you need help in using JavaScript with your wiki site, please contact ShoutWiki's Customer Support Team.

See also