Wikipedia:User scripts/Guide: Difference between revisions

Content deleted Content added
m Your first script: addPortletLink is described in a section below, so let's link it instead
Line 149:
 
== Built-in scripts ==
All Wikipedia pages include some built-in [[MediaWiki]] JavaScript code, with variables and functions that can be used in user scripts. Some of them we already mentioned (<code>mw.util</code>, <code>mw.hook</code>). This code is generally loaded as [[mw:ResourceLoader/Core modules|ResourceLoader modules]] (some of it preloaded, some loaded on demand) and ends up in properties of these globalglobally available objects:
* <code>mw</code> (<code>mediaWiki</code>) for MediaWiki core,
* <code>OO</code> for [[mw:OOjs|OOjs]],