Template talk:Demo of attempt to use parameters within TeX

From Meta, a Wikimedia project coordination wiki
Jump to: navigation, search

{{Demo of attempt to use parameters within TeX|4||abc=def}} and {{Demo of attempt to use parameters within TeX|6||abc=def}}

give

\\ \\

Failed to parse (syntax error): {\displaystyle {{#expr:2+3}}}


Compare using "#tag:math":


For a=4,

4



\\ \\

Failed to parse (syntax error): {\displaystyle {{#expr:2+3}}}


Compare using "#tag:math":


For a=6,

6



Conclusion: parameters are not substituted, {{{1}}} is interpreted as 1, etc.

However, math tags inside a template parameter are allowed:

{{x2|<math>\frac{a}{b} = e^2</math>}} gives: