(Created page with " <nowiki>{{#invoke:Math templates|subst|</nowiki>''math''|''arg1''|''arg2''|...}} Prints ''<tt>math</tt>'' inside math tags, with the arguments substituted in. Use <tt>${n}</...") |
DSquirrelGM (talk | contribs) (→top: replaced: tt> → code> (10)) |
||
Line 1: | Line 1: | ||
<nowiki>{{#invoke:Math templates|subst|</nowiki>''math''|''arg1''|''arg2''|...}} |
<nowiki>{{#invoke:Math templates|subst|</nowiki>''math''|''arg1''|''arg2''|...}} |
||
− | Prints ''< |
+ | Prints ''<code>math</code>'' inside math tags, with the arguments substituted in. Use <code>${n}</code> to invoke substitution of parameter <code>n</code>, drawn from the arguments to <code>#invoke</code>. |
For instance, |
For instance, |
||
Line 8: | Line 8: | ||
<nowiki><math>a + b = c</math></nowiki> |
<nowiki><math>a + b = c</math></nowiki> |
||
− | < |
+ | <code>display</code> is special: it becomes the same-named attribute of the math tags. |
Latest revision as of 13:21, 25 November 2018
{{#invoke:Math templates|subst|math|arg1|arg2|...}}
Prints math
inside math tags, with the arguments substituted in. Use ${n}
to invoke substitution of parameter n
, drawn from the arguments to #invoke
.
For instance,
{{#invoke:Math templates|subst|${2} + ${3} = ${4}|a|b|c}}
expands to
<math>a + b = c</math>
display
is special: it becomes the same-named attribute of the math tags.