Template:NumBlk/testcases
这是Template:NumBlk及其沙盒的测试样例。刷新本页以更新内容。 如果这里有许多复杂的模板的用例,可能会因为MediaWiki的技术限制而出错。 您还可以用Special:展开模板来测试模板的使用效果。 您可以通过以下链接测试本模板在不同皮肤下的效果: |
Quadratic with <math>
Showing the line
Showing the border
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 2O + 6 CO 2 → C 6H 12O 6 + 6 O 2 | Eq. 24 |
{{NumBlk/sandbox}}
6 H 2O + 6 CO 2 → C 6H 12O 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 2O + 6 CO 2 → C 6H 12O 6 + 6 O 2 | Eq. 24 |
{{NumBlk/sandbox}}
6 H 2O + 6 CO 2 → C 6H 12O 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>
}}