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

From blackwiki
Jump to navigation Jump to search
imported>JJMC89
(resync)
imported>MSGJ
Line 1: Line 1:
 
{{ombox
 
{{ombox
| type = style
+
| type = style
 
| image = [[Image:Ambox warning yellow.svg|40x40px|alt=|link=]]
 
| image = [[Image:Ambox warning yellow.svg|40x40px|alt=|link=]]
| text =
+
| text = {{Intricate template/text}}
'''This {{{namespace|template}}} employs intricate features of template syntax.'''
 
<div style="padding-bottom:2px;">You are encouraged to familiarise yourself with its setup and [[m:Help:Parser function|parser functions]] before editing the template. If your edit causes unexpected problems, please [[Help:Reverting#Undo|undo]] it quickly, as this template may appear on a large number of pages.<br/>
 
You can conduct experiments, and should test all major changes, in either <span class="nowraplinks">[[{{#ifexist:{{FULLPAGENAME}}/Sandbox|/Sandbox|{{#ifexist:{{FULLPAGENAME}}/test sandbox|/test sandbox|{{#ifexist:{{FULLPAGENAME}}/Test sandbox|/Test sandbox|{{#ifexist:{{FULLPAGENAME}}/test|/test|{{#ifexist:{{FULLPAGENAME}}/Test|/Test|/sandbox}}}}}}}}}}|this template's sandbox]]</span>, the [[Template:Template sandbox|general template sandbox]], or your user space before changing anything here.</div>
 
 
}}<includeonly>{{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} | [[Category:Intricate templates]] }}</includeonly><noinclude>
 
}}<includeonly>{{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} | [[Category:Intricate templates]] }}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 07:16, 9 May 2019

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.