Difference between revisions of "Template:Documentation/core2/sandbox"

From blackwiki
Jump to navigation Jump to search
test>Thesevenseas
(Added Code)
m (10 revisions imported)
 
(5 intermediate revisions by 5 users not shown)
Line 25: Line 25:
  
 
| sandbox =  
 
| sandbox =  
   {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{BASEPAGENAME}}}}}/sandbox
+
   {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/sandbox
 
| testcases =  
 
| testcases =  
   {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{ROOTPAGENAME}}}}}/testcases
+
   {{{docspace|{{NAMESPACE}}}}}:{{{template page|{{PAGENAME}}}}}/testcases
  
 
| template page =  
 
| template page =  
Line 33: Line 33:
  
 
}}<noinclude>
 
}}<noinclude>
 
+
<!-- Add categories to the /doc subpage and interwikis to Wikidata, not here! -->
{{template sandbox notice}}
+
</noinclude>
 +
<noinclude>
 +
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 10:23, 7 September 2020

[create] Template documentation


Template documentation[view] [edit] [history] [purge]

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}}.