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

From blackwiki
Jump to navigation Jump to search
imported>Rich Farmbrough
m (Add code for incorrectly substed templates, or minor tidy up using AWB)
imported>JsfasdF252
m
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<!--{{Intricate template}} begin-->{{#ifeq:{{NAMESPACE}}|{{<includeonly>subst:</includeonly>NAMESPACE}}|<includeonly>[[Category:Pages with incorrectly substituted templates|{{PAGENAME}}]]</includeonly>|}}{{Ambox
+
{{#switch:{{{form|}}}
<!-- do nothing on this line -->
+
|editnotice = {{editnotice
|text='''This template employs [[wikt:intricate|intricate]] features of template syntax.''' {{nowrap|{{{1|}}}}}<div style="font-size:95%; padding-bottom:2px;">You are encouraged to familiarise yourself with its setup and [[M:Parser functions|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.</div>'''Remember that you can conduct experiments, and should test all improvements, in either the {{nowrap|{{#switch:
+
  |id    = {{{id|}}}
{{#ifexist:{{FULLPAGENAME}}/sandbox    |sandbox    |
+
  |image = [[Image:Ambox warning yellow.svg|40x40px|alt=|link=]]
{{#ifexist:{{FULLPAGENAME}}/Sandbox    |Sandbox    |
+
  |text  = {{Intricate template/text}}
{{#ifexist:{{FULLPAGENAME}}/test sandbox|test sandbox|
+
  |expiry= {{{expiry|}}}
{{#ifexist:{{FULLPAGENAME}}/Test sandbox|Test sandbox|
+
  }}
{{#ifexist:{{FULLPAGENAME}}/test        |test        |
+
  |#default = {{ombox
{{#ifexist:{{FULLPAGENAME}}/Test        |Test        |
+
  |type = style
}} }} }} }} }} }}
+
  |image = [[Image:Ambox warning yellow.svg|40x40px|alt=|link=]]
  | sandbox      = [[Template:{{PAGENAME}}/sandbox    |local /sandbox          ]]
+
  |text = {{Intricate template/text}}
  | Sandbox      = [[Template:{{PAGENAME}}/Sandbox    |local /Sandbox          ]]
+
  }}
  | test sandbox = [[Template:{{PAGENAME}}/test sandbox|local /test sandbox    ]]
+
}}<includeonly>{{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} | [[Category:Intricate templates]] }}</includeonly><noinclude>
| Test sandbox = [[Template:{{PAGENAME}}/Test sandbox|local /Test sandbox    ]]
+
{{documentation}}
| test        = [[Template:{{PAGENAME}}/test        |local /test            ]]
+
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
  | Test        = [[Template:{{PAGENAME}}/Test        |local /Test            ]]
 
  | #default    = [[Template:Template sandbox        |general Template sandbox]]
 
<!--ENDswitch-->}}<!--ENDnowrap-->}} or in [[Special:Mypage/sandbox|your user space]] before changing anything here.'''}}<includeonly>
 
{{#switch:{{SUBPAGENAME}}
 
| sandbox|testcases = <!--NO CATEGORIZATION OF WORK COPIES-->
 
| #default          = [[Category:Intricate templates|{{PAGENAME}}]]
 
}}</includeonly><!--{{Intricate template}} end--><noinclude>
 
<!--
 
    PLEASE DO NOT ADD DOCUMENTATION/CATEGORIES/INTERWIKIS HERE
 
-->
 
 
 
{{#ifeq:{{SUBPAGENAME}}|sandbox
 
| {{Template sandbox notice}}
 
| {{Documentation}}
 
}}
 
<!--
 
    MAKE ADDITIONS TO THE /doc SUBPAGE INSTEAD, THANKS
 
-->
 
 
</noinclude>
 
</noinclude>

Latest revision as of 15:15, 16 November 2020

50px 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.