Template:Math/doc

Rationale
The Math template formats HTML- or wikimarkup-generated mathematical formulas in the same manner as HTML-based TeX formulas, which uses a serif font. The generated formula is displayed using the same-size font as the adjoining text. The template will prevent line-wrapping.

Use this template for non-complex formulas as an alternative to using the "math" tags: .

Examples
Use this template to wrap an inline formula in wikitext. For example:

Known Bugs
Because of this template's simplicity, there are some bugs that arise due to the fact that the template is handled through the wiki. This means that keywords and symbols may be inadvertently processed.

Equal Signs
If a single equals-sign ("=") is used, some bugs may occur because the wiki interprets the equal sign as a parameter assignment. It may show up as " " or as undefined behavior if this template was used inside another template. For example, you should not write  as this will prevent the parser from rendering the template at all.

To resolve this, three workarounds are known:

Absolute Signs
If the bar  is used, some bugs may occur because the wiki interprets the pipe character as a new parameter or as a table component. For example, you should not write, from which the (undesired) output is only: $x^{2} + y^{2} = r^{2}$.

To resolve this, there are two known workarounds:

TemplateData
{	"description": "Formats HTML - or wikimarkup generated - mathematical formulas in the same manner as HTML based TeX formulas, which uses a serif-based font. Use this template for non-complex formulas as an alternative to using the math tags.", "format": "inline", "paramOrder": [ "big", "size", "1"	],	"params": { "1": {			"description": "The HTML text to display. Note that equal signs must be inputted as = and absolute value bars as |", "example": "f(x) = x2 + 2x + 1", "type": "content", "label": "Equation", "suggested": true },		"big": { "label": "Large font", "description": "Request if the font in a bigger (165%) size. by adding 1", "example": "yes, unused", "type": "boolean" },		"size": { "label": "Font size", "description": "Used to specify your own font size.", "example": "11px, 1.2em, 120%", "type": "number" }	} }