This page is a translated version of the page Help:Extension:TemplateSandbox and the translation is 46% complete.

これはテンプレート サンドボックスの利用者向け説明文書です。TemplateSandbox 拡張機能の技術的な説明文書もあります。

The Template sandbox extension makes it easier to test changes to templates and Scribunto modules by allowing the changes to be previewed in existing pages without making the changes live for everyone.


When the extension is installed and enabled, a box titled "このテンプレートでページをプレビュー" will appear on the edit form underneath the "ページを保存" and other buttons. If you enter the title of a page in the text field and use the adjacent "プレビューを表示" button, the entered page will be previewed as it would appear if the template being edited were saved.


To test changes to multiple templates, first save sandbox versions as subpages of a page somewhere. For example, to test changes to Template:Example 1 and Template:Example 2, you might save the sandbox versions to User:Example/sandbox/Template:Example 1 and User:Example/sandbox/Template:Example 2.

Next, go to Special:TemplateSandbox. Enter the title of the page to be previewed in the "使用するページ:" field, and the prefix used in the previous step (e.g. "User:Example/sandbox") in the "サンドボックスの接頭辞:" field.

To preview a particular revision of a page, enter the revision number in the "使用する版:" field. To preview arbitrary wikitext, fill in both the "使用するページ:" (for magic words such as {{PAGENAME}}) and "使用するウィキテキスト:" fields.

Note that the canonical name of the page must be used after the sandbox prefix; equivalent titles will not work. For example, User:Example/sandbox/Template:example 1 will not work, despite the fact that Template:example 1 is equivalent to Template:Example 1.