Template:Math/testcases

From Path of Exile Wiki
Jump to: navigation, search

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 {{math|formula=\frac{5}{2} = 2}} entry
* third entry
Main:
  • first entry
  • second

entry

  • third entry
Sandbox:
  • first entry
  • second

entry

  • third entry


Code:
* first entry
* second {{math|display=block|formula=\frac{5}{2} = 2}} entry
* third entry
Main:
  • first entry
  • second

entry

  • third entry
Sandbox:
  • first entry
  • second

entry

  • third entry


Code:
* first entry
* second {{math|display=inline|formula=\frac{5}{2} = 2}} entry
* third entry
Main:
  • first entry
  • second

entry

  • third entry
Sandbox:
  • first entry
  • second

entry

  • third entry

Numbered equations

Code:
{{math
|nr=1
| 2 \times 2 {{=}} 5
}} Look how great eq. {{EquationNote|1}} is!
Main:

 

 

 

 

(1)

Look how great eq. (1) is!
Sandbox:

 

 

 

 

(1)

Look how great eq. (1) is!


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

 

 

 

 

(1.1)

Look how great eq. (1.1) is!
Sandbox:

 

 

 

 

(1.1)

Look how great eq. (1.1) is!


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

 

 

 

 

(hello)

Look how great eq. (hello) is!
Sandbox:

 

 

 

 

(hello)

Look how great eq. (hello) is!

with display

Code:
look at my formula {{math
|display=block
|nr=2
|formula=\frac{5}{2} = 2
}} formula {{EquationNote|2}} is amazing
Main:

look at my formula

 

 

 

 

(2)

formula (2) is amazing
Sandbox:

look at my formula

 

 

 

 

(2)

formula (2) is amazing


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

look at my formula

 

 

 

 

(3)

formula (3) is amazing
Sandbox:

look at my formula

 

 

 

 

(3)

formula (3) is amazing

Errors

Code:
{{math|formula=
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 }} }}