Template:NumBlk/testcases

Quadratic with <math>
{{NumBlk|:||45}}

{{NumBlk}}

45

{{NumBlk/sandbox}}

(45)
Showing the line
{{NumBlk|:||Eq. 7|LnSty=3px dotted Gainsboro}}

{{NumBlk}}

Eq. 7

{{NumBlk/sandbox}}

(Eq. 7)
Showing the border
{{NumBlk|:||Eq. 7|Border=1}}

{{NumBlk}}

Eq. 7

{{NumBlk/sandbox}}

(Eq. 7)
Deeply indented with chem2
{{NumBlk|::::|2=6 H<span style="display:inline-block; margin-bottom:-0.3em; vertical-align:-0.4em; line-height:1.2em; font-size:70%; text-align:left;"><br />2</span>O + 6 CO<span style="display:inline-block; margin-bottom:-0.3em; vertical-align:-0.4em; line-height:1.2em; font-size:70%; text-align:left;"><br />2</span>  →  C<span style="display:inline-block; margin-bottom:-0.3em; vertical-align:-0.4em; line-height:1.2em; font-size:70%; text-align:left;"><br />6</span>H<span style="display:inline-block; margin-bottom:-0.3em; vertical-align:-0.4em; line-height:1.2em; font-size:70%; text-align:left;"><br />12</span>O<span style="display:inline-block; margin-bottom:-0.3em; vertical-align:-0.4em; line-height:1.2em; font-size:70%; text-align:left;"><br />6</span> + 6 O<span style="display:inline-block; margin-bottom:-0.3em; vertical-align:-0.4em; line-height:1.2em; font-size:70%; text-align:left;"><br />2</span>|3=Eq. 24|RawN=y}}

{{NumBlk}}

6 H
2
O + 6 CO
2
→ C
6
H
12
O
6
+ 6 O
2
Eq. 24

{{NumBlk/sandbox}}

6 H
2
O + 6 CO
2
→ C
6
H
12
O
6
+ 6 O
2
Eq. 24
Add a note
{{NumBlk|:|2=6 H<span style="display:inline-block; margin-bottom:-0.3em; vertical-align:-0.4em; line-height:1.2em; font-size:70%; text-align:left;"><br />2</span>O + 6 CO<span style="display:inline-block; margin-bottom:-0.3em; vertical-align:-0.4em; line-height:1.2em; font-size:70%; text-align:left;"><br />2</span>  →  C<span style="display:inline-block; margin-bottom:-0.3em; vertical-align:-0.4em; line-height:1.2em; font-size:70%; text-align:left;"><br />6</span>H<span style="display:inline-block; margin-bottom:-0.3em; vertical-align:-0.4em; line-height:1.2em; font-size:70%; text-align:left;"><br />12</span>O<span style="display:inline-block; margin-bottom:-0.3em; vertical-align:-0.4em; line-height:1.2em; font-size:70%; text-align:left;"><br />6</span> + 6 O<span style="display:inline-block; margin-bottom:-0.3em; vertical-align:-0.4em; line-height:1.2em; font-size:70%; text-align:left;"><br />2</span>|3=Eq. 24|RawN=y|note=Photosynthesis}}

{{NumBlk}}

6 H
2
O + 6 CO
2
→ C
6
H
12
O
6
+ 6 O
2
Eq. 24

{{NumBlk/sandbox}}

6 H
2
O + 6 CO
2
→ C
6
H
12
O
6
+ 6 O
2
Eq. 24

List formatting

Test case 1

{{bulleted list
|1=<div style="line-height: 0.8; display: block; border: 1px solid Lime;">{{NumBlk|Border=.||<math>f(x) = a x + b</math>|77}}</div>
|2=<div style="line-height: 0.8; display: inline-table; border: 1px solid Lime;">{{NumBlk|Border=.||<math>f(x) = a x + b</math>|37}}</div>
}}

{{NumBlk}}

  • 77
  • 37

{{NumBlk/sandbox}}

  • (77)
  • (37)

Test case 2

{{bulleted list
|1=<div style="line-height: 0.8; display: block; border: 1px solid Lime;">{{NumBlk|Border=.|:|<math>f(x) = a x + b</math>|77}}</div>
|2=<div style="line-height: 0.8; display: inline-table; border: 1px solid Lime;">{{NumBlk|Border=.|:|<math>f(x) = a x + b</math>|37}}</div>
}}

{{NumBlk}}

  • 77
  • 37

{{NumBlk/sandbox}}

  • (77)
  • (37)

Test case 3

[[File:Westminstpalace.jpg|thumb|50px|left|Figure 1]]
{{bulleted list
|1=<div style="overflow: hidden;"><div style="display: inline-block; vertical-align: middle; width: 100%;">{{NumBlk||<math>7x+2y-9z=10</math>|A}}</div></div>
|2=<div style="overflow: hidden;"><div style="display: inline-block; vertical-align: middle; width: 100%;">{{NumBlk||<math>3x+3y+5z=-6</math>|B}}</div></div>
}}
[[File:Westminstpalace.jpg|thumb|50px|right|Figure 2]]
{{bulleted list
|1=<div style="overflow: hidden;"><div style="display: inline-block; vertical-align: middle; width: 100%;">{{NumBlk||<math>x+4y+5z=7</math>|C}}</div></div>
|2=<div style="overflow: hidden;"><div style="display: inline-block; vertical-align: middle; width: 100%;">{{NumBlk||<math>2x+5y+6z=-8</math>|D}}</div></div>
|3=<div style="overflow: hidden;"><div style="display: inline-block; vertical-align: middle; width: 100%;">{{NumBlk||<math>3x+6y+5z=-6</math>|E}}</div></div>
|4=<div style="overflow: hidden;"><div style="display: inline-block; vertical-align: middle; width: 100%;">{{NumBlk||<math>4x+7y+5z=-6</math>|F}}</div></div>
}}
[[File:Westminstpalace.jpg|thumb|50px|left|Figure 3]]
[[File:Westminstpalace.jpg|thumb|50px|right|Figure 4]]
{{bulleted list
|1=<div style="overflow: hidden;"><div style="display: inline-block; vertical-align: middle; width: 100%;">{{NumBlk||<math>5x+8y+5z=-6</math>|G}}</div></div>
|2=<div style="overflow: hidden;"><div style="display: inline-block; vertical-align: middle; width: 100%;">{{NumBlk||<math>6x+9y+5z=-6</math>|H}}</div></div>
}}

{{NumBlk}}

Figure 1
  • A
  • B
Figure 2
  • C
  • D
  • E
  • F
Figure 3
Figure 4
  • G
  • H

{{NumBlk/sandbox}}

Figure 1
  • (A)
  • (B)
Figure 2
  • (C)
  • (D)
  • (E)
  • (F)
Figure 3
Figure 4
  • (G)
  • (H)