Template:Math/doc

The template is a wrapper for  tag which is a part of the Extension:Math. The template is mainly used to change the default rendering colors (black text on white background) to custom ones that fit the color scheme of the wiki, but also brings additional functionality such as possibility of using another templates inside of tags and support for numbered equations.

For a detailed guide to LaTeX markup see Help:Displaying a formula.

Usage
Code  renders as: $2+3$

Parameters
The following parameters are available

Problem
Placing multiple opening/closing braces together (e.g.  or  ) if there are no closing/opening brackets, causes error. This happens because interpreter thinks they are a part of a template when in fact they are a part of a math markup. For example, the following code:

Solution
In order to prevent this either space braces:

or use the following templates:

Problem
Absolute values are usually denoted |x|. However using  in templates will result in the following issue.

Solution
Use  or :