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

{{{1}}} + {{{abc}}}

{{CURRENTDAY}} CURRENTDAY

{{tc}} tc

Social \; media \; ROI \; = \; \frac{SM return \; - \; SM investment}{SM \; investment \; \%}

 \int x^2 dx


Compare using "#tag:math":

4 + def

26 CURRENTDAY

in tc

5


For a=4, a^2 < 30

4^2 < 30



{{{1}}} + {{{abc}}}

{{CURRENTDAY}} CURRENTDAY

{{tc}} tc

Social \; media \; ROI \; = \; \frac{SM return \; - \; SM investment}{SM \; investment \; \%}

 \int x^2 dx


Compare using "#tag:math":

6 + def

26 CURRENTDAY

in tc

5


For a=6, a^2 \ge 30

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