跳转到内容

模板:Test case/testcases

维基百科,自由的百科全书

Default format

[编辑]

{{Test case |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{tmbox|text=Lorem ipsum dolor sit amet}}

{{tmbox}}

{{ombox}}

{{ombox/sandbox}}

Sandbox template {{Test case/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}

{{tmbox}}

{{ombox}}

{{ombox/sandbox}}

Default format with _showheader=no

[编辑]

{{Test case |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
Sandbox template {{Test case/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}

Default format with custom headings

[编辑]

The following parameter values are not displayed: _caption, _rowheader, _heading0, _before, _after.

{{Test case |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_caption=''_caption'' |_rowheader=''_rowheader'' |_heading0=''_heading0'' |_heading1=''_heading1'' |_heading2=''_heading2'' |_heading3=''_heading3'' |_before=''_before'' |_after=''_after'' |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{tmbox|text=Lorem ipsum dolor sit amet}}

_heading1

_before

_after

_heading2

_before

_after

_heading3

_before

_after

Sandbox template {{Test case/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}

_heading1

_before

_after

_heading2

_before

_after

_heading3

_before

_after

Default format with _output=nowiki

[编辑]

{{Test case |_output=nowiki |_showcode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{ombox|text=Lorem ipsum dolor sit amet}}

{{ombox}}

<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>

{{ombox/sandbox}}

<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>

Sandbox template {{Test case/sandbox}}
{{ombox|text=Lorem ipsum dolor sit amet}}

{{ombox}}

<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>

{{ombox/sandbox}}

<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>

Default format with _output=nowiki+

[编辑]

{{Test case |_output=nowiki+ |_showcode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{ombox|text=Lorem ipsum dolor sit amet}}

{{ombox}}

<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>

{{ombox/sandbox}}

<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>
Sandbox template {{Test case/sandbox}}
{{ombox|text=Lorem ipsum dolor sit amet}}

{{ombox}}

<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>

{{ombox/sandbox}}

<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>

{{Test case |_output=nowiki+ |_showcode=yes |_template=Height |m=1.51}}

Main template {{Test case}}
{{Height|m=1.51}}

{{Height}}

1.51米(4英尺1112英寸)

-{zh-hans:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-hant:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-cn:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4尺<span class="frac nowrap">5<sup>1</sup>&frasl;<sub>2</sub></span>寸);}-

{{Height/sandbox}}

1.51米(4英尺1112英寸)

1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸)
Sandbox template {{Test case/sandbox}}
{{Height|m=1.51}}

{{Height}}

1.51米(4英尺1112英寸)

-{zh-hans:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-hant:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-cn:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4尺<span class="frac nowrap">5<sup>1</sup>&frasl;<sub>2</sub></span>寸);}-

{{Height/sandbox}}

1.51米(4英尺1112英寸)

1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸)

Columns format

[编辑]

{{Test case |_format=columns |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
左右对比
{{tmbox}}{{ombox}}{{ombox/sandbox}}
Sandbox template {{Test case/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
左右对比
{{tmbox}}{{ombox}}{{ombox/sandbox}}

Columns format with _showcaption=no

[编辑]

{{Test case |_format=columns |_showcaption=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
{{tmbox}}{{ombox}}{{ombox/sandbox}}
Sandbox template {{Test case/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
{{tmbox}}{{ombox}}{{ombox/sandbox}}

Columns format with _showheader=no

[编辑]

{{Test case |_format=columns |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
Sandbox template {{Test case/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}

Columns format with custom headings

[编辑]

{{Test case |_format=columns |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_caption=''_caption'' |_rowheader=''_rowheader'' |_heading0=''_heading0'' |_heading1=''_heading1'' |_heading2=''_heading2'' |_heading3=''_heading3'' |_before=<div style="border: 1px solid grey">''_before'' |_after=''_after''</div> |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
_caption
_heading0_heading1_heading2_heading3
_rowheader
_before _after
_before_after
_before_after
Sandbox template {{Test case/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
_caption
_heading0_heading1_heading2_heading3
_rowheader
_before _after
_before_after
_before_after

Columns format with _output=nowiki

[编辑]

{{Test case |_format=columns |_output=nowiki |_showcode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{ombox|text=Lorem ipsum dolor sit amet}}
左右对比
{{ombox}}{{ombox/sandbox}}
<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table> <table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>
Sandbox template {{Test case/sandbox}}
{{ombox|text=Lorem ipsum dolor sit amet}}
左右对比
{{ombox}}{{ombox/sandbox}}
<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table> <table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>

Columns format with _output=nowiki+

[编辑]

{{Test case |_format=columns |_output=nowiki+ |_showcode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{ombox|text=Lorem ipsum dolor sit amet}}
左右对比
{{ombox}}{{ombox/sandbox}}
<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>
<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>
Sandbox template {{Test case/sandbox}}
{{ombox|text=Lorem ipsum dolor sit amet}}
左右对比
{{ombox}}{{ombox/sandbox}}
<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>
<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>

{{Test case |_format=columns |_output=nowiki+ |_showcode=yes |_template=Height |m=1.51}}

Main template {{Test case}}
{{Height|m=1.51}}
左右对比
{{Height}}{{Height/sandbox}}
1.51米(4英尺1112英寸)
-{zh-hans:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-hant:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-cn:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4尺<span class="frac nowrap">5<sup>1</sup>&frasl;<sub>2</sub></span>寸);}-
1.51米(4英尺1112英寸)
1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸)
Sandbox template {{Test case/sandbox}}
{{Height|m=1.51}}
左右对比
{{Height}}{{Height/sandbox}}
1.51米(4英尺1112英寸)
-{zh-hans:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-hant:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-cn:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4尺<span class="frac nowrap">5<sup>1</sup>&frasl;<sub>2</sub></span>寸);}-
1.51米(4英尺1112英寸)
1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸)

Rows format

[编辑]

{{Test case |_format=rows |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
{{tmbox}}
{{ombox}}
{{ombox/sandbox}}
Sandbox template {{Test case/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
{{tmbox}}
{{ombox}}
{{ombox/sandbox}}

Rows format with _showheader=no

[编辑]

{{Test case |_format=rows |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
Sandbox template {{Test case/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}

Rows format with custom headings

[编辑]

The following parameter values are not displayed: _rowheader, _heading0, _before, _after.

{{Test case |_format=rows |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_caption=''_caption'' |_rowheader=''_rowheader'' |_heading0=''_heading0'' |_heading1=''_heading1'' |_heading2=''_heading2'' |_heading3=''_heading3'' |_before=''_before'' |_after=''_after'' |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
_caption
_heading1

_before

_after
_heading2
_before_after
_heading3
_before_after
Sandbox template {{Test case/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
_caption
_heading1

_before

_after
_heading2
_before_after
_heading3
_before_after

Rows format with _output=nowiki

[编辑]

{{Test case |_format=rows |_output=nowiki |_showcode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{ombox|text=Lorem ipsum dolor sit amet}}
{{ombox}}
<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>
{{ombox/sandbox}}
<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>
Sandbox template {{Test case/sandbox}}
{{ombox|text=Lorem ipsum dolor sit amet}}
{{ombox}}
<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>
{{ombox/sandbox}}
<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>

Rows format with _output=nowiki+

[编辑]

{{Test case |_format=rows |_output=nowiki+ |_showcode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{ombox|text=Lorem ipsum dolor sit amet}}
{{ombox}}
<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>
{{ombox/sandbox}}
<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>
Sandbox template {{Test case/sandbox}}
{{ombox|text=Lorem ipsum dolor sit amet}}
{{ombox}}
<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>
{{ombox/sandbox}}
<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>

{{Test case |_format=rows |_output=nowiki+ |_showcode=yes |_template=Height |m=1.51}}

Main template {{Test case}}
{{Height|m=1.51}}
{{Height}}
1.51米(4英尺1112英寸)
-{zh-hans:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-hant:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-cn:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4尺<span class="frac nowrap">5<sup>1</sup>&frasl;<sub>2</sub></span>寸);}-
{{Height/sandbox}}
1.51米(4英尺1112英寸)
1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸)
Sandbox template {{Test case/sandbox}}
{{Height|m=1.51}}
{{Height}}
1.51米(4英尺1112英寸)
-{zh-hans:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-hant:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-cn:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4尺<span class="frac nowrap">5<sup>1</sup>&frasl;<sub>2</sub></span>寸);}-
{{Height/sandbox}}
1.51米(4英尺1112英寸)
1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸)

Tablerows format

[编辑]

{{Test case |_format=tablerows |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
{{tmbox}}
{{ombox}}
{{ombox/sandbox}}
Sandbox template {{Test case/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
{{tmbox}}
{{ombox}}
{{ombox/sandbox}}

Tablerows format with _showheader=no

[编辑]

The output here is the same as in rows format with _showheader=no.

{{Test case |_format=tablerows |_showheader=no |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
Sandbox template {{Test case/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}

Tablerows format with custom headings

[编辑]

The following parameter values are not displayed: _rowheader, _heading0, _before, _after.

{{Test case |_format=tablerows |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_caption=''_caption'' |_rowheader=''_rowheader'' |_heading0=''_heading0'' |_heading1=''_heading1'' |_heading2=''_heading2'' |_heading3=''_heading3'' |_before=''_before'' |_after=''_after'' |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
_caption
_heading1

_before

_after
_heading2 _before_after
_heading3 _before_after
Sandbox template {{Test case/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
_caption
_heading1

_before

_after
_heading2 _before_after
_heading3 _before_after

Tablerows format with _output=nowiki

[编辑]

{{Test case |_format=tablerows |_output=nowiki |_showcode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{ombox|text=Lorem ipsum dolor sit amet}}
{{ombox}} <table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>
{{ombox/sandbox}} <table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>
Sandbox template {{Test case/sandbox}}
{{ombox|text=Lorem ipsum dolor sit amet}}
{{ombox}} <table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>
{{ombox/sandbox}} <table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>

Tablerows format with _output=nowiki+

[编辑]

{{Test case |_format=tablerows |_output=nowiki+ |_showcode=yes |_template=ombox |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
{{ombox|text=Lorem ipsum dolor sit amet}}
{{ombox}}
<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>
{{ombox/sandbox}}
<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>
Sandbox template {{Test case/sandbox}}
{{ombox|text=Lorem ipsum dolor sit amet}}
{{ombox}}
<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>
{{ombox/sandbox}}
<table class="plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">Lorem ipsum dolor sit amet</td></tr></table>

{{Test case |_format=tablerows |_output=nowiki+ |_showcode=yes |_template=Height |m=1.51}}

Main template {{Test case}}
{{Height|m=1.51}}
{{Height}} 1.51米(4英尺1112英寸)
-{zh-hans:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-hant:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-cn:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4尺<span class="frac nowrap">5<sup>1</sup>&frasl;<sub>2</sub></span>寸);}-
{{Height/sandbox}} 1.51米(4英尺1112英寸)
1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸)
Sandbox template {{Test case/sandbox}}
{{Height|m=1.51}}
{{Height}} 1.51米(4英尺1112英寸)
-{zh-hans:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-hant:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-cn:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4尺<span class="frac nowrap">5<sup>1</sup>&frasl;<sub>2</sub></span>寸);}-
{{Height/sandbox}} 1.51米(4英尺1112英寸)
1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸)

Inline format

[编辑]

{{Test case |_format=inline |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
Sandbox template {{Test case/sandbox}}

Inline format with _showcode=yes

[编辑]

The names of _template1/2/3 are shown in the code, unlike the default, column, rows, or tablerows formats where only the name of _template1 is shown in the code. The inline format does not currently display headings (default or custom).

{{Test case |_format=inline |_showcode=yes |_template1=tmbox |_template2=ombox |_template3=ombox/sandbox |_caption=''_caption'' |_rowheader=''_rowheader'' |_heading0=''_heading0'' |_heading1=''_heading1'' |_heading2=''_heading2'' |_heading3=''_heading3'' |_before=''_before'' |_after=''_after'' |text=Lorem ipsum dolor sit amet}}

Main template {{Test case}}
  • {{tmbox|text=Lorem ipsum dolor sit amet}}_before

_after

  • {{ombox|text=Lorem ipsum dolor sit amet}}_before_after
  • {{ombox/sandbox|text=Lorem ipsum dolor sit amet}}_before_after
Sandbox template {{Test case/sandbox}}
  • {{tmbox|text=Lorem ipsum dolor sit amet}}_before

_after

  • {{ombox|text=Lorem ipsum dolor sit amet}}_before_after
  • {{ombox/sandbox|text=Lorem ipsum dolor sit amet}}_before_after

Inline format with _addline

[编辑]

The contents of the _addline parameter will be displayed next to an additional bullet at the end of the list.

{{Test case |_format=inline |_showcode=yes |_template1=Height |m=1.51 |_addline=<code><nowiki>{{Cvt|1.51|m|frac=2}}</nowiki></code> → {{Cvt|1.51|m|frac=2}} }}

Main template {{Test case}}
  • {{Height|m=1.51}} → 1.51米(4英尺1112英寸)
  • {{Height/sandbox|m=1.51}} → 1.51米(4英尺1112英寸)
  • {{Cvt|1.51|m|frac=2}} → 1.51米(4英尺1112英寸)
Sandbox template {{Test case/sandbox}}
  • {{Height|m=1.51}} → 1.51米(4英尺1112英寸)
  • {{Height/sandbox|m=1.51}} → 1.51米(4英尺1112英寸)
  • {{Cvt|1.51|m|frac=2}} → 1.51米(4英尺1112英寸)

Inline format with _output=nowiki

[编辑]

{{Test case |_format=inline |_output=nowiki |_showcode=yes |_template=Height |m=1.51}}

Main template {{Test case}}
  • {{Height|m=1.51}} → -{zh-hans:1.51-{zh:米;zh-cn:米;zh-tw:米;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-hant:1.51-{zh:米;zh-cn:米;zh-tw:米;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-cn:1.51-{zh:米;zh-cn:米;zh-tw:米;zh-hk:米;}-(4尺<span class="frac nowrap">5<sup>1</sup>&frasl;<sub>2</sub></span>寸);}-
  • {{Height/sandbox|m=1.51}} → 1.51-{zh:米;zh-cn:米;zh-tw:米;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸)
Sandbox template {{Test case/sandbox}}
  • {{Height|m=1.51}} → 1.51米(4英尺1112英寸)
    -{zh-hans:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-hant:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-cn:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4尺<span class="frac nowrap">5<sup>1</sup>&frasl;<sub>2</sub></span>寸);}-
  • {{Height/sandbox|m=1.51}} → 1.51米(4英尺1112英寸)
    1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸)

Inline format with _output=nowiki+

[编辑]

{{Test case |_format=inline |_output=nowiki+ |_showcode=yes |_template=Height |m=1.51}}

Main template {{Test case}}
  • {{Height|m=1.51}} → 1.51米(4英尺1112英寸)
    -{zh-hans:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-hant:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-cn:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4尺<span class="frac nowrap">5<sup>1</sup>&frasl;<sub>2</sub></span>寸);}-
  • {{Height/sandbox|m=1.51}} → 1.51米(4英尺1112英寸)
    1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸)
Sandbox template {{Test case/sandbox}}
  • {{Height|m=1.51}} → 1.51米(4英尺1112英寸)
    -{zh-hans:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-hant:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸);zh-cn:1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4尺<span class="frac nowrap">5<sup>1</sup>&frasl;<sub>2</sub></span>寸);}-
  • {{Height/sandbox|m=1.51}} → 1.51米(4英尺1112英寸)
    1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<sup>1</sup>&frasl;<sub>2</sub></span>英寸)

Inline format with _prefix=#

[编辑]

{{Test case |_format=inline |_prefix=# |_showcode=yes |_template=Height |m=1.51}}

Main template {{Test case}}
  1. {{Height|m=1.51}} → 1.51米(4英尺1112英寸)
  2. {{Height/sandbox|m=1.51}} → 1.51米(4英尺1112英寸)
Sandbox template {{Test case/sandbox}}
  1. {{Height|m=1.51}} → 1.51米(4英尺1112英寸)
  2. {{Height/sandbox|m=1.51}} → 1.51米(4英尺1112英寸)

Inline format with _prefix=:

[编辑]

{{Test case |_format=inline |_prefix=: |_showcode=yes |_template=Height |m=1.51}}

Main template {{Test case}}
{{Height|m=1.51}} → 1.51米(4英尺1112英寸)
{{Height/sandbox|m=1.51}} → 1.51米(4英尺1112英寸)
Sandbox template {{Test case/sandbox}}
{{Height|m=1.51}} → 1.51米(4英尺1112英寸)
{{Height/sandbox|m=1.51}} → 1.51米(4英尺1112英寸)

Collapsible with default title

[编辑]

{{Test case |_collapsible=yes |_showcode=yes |_template=Height |m=1.51}}

Main template {{Test case}}
{{Height}}
{{Height|m=1.51}}

{{Height}}

1.51米(4英尺1112英寸)

{{Height/sandbox}}

1.51米(4英尺1112英寸)

Sandbox template {{Test case/sandbox}}
{{Height}}
{{Height|m=1.51}}

{{Height}}

1.51米(4英尺1112英寸)

{{Height/sandbox}}

1.51米(4英尺1112英寸)

Collapsible with "title" parameter

[编辑]

{{Test case |_collapsible=yes |_showcode=yes |_title=Testing height template |_template=Height |m=1.51}}

Main template {{Test case}}
Testing height template
{{Height|m=1.51}}

{{Height}}

1.51米(4英尺1112英寸)

{{Height/sandbox}}

1.51米(4英尺1112英寸)

Sandbox template {{Test case/sandbox}}
Testing height template
{{Height|m=1.51}}

{{Height}}

1.51米(4英尺1112英寸)

{{Height/sandbox}}

1.51米(4英尺1112英寸)

Collapsible with "titlecode" parameter

[编辑]

{{Test case |_collapsible=yes |_titlecode=yes |_template=Height |m=1.51}}

Main template {{Test case}}
{{Height|m=1.51}}

{{Height}}

1.51米(4英尺1112英寸)

{{Height/sandbox}}

1.51米(4英尺1112英寸)

Sandbox template {{Test case/sandbox}}
{{Height|m=1.51}}

{{Height}}

1.51米(4英尺1112英寸)

{{Height/sandbox}}

1.51米(4英尺1112英寸)

参见

[编辑]