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

Numbered equations
The equations can be numbered using the  parameter. The equation can then be referenced with. For example:

$2+3$ Equation $$ shows the equation for an sphere centered around origo. $\sum_{i=0}^\infty 2^{-i}$ Equation $$ shows the equation for a sphere centered around origo.

Combining with queried data
It is possible to query data with various parser functions such as,   and other parser functions such as. Which helps making sure equations stay up date even if the game changes. For example:

$\sum_{i=0}^\infty 2^{-i}$

yields:

$\sum_{i=0}^\infty 2^{-i}$

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 :

Problem
When using the template with unordered/ordered lists the template forces a new line.

Solution
In order to prevent this use html lists.