Jump to content

Template talk:Demo of attempt to use parameters within TeX

Add topic
From Meta, a Wikimedia project coordination wiki

{{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>:

1+abc

CURRENTDAYCURRENTDAY

tctc

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


Compare using "#tag:math":

4+def

13CURRENTDAY

intc

5


For a=4, a2<30

42<30





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

1+abc

CURRENTDAYCURRENTDAY

tctc

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


Compare using "#tag:math":

6+def

13CURRENTDAY

intc

5


For a=6, a2≥30

62≥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: ab=e2ab=e2

Start a discussion about Template:Demo of attempt to use parameters within TeX

Start a discussion