Release status: stable | |
|---|---|
| Implementation | Special page,Page action |
| Description | Preview pages using sandboxed templates |
| Author(s) | Brad Jorsch (Anomietalk) |
| Latest version | 1.1.0 (continuous updates) |
| Compatibility policy | Snapshots releases along with MediaWiki. Master is not backward compatible. |
| License | GNU General Public License 2.0 or later |
| Download | |
| Help | Help:Extension:TemplateSandbox |
| |
| Translate the TemplateSandbox extension if it is available at translatewiki.net | |
| Issues | Open tasks ·Report a bug |
TheTemplateSandbox 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 withScribunto modules.
TemplateSandbox folder to yourextensions/ directory.cdextensions/gitclonehttps://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateSandboxwfLoadExtension('TemplateSandbox');
$wgTemplateSandboxEditNamespaces – Namespaces in which to show the "Preview page with this template" box below the edit form.NS_TEMPLATE by default. Can be expanded to all namespaces by individual users usingadvancedtemplatesandbox.js.The extension adds a new special page,Special:TemplateSandbox.To preview a page using sandboxed templates, do the following:
Template:Foo toUser:Example/sandbox/Template:Foo. Alternatively, you might createUser:Example/sandbox/Template:Foo as a redirect toTemplate:Foo/sandbox.User:Example/sandbox1|User:Example/sandbox2.The extension also adds a box at the bottom of the edit form for pages in the namespaces configured in$wgTemplateSandboxEditNamespaces.This allows for previewing some other page as it would appear were the template being edited saved with the current contents of the edit form.The box can be forced to appear in the edit form for any page by adding the query parameterwpTemplateSandboxShow to the URL.
| This extension is being used on one or moreWikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia'sCommonSettings.php andInitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki'sSpecial:Version page. |
| This extension is included in the following wiki farms/hosts and/or packages:This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |