Difference between revisions of "Template:Eval"

From blackwiki
Jump to navigation Jump to search
imported>Zenexer
(Control over evaluation of templates.)
 
imported>Zenexer
m (Zenexer moved page User:Zenexer/Templates/eval to Template:Eval: For metatemplating framework; see Help:Metatemplating (work in progress))
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>Delays evaluation of a template by one include/subst.</noinclude><includeonly>{{#if:{{{6|}}}|{{{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}}}|{{#if:{{{5|}}}|{{{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}}}|{{#if:{{{4|}}}|{{{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}}}|{{#if:{{{3|}}}|{{{{{1}}}|{{{2}}}|{{{3}}}}}|{{#if:{{{2|}}}|{{{{{1}}}|{{{2}}}}}|{{#if:{{{1|}}}|{{{{{1}}}}}|<strong class="error">No template specified.</strong>}}}}}}}}}}}}</includeonly>
+
<noinclude>{{documentation}}<!--
 +
--
 +
-- BEGIN TEMPLATE
 +
--
 +
-- In order to properly display the braces, they need their own includeonly tags.
 +
--
 +
--></noinclude><includeonly>{{</includeonly><includeonly>{{{1}}}{{subst:#if:{{{2|}}}|{{!}}{{{2}}}}}</includeonly><includeonly>}}</includeonly><noinclude><!--
 +
--
 +
-- END TEMPLATE
 +
--
 +
--></noinclude>

Latest revision as of 00:47, 16 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