Difference between revisions of "Template:Eval"

From blackwiki
Jump to navigation Jump to search
imported>Zenexer
(Properly delay evaluation. Might need to edit so as to remove nowiki tags.)
imported>Zenexer
(Proper documentation.)
Line 1: Line 1:
<noinclude>Delays evaluation of a template by one include/subst.  Use <code><nowiki>{{!}}</nowiki></code> to separate arguments.</noinclude><includeonly>{{#if:{{{1|}}}|<nowiki>{{</nowiki>{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}<nowiki>}}</nowiki>}}</includeonly>
+
<noinclude>{{documentation}}<!--
 +
--
 +
-- BEGIN TEMPLATE
 +
--
 +
--></noinclude><includeonly>{{#if:{{{1|}}}|<nowiki>{{</nowiki>{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}<nowiki>}}</nowiki>}}</includeonly><noinclude><!--
 +
--
 +
-- END TEMPLATE
 +
--
 +
--></noinclude>

Revision as of 22:01, 9 November 2012

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

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

Template:Metatemplate doc