模板: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>
}}