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 ): ((%#sscript| gmodule | title=Mareas+en+Bilbao&amp;border=http%3A%2F%2Fgmodules.com%2Fig%2Fimages%2F&amp;synd=open&amp;up_Port=401&amp;up_UTC=0&amp;type=googlegadget&amp;url=http%3A%2F%2Fhorloge.maree.frbateaux.net%2Fgh.xml&amp;output=js&amp;w=320&amp;h=222| wrong interwiki prefix! %))

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