Template:Math/testcases: Difference between revisions
Jump to navigation
Jump to search
>Illviljan m (→Basic) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
! Main | ! Main | ||
! Sandbox | ! Sandbox | ||
|- | |- | ||
| | | | ||
Line 58: | Line 57: | ||
| 2 \times 2 = 5 | | 2 \times 2 = 5 | ||
}} | }} | ||
|- | |- | ||
|colspan="3"| | |colspan="3"| | ||
Line 76: | Line 72: | ||
|1= 2 \times 2 = 5 | |1= 2 \times 2 = 5 | ||
}} | }} | ||
|- | |- | ||
| | | | ||
Line 295: | Line 288: | ||
| | | | ||
<pre>{{math | <pre>{{math | ||
| | |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 | ||
| | |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 | ||
| | |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 | ||
| | |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 | ||
| | |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 | ||
| | |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 | ||
| | |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 | ||
| | |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 | ||
| | |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! | ||
}} | }} | ||
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 |
look at my formula |
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 |
look at my formula |
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: |
|
Sandbox: |
|
Code: |
* first entry * second {{math|display=block|formula=\frac{5}{2} = 2}} entry * third entry |
---|---|
Main: |
|
Sandbox: |
|
Code: |
* first entry * second {{math|display=inline|formula=\frac{5}{2} = 2}} entry * third entry |
---|---|
Main: |
|
Sandbox: |
|
Numbered equations
Code: |
{{math |display = block |ref = {{EquationRef|1}} | 2 \times 2 {{=}} 5 }} Look how great eq. {{EquationNote|1}} is! |
---|---|
Main: |
(1)
|
Sandbox: |
(1)
|
Code: |
{{math |display = block |ref = {{EquationRef|1.1}} |formula= 2 \times 2 {{=}} 5 }} Look how great eq. {{EquationNote|1.1}} is! |
---|---|
Main: |
(1.1)
|
Sandbox: |
(1.1)
|
Code: |
{{math |display = block |ref = {{EquationRef|hello}} |formula= 2 \times 2 {{=}} 5 }} Look how great eq. {{EquationNote|hello}} is! |
---|---|
Main: |
(hello)
|
Sandbox: |
(hello)
|
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 }} }}