Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

MediaWiki Developer's Handbook/Add JavaScript

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Sometimes features are best coded as client-side JavaScript (js) instead of in the software (either as core, or an extension). This chapter is a guide to developing js solutions. Instead of the bottom-up method of instruction used in JavaScript, this text will use top-down methods, beginning with the examination of methods used in several useful scripts, examining the particular techniques used, and then extending them to another set of useful scripts. This chapter will teach you only the basics of scripting in a MediaWiki environment; for generic or complex scripting, or use outside MediaWiki, refer to JavaScript. Subsections Introduction: /Predefined functions/ /Predefined variables/ Case studies: /Adding a purge tab/ /Hiding unwanted information on the deletion form/ /Blocking tools/