Difference between revisions of "Template:Eval/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(→‎See also: sandbox non-categorisation)
imported>Andrybak
(→‎Usage: clarify code example)
Line 8: Line 8:
 
== 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}}.

Revision as of 02:06, 29 July 2019

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