Template:\sandbox/doc

Revision as of 10:39, 7 October 2021 by imported>Andrybak (improve code sample formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Lua error: Internal error: The interpreter exited with status 1. Lua error: Internal error: The interpreter exited with status 1.

Usage

Returns "/sandbox" if the template detects that the page where it is transcluded is a subpage named "sandbox" (i.e. a sandbox page); otherwise it returns nothing.

This can be useful to e.g. switch the version of a template used in its documentation to the version in its sandbox (by replacing Lua error: Internal error: The interpreter exited with status 1. on the /doc page with {{template name{{\sandbox}}}}) when that documentation is transcluded on the template's sandbox page.