Extension:TemplateSandbox

The TemplateSandbox extension adds the ability to preview a page using sandboxed versions of templates, allowing for easy testing before making the sandbox code live. It also works with Scribunto modules.

Usage
The extension adds a new special page, Special:TemplateSandbox. To preview a page using sandboxed templates, do the following:
 * 1) Copy the templates to be tested under a common prefix. For example, you might copy   to  . Alternatively, you might create   as a redirect to.
 * 2) Go to Special:TemplateSandbox. Fill in the page or revision to be rendered, and the prefix you chose in step 1. It is possible to specify multiple prefixes (a prefix search path) by separating them using vertical bars, e.g..
 * 3) Click View.

TODO
Planned future features:
 * Add the ability to paste in arbitrary wikitext on Special:TemplateSandbox.
 * Hook into the edit form to add a "Preview in page" section, which allows entering a page title and then previews that page using the contents of the edit field in place of the current version of the template being edited.