Difference between revisions of "Template:Intricate template/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Komusou
(updated the noinclude section with #ifeq {{Template sandbox notice}} / {{Template doc}}, plus HTML comments about the /doc for interwikis)
imported>JsfasdF252
m
 
(19 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{| class="messagebox" style="clear:both; border:1px solid #a00; font-size:95%;"
+
{{#switch:{{{form|}}}
| style="text-align:center; width:60px;" | [[Image:Information_icon.svg|40px]]
+
|editnotice = {{editnotice
| '''This template employs [[wikt:intricate|intricate]] features of template syntax.''' {{nowrap|{{{1|}}}}}
+
  |id    = {{{id|}}}
 
+
  |image = [[Image:Ambox warning yellow.svg|40x40px|alt=|link=]]
<div style="font-size:95%; padding-bottom:2px;">Please do not alter it unless you understand its setup and [[M:Parser functions|parser functions]] '''and''' are ready to repair or revert all collateral damage if results are unexpected.</div>
+
  |text  = {{Intricate template/text}}
 
+
  |expiry= {{{expiry|}}}
'''Any experiments should be conducted and all improvements tested in either the {{nowrap|[[Template:{{#ifexist:{{FULLPAGENAME}}/Test sandbox|{{PAGENAME}}/Test|Template}} sandbox|{{#ifexist:{{FULLPAGENAME}}/Test sandbox|Template:{{PAGENAME}}/Test|template}} sandbox]]}} or your user space before changing anything here.
+
}}
 
+
|#default = {{ombox
|}<includeonly>[[Category:Intricate templates|{{PAGENAME}}]]</includeonly><noinclude>
+
  |type  = style
<!--
+
  |image = [[Image:Ambox warning yellow.svg|40x40px|alt=|link=]]
    PLEASE DO NOT ADD DOCUMENTATION/CATEGORIES/INTERWIKIS HERE
+
  |text  = {{Intricate template/text}}
-->
+
}}
{{pp-template|small=yes}}
+
}}<includeonly>{{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} | [[Category:Intricate templates]] }}</includeonly><noinclude>
{{#ifeq:{{SUBPAGENAME}} | sandbox
+
{{documentation}}
| {{Template sandbox notice}}
+
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
| {{Template doc}}
 
}}
 
<!--
 
    MAKE ADDITIONS TO THE /doc SUBPAGE INSTEAD, THANKS
 
-->
 
 
</noinclude>
 
</noinclude>

Latest revision as of 15:15, 16 November 2020

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

This is the {{intricate template}} message box. {{intricate}} redirects here and can be used as alternative name for this template.

This template can be put at the top of the documentation for any templates that are intricate, i.e., complex, using less obvious techniques, esoteric syntax, combining different techniques, used as parameter for other templates, built to function for a variety of calling instances, etc.

This template's syntax is actually relatively simple.

This template adds templates to Category:Intricate templates.

Usage

When this template is placed on a template's /doc page it can be nice to put it within <includeonly> tags so it only gets visible on the template page. The full code for a /doc page top then can look like this:

{{documentation subpage}}
<includeonly>{{intricate}}</includeonly>

See also

  • {{high-use}} – For high-use templates.