# Template talk:Demo of attempt to use parameters within TeX

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

give

Attempt to use template parameters within <math>...</math>:

${\displaystyle {1}+{abc}}$

${\displaystyle {CURRENTDAY}CURRENTDAY}$

${\displaystyle {tc}tc}$

$\displaystyle {{#expr:2+3}}$

Compare using "#tag:math":

${\displaystyle 4+def}$

${\displaystyle 19CURRENTDAY}$

${\displaystyle intc}$

${\displaystyle 5}$

For a=4, ${\displaystyle a^{2}<30}$

4${\displaystyle ^{2}<30}$

Attempt to use template parameters within <math>...</math>:

${\displaystyle {1}+{abc}}$

${\displaystyle {CURRENTDAY}CURRENTDAY}$

${\displaystyle {tc}tc}$

$\displaystyle {{#expr:2+3}}$

Compare using "#tag:math":

${\displaystyle 6+def}$

${\displaystyle 19CURRENTDAY}$

${\displaystyle intc}$

${\displaystyle 5}$

For a=6, ${\displaystyle a^{2}\geq 30}$

6${\displaystyle ^{2}\geq 30}$

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: ${\displaystyle {\frac {a}{b}}=e^{2}}$${\displaystyle {\frac {a}{b}}=e^{2}}$