Template:Math/testcases: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>Illviljan
 
(3 intermediate revisions by one other user not shown)
Line 5: Line 5:
! Main
! Main
! Sandbox
! Sandbox
! Raw
|-
|-
|
|
Line 58: Line 57:
| 2 \times 2 = 5
| 2 \times 2 = 5
}}
}}
|<math>
2\times 2 = 5
</math>
|-
|-
|colspan="3"|&nbsp;
|colspan="3"|&nbsp;
Line 76: Line 72:
|1= 2 \times 2 = 5
|1= 2 \times 2 = 5
}}
}}
|<math>
2 \times 2 = 5
</math>
|-
|-
|
|
Line 295: Line 288:
|
|
<pre>{{math
<pre>{{math
|nr=1
|display = block
|ref = {{EquationRef|1}}
| 2 \times 2 {{=}} 5
| 2 \times 2 {{=}} 5
}} Look how great eq. {{EquationNote|1}} is!</pre>
}} Look how great eq. {{EquationNote|1}} is!</pre>
|
|
{{math
{{math
|nr=1
|display = block
|ref = {{EquationRef|1}}
| 2 \times 2 {{=}} 5
| 2 \times 2 {{=}} 5
}} Look how great eq. {{EquationNote|1}} is!
}} Look how great eq. {{EquationNote|1}} is!
|
|
{{math/sandbox
{{math/sandbox
|nr=1
|display = block
|ref = {{EquationRef|1}}
| 2 \times 2 {{=}} 5
| 2 \times 2 {{=}} 5
}} Look how great eq. {{EquationNote|1}} is!
}} Look how great eq. {{EquationNote|1}} is!
Line 313: Line 309:
|
|
<pre>{{math
<pre>{{math
|nr=1.1
|display = block
|ref = {{EquationRef|1.1}}
|formula= 2 \times 2 {{=}} 5
|formula= 2 \times 2 {{=}} 5
}} Look how great eq. {{EquationNote|1.1}} is!</pre>
}} Look how great eq. {{EquationNote|1.1}} is!</pre>
|
|
{{math
{{math
|nr=1.1
|display = block
|ref = {{EquationRef|1.1}}
|formula= 2 \times 2 {{=}} 5
|formula= 2 \times 2 {{=}} 5
}} Look how great eq. {{EquationNote|1.1}} is!
}} Look how great eq. {{EquationNote|1.1}} is!
|
|
{{math/sandbox
{{math/sandbox
|nr=1.1
|display = block
|ref = {{EquationRef|1.1}}
|formula= 2 \times 2 {{=}} 5
|formula= 2 \times 2 {{=}} 5
}} Look how great eq. {{EquationNote|1.1}} is!
}} Look how great eq. {{EquationNote|1.1}} is!
Line 331: Line 330:
|
|
<pre>{{math
<pre>{{math
|nr=hello
|display = block
|ref = {{EquationRef|hello}}
|formula= 2 \times 2 {{=}} 5
|formula= 2 \times 2 {{=}} 5
}} Look how great eq. {{EquationNote|hello}} is!</pre>
}} Look how great eq. {{EquationNote|hello}} is!</pre>
|
|
{{math
{{math
|nr=hello
|display = block
|ref = {{EquationRef|hello}}
|formula= 2 \times 2 {{=}} 5
|formula= 2 \times 2 {{=}} 5
}} Look how great eq. {{EquationNote|hello}} is!
}} Look how great eq. {{EquationNote|hello}} is!
|
|
{{math/sandbox
{{math/sandbox
|nr=hello
|display = block
|ref = {{EquationRef|hello}}
|formula= 2 \times 2 {{=}} 5
|formula= 2 \times 2 {{=}} 5
}} Look how great eq. {{EquationNote|hello}} is!
}} Look how great eq. {{EquationNote|hello}} is!
}}
===with display===
{{testcase|type=row|width=100%
|
<pre>look at my formula {{math
|display=block
|nr=2
|formula=\frac{5}{2} = 2
}} formula {{EquationNote|2}} is amazing</pre>
|
look at my formula {{math
|display=block
|nr=2
|formula=\frac{5}{2} = 2
}} formula {{EquationNote|2}} is amazing
|
look at my formula {{math/sandbox
|display=block
|nr=2
|formula=\frac{5}{2} = 2
}} formula {{EquationNote|2}} is amazing
}}
{{testcase|type=row|width=100%
|
<pre>look at my formula {{math
|display=inline
|nr=3
|formula=\frac{5}{2} = 2
}} formula {{EquationNote|3}} is amazing</pre>
|
look at my formula {{math
|display=inline
|nr=3
|formula=\frac{5}{2} = 2
}} formula {{EquationNote|3}} is amazing
|
look at my formula {{math/sandbox
|display=inline
|nr=3
|formula=\frac{5}{2} = 2
}} formula {{EquationNote|3}} is amazing
}}
}}



Latest revision as of 09:13, 11 January 2022

Basic

Code Main Sandbox
{{math
|
}}

No formula given.

No formula given.

{{math
|1=
}}

No formula given.

No formula given.

{{math
|formula=
}}

No formula given.

No formula given.

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

No formula given.

No formula given.

 
{{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
|display = block
|ref = {{EquationRef|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
|display = block
|ref = {{EquationRef|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
|display = block
|ref = {{EquationRef|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!

Errors

Code:
{{math|formula=
DR(A, D_{raw}) = {A \over A + 10 \times D_{raw}}
}}
Main: Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): \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 }} }}