Difference between revisions of "Template:Eval/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zenexer
m (→‎Usage: Use {{TEMPLATENAME}}.)
imported>Andrybak
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{confused|Template:Expand wikitext}}
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
{{intricate template}}
 +
{{subst only}}
 
<!-- Categories and interwikis go at the bottom of this page. -->
 
<!-- Categories and interwikis go at the bottom of this page. -->
  
Line 6: Line 9:
 
== Usage ==
 
== Usage ==
  
  <nowiki>{{</nowiki>{{TEMPLATENAME}}<nowiki>|arg1{{!}}arg2{{!}}param{{=}}paramArg}}</nowiki>
+
  <nowiki>{{</nowiki>{{TEMPLATENAME}}<nowiki>|templateName|arg1{{!}}arg2{{!}}param{{=}}paramArg}}</nowiki>
  
Arguments must be separated by {{braces|!|tt=y}}.  Parameter names and their arguments must be separated by {{braces|=|tt=y}}.
+
Arguments must be separated by {{braces|!|tt=y}}.  Parameter names and their arguments must be separated by {{braces|{{=}}|tt=y}}.
  
 
== See also ==
 
== See also ==
 +
{{Metatemplate doc|links}}
  
{{User:Zenexer/Templates/Metatemplate doc|links}}
+
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
 
+
| <!-- Categories below this line, please: -->
<includeonly>
+
{{Metatemplate doc|categories}}
<!-- Categories and interwikis go here: -->
+
}}</includeonly>
{{User:Zenexer/Templates/Metatemplate doc|categories}}
 
</includeonly>
 

Latest revision as of 18:31, 27 May 2020

Evaluates a template after substitution via metatemplating. Functionally, this template generates {{template}}-style text during substitution, which then gets evaluated when the resulting code is substituted or transcluded.

Usage

{{Eval|templateName|arg1{{!}}arg2{{!}}param{{=}}paramArg}}

Arguments must be separated by {{!}}. Parameter names and their arguments must be separated by {{=}}.

See also

Template:Metatemplate doc