Difference between revisions of "Template:Documentation/core2/sandbox"
Jump to navigation
Jump to search
test>Dinoguy1000 (←Redirected page to Template:Documentation/sandbox) |
test>Redrose64 (Undid revision 845801419 by Dinoguy1000 (talk) absolutely no reason for this undiscussed change) |
||
Line 1: | Line 1: | ||
− | # | + | {{documentation/core/sandbox |
+ | | preload = {{{preload|}}} <!--Allow custom preloads--> | ||
+ | | heading = {{{heading|¬}}} <!--Empty but defined means no header--> | ||
+ | | heading-style = {{{heading-style|}}} | ||
+ | | content = {{{content|}}} | ||
+ | | link box = {{{link box|}}} <!--So "link box=off" works--> | ||
+ | |||
+ | | docpage = | ||
+ | {{#if: {{{1|}}} | ||
+ | | {{{1|}}} | ||
+ | | {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/doc | ||
+ | }} | ||
+ | | doc exist = | ||
+ | {{#ifexist: | ||
+ | {{#if: {{{1|}}} | ||
+ | | {{{1|}}} <!--Other docname fed--> | ||
+ | | {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/doc | ||
+ | }} | ||
+ | | yes | ||
+ | }} | ||
+ | | docname fed = | ||
+ | {{#if: {{{1|}}} | ||
+ | | yes | ||
+ | }} | ||
+ | |||
+ | | sandbox = | ||
+ | {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/sandbox | ||
+ | | testcases = | ||
+ | {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/testcases | ||
+ | |||
+ | | template page = | ||
+ | {{NAMESPACE}}:{{{template page|{{PAGENAME}}}}} | ||
+ | |||
+ | }}<noinclude> | ||
+ | <!-- Add categories to the /doc subpage and interwikis to Wikidata, not here! --> | ||
+ | </noinclude> | ||
+ | <noinclude> | ||
+ | {{Documentation}} | ||
+ | </noinclude> |
Revision as of 19:43, 14 June 2018
[create]
Template documentation

Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |
![]() | This is the template sandbox page for Template:Documentation/core2 (diff). See also the companion subpage for test cases. |
This is the {{documentation/core2}} sub-template.
Do not use this template directly, use {{documentation}} instead.
{{documentation}} calls this template, which in turn calls {{documentation/core}}. {{documentation/core}} holds most of the code for {{documentation}}, while {{documentation}} and this template do parameter preprocessing. Thus simplifying the code.
Technical details
This sub-template currently expects these parameters:
{{documentation/core | heading = {{{heading|¬}}} <!--Note that the "¬" is necessary so we can detect the difference between empty and undefined--> | heading-style = {{{heading-style|}}} | content = {{{content|}}} <!--Text instead of a /doc page--> | link box = {{{link box|}}} <!--So "link box=off" works--> | docspace = <!--The namespace for the /doc, /sandbox and /testcases. Some namespaces must store them in talk space.--> | 1 = {{{1|}}} <!--Other docname, if fed--> | template page = <!--Pagename where the {{documentation}} template is placed, but without ending /sandbox or /testcases, and without namespace.--> }}
For more documentation see {{documentation}}.
The above documentation is transcluded from Template:Documentation/core2/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |