Extension:SimpleScript

(($parserphase2off$))((%parserphase2off%))

Purpose
Provides a simple and controlled way of including javascript  tags on a wiki page using sysop defined interwiki links. This capability allows, for example, the inclusion of  e.g. Google Gadgets.

Usage
For proper operation, this extension requires Extension:ParserPhase2 since the generated HTML markup is usually 'sanitized' by MediaWiki. In order to get around this limitation, ParserPhase2 can be used to invoke the parser function *after* the sanitization process (i.e. tidy) is executed on the wiki page. ((%#sscript| interwiki link | desired uri | [error message to show upon bad interwiki prefix] %))

Setting InterWiki Links
See InterWikiLinkManager extension for more details.

Example
Assuming the interwiki link 'gmodule' points to Google Gadget Modules (i.e. the interwiki link prefix would look like ):

Security Note
and consequently only the last contributor's right acts as protection measure, it is advised to use considerable care when using templates on the same page.
 * It is advisable to use 'cascading protection'
 * When page protection is not relied on to provide protection

Google Gadgets
For a list of Google Gadgets and the instructions for embedding those, please see GoogleGadgets.

Dependencies

 * StubManager extension
 * ParserPhase2 extension
 * Automatically resolved if using PEAR