Template:Math/testcases
Basic
Code  Main  Sandbox 

{{math  }} 
Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Expected width > 0."): \color [rgb]{0.6392156862745098,0.5529411764705883,0.42745098039215684} 
Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Expected width > 0."): \color [rgb]{0.6392156862745098,0.5529411764705883,0.42745098039215684} 
{{math 1= }} 
Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Expected width > 0."): \color [rgb]{0.6392156862745098,0.5529411764705883,0.42745098039215684} 
Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Expected width > 0."): \color [rgb]{0.6392156862745098,0.5529411764705883,0.42745098039215684} 
{{math formula= }} 
Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Expected width > 0."): \color [rgb]{0.6392156862745098,0.5529411764705883,0.42745098039215684} 
Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Expected width > 0."): \color [rgb]{0.6392156862745098,0.5529411764705883,0.42745098039215684} 
{{math  2 \times 2 = 5 }} 


{{math 1= 2 \times 2 = 5 }} 


{{math  2 \times 2 {{=}} 5 }} 


{{math formula= 2 \times 2 = 5 }} 


{{math formula= 2 \times 2 = 5  \frac{5}{2} {{=}} 2 }} 


Display
Code  Main  Sandbox 

look at my formula {{math display= formula=\frac{5}{2} = 2 }} my formula is amazing 
look at my formula my formula is amazing 
look at my formula my formula is amazing 
look at my formula {{math display=block formula=\frac{5}{2} = 2 }} my formula is amazing 
look at my formula my formula is amazing 
look at my formula my formula is amazing 
look at my formula {{math display=inline formula=\frac{5}{2} = 2 }} my formula is amazing 
look at my formula my formula is amazing 
look at my formula my formula is amazing 
look at my formula {{math display=something formula=\frac{5}{2} = 2 }} my formula is amazing 
look at my formula my formula is amazing 
look at my formula my formula is amazing 
look at my formula {{math display= formula=\frac{2}{c + \frac{2}{d + \frac{2}{4} } } = a }} my formula is amazing 
look at my formula my formula is amazing 
look at my formula my formula is amazing 
look at my formula {{math display=block formula=\frac{2}{c + \frac{2}{d + \frac{2}{4} } } = a }} my formula is amazing 
look at my formula my formula is amazing 
look at my formula my formula is amazing 
look at my formula {{math display=inline formula=\frac{2}{c + \frac{2}{d + \frac{2}{4} } } = a }} my formula is amazing 
look at my formula my formula is amazing 
look at my formula my formula is amazing 
Lists
Code: 
* first entry * second {{mathformula=\frac{5}{2} = 2}} entry * third entry 

Main: 
entry

Sandbox: 
entry

Code: 
* first entry * second {{mathdisplay=blockformula=\frac{5}{2} = 2}} entry * third entry 

Main: 
entry

Sandbox: 
entry

Code: 
* first entry * second {{mathdisplay=inlineformula=\frac{5}{2} = 2}} entry * third entry 

Main: 
entry

Sandbox: 
entry

Numbered equations
Code: 
{{math nr=1  2 \times 2 {{=}} 5 }} Look how great eq. {{EquationNote1}} is!  

Main: 
 
Sandbox: 

Code: 
{{math nr=1.1 formula= 2 \times 2 {{=}} 5 }} Look how great eq. {{EquationNote1.1}} is!  

Main: 
 
Sandbox: 

Code: 
{{math nr=hello formula= 2 \times 2 {{=}} 5 }} Look how great eq. {{EquationNotehello}} is!  

Main: 
 
Sandbox: 

with display
Code: 
look at my formula {{math display=block nr=2 formula=\frac{5}{2} = 2 }} formula {{EquationNote2}} is amazing  

Main: 
look at my formula
 
Sandbox: 
look at my formula

Code: 
look at my formula {{math display=inline nr=3 formula=\frac{5}{2} = 2 }} formula {{EquationNote3}} is amazing  

Main: 
look at my formula
 
Sandbox: 
look at my formula

Errors
Code:  {{mathformula= DR(A, D_{raw}) = {A \over A + 10 \times D_{raw}} }} 

Main: 
Failed to parse (syntax error): \color[RGB]{163,141,109} DR(A, D_{raw}) = {A \over A + 10 \times D_{raw 
Sandbox: 
 Failed to parse (syntax error): \color[RGB]{163,141,109} DR(A, D_{raw}) = {A \over A + 10 \times D_{raw }} }}