Jump to content

Template:\sandbox/doc: Difference between revisions

no edit summary
(Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata --> == Usage == Returns "/sanbox" 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 /doc[umentation] to the version in its sandbox (by replacing <code>{{((}}''template_name''</code>&n...")
 
No edit summary
 
Line 2: Line 2:
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata -->
== Usage ==
== Usage ==
Returns "/sanbox" 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.
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 /doc[umentation] to the version in its sandbox (by replacing <code>{{((}}''template_name''</code>&nbsp;... on the /doc page with <code>{{((}}''template_name''{{tlf|{{ROOTPAGENAME}}}}</code>&nbsp;...) when that documentation is transcluded on the template's sandbox page.
This can be useful to e.g. switch the version of a template used in its /doc[umentation] to the version in its sandbox (by replacing <code>{{((}}''template_name''</code>&nbsp;... on the /doc page with <code>{{((}}''template_name''{{tlf|{{ROOTPAGENAME}}}}</code>&nbsp;...) when that documentation is transcluded on the template's sandbox page.