To calculate an expression use {{#expr: 3*4^2}} not "expr".


The Template:Expr explains to use the wp:Parser function "#expr" to calculate an expression, rather than using "{{expr}}" which triggers this template.

For more details, see:  Help:expr (Help:Calculation).