跳转到内容

英文维基 | 中文维基 | 日文维基 | 草榴社区

Template:Test case nowiki/testcases

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

Default format

[编辑]

{{Test case nowiki |template1=tmbox |template2=ombox |template3=ombox/sandbox |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

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

{{tmbox}}

{{ombox}}

{{ombox/sandbox}}

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

{{tmbox}}

{{ombox}}

{{ombox/sandbox}}

Default format with showheader=no

[编辑]

{{Test case nowiki |template1=tmbox |template2=ombox |template3=ombox/sandbox |showheader=no |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

Main template {{Test case nowiki}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
Sandbox template {{Test case nowiki/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 nowiki |template1=tmbox |template2=ombox |template3=ombox/sandbox |caption=''caption'' |rowheader=''rowheader'' |heading0=''heading0'' |heading1=''heading1'' |heading2=''heading2'' |heading3=''heading3'' |before=''before'' |after=''after'' |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

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

heading1

before

after

heading2

before

after

heading3

before

after

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

heading1

before

after

heading2

before

after

heading3

before

after

Default format with output=nowiki

[编辑]

{{Test case nowiki |output=nowiki |template=ombox |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

Main template {{Test case nowiki}}
{{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 nowiki/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 nowiki |output=nowiki+ |template=ombox |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

Main template {{Test case nowiki}}
{{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 nowiki/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 nowiki |output=nowiki+ |template=Height |code=<nowiki>{{__TEMPLATENAME__|m=1.51}}</nowiki>}}

Main template {{Test case nowiki}}
{{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 nowiki/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 nowiki |format=columns |template1=tmbox |template2=ombox |template3=ombox/sandbox |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

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

Columns format with showcaption=no

[编辑]

{{Test case nowiki |format=columns |showcaption=no |template1=tmbox |template2=ombox |template3=ombox/sandbox |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

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

Columns format with showheader=no

[编辑]

{{Test case nowiki |format=columns |showheader=no |template1=tmbox |template2=ombox |template3=ombox/sandbox |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

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

Columns format with custom headings

[编辑]

{{Test case nowiki |format=columns |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> |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

Main template {{Test case nowiki}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
caption
heading0heading1heading2heading3
rowheader
before after
beforeafter
beforeafter
Sandbox template {{Test case nowiki/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
caption
heading0heading1heading2heading3
rowheader
before after
beforeafter
beforeafter

Columns format with output=nowiki

[编辑]

{{Test case nowiki |format=columns |output=nowiki |template=ombox |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

Main template {{Test case nowiki}}
{{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 nowiki/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 nowiki |format=columns |output=nowiki+ |template=ombox |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

Main template {{Test case nowiki}}
{{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 nowiki/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 nowiki |format=columns |output=nowiki+ |template=Height |code=<nowiki>{{__TEMPLATENAME__|m=1.51}}</nowiki>}}

Main template {{Test case nowiki}}
{{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 nowiki/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 nowiki |format=rows |template1=tmbox |template2=ombox |template3=ombox/sandbox |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

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

Rows format with showheader=no

[编辑]

{{Test case nowiki |format=rows |template1=tmbox |template2=ombox |template3=ombox/sandbox |showheader=no |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

Main template {{Test case nowiki}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
Sandbox template {{Test case nowiki/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 nowiki |format=rows |template1=tmbox |template2=ombox |template3=ombox/sandbox |caption=''caption'' |rowheader=''rowheader'' |heading0=''heading0'' |heading1=''heading1'' |heading2=''heading2'' |heading3=''heading3'' |before=''before'' |after=''after'' |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}}}</nowiki>

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

before

after
heading2
beforeafter
heading3
beforeafter
Sandbox template {{Test case nowiki/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
caption
heading1

before

after
heading2
beforeafter
heading3
beforeafter

Rows format with output=nowiki

[编辑]

{{Test case nowiki |format=rows |output=nowiki |template=ombox |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

Main template {{Test case nowiki}}
{{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 nowiki/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 nowiki |format=rows |output=nowiki+ |template=ombox |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

Main template {{Test case nowiki}}
{{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 nowiki/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 nowiki |format=rows |output=nowiki+ |template=Height |code=<nowiki>{{__TEMPLATENAME__|m=1.51}}</nowiki>}}

Main template {{Test case nowiki}}
{{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 nowiki/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 nowiki |format=tablerows |template1=tmbox |template2=ombox |template3=ombox/sandbox |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

Main template {{Test case nowiki}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
{{tmbox}}
{{ombox}}
{{ombox/sandbox}}
Sandbox template {{Test case nowiki/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 nowiki |format=tablerows |template1=tmbox |template2=ombox |template3=ombox/sandbox |showheader=no |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

Main template {{Test case nowiki}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
Sandbox template {{Test case nowiki/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 nowiki |format=tablerows |template1=tmbox |template2=ombox |template3=ombox/sandbox |caption=''caption'' |rowheader=''rowheader'' |heading0=''heading0'' |heading1=''heading1'' |heading2=''heading2'' |heading3=''heading3'' |before=''before'' |after=''after'' |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}}}</nowiki>

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

before

after
heading2 beforeafter
heading3 beforeafter
Sandbox template {{Test case nowiki/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
caption
heading1

before

after
heading2 beforeafter
heading3 beforeafter

Tablerows format with output=nowiki

[编辑]

{{Test case nowiki |format=tablerows |output=nowiki |template=ombox |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

Main template {{Test case nowiki}}
{{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 nowiki/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 nowiki |format=tablerows |output=nowiki+ |template=ombox |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

Main template {{Test case nowiki}}
{{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 nowiki/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 nowiki |format=tablerows |output=nowiki+ |template=Height |code=<nowiki>{{__TEMPLATENAME__|m=1.51}}</nowiki>}}

Main template {{Test case nowiki}}
{{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 nowiki/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

[编辑]

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.

{{Test case nowiki |format=inline |template1=tmbox |template2=ombox |template3=ombox/sandbox |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

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

Inline format with showcode=no

[编辑]

The inline format does not currently display headings (default or custom).

{{Test case nowiki |format=inline |showcode=no |template1=tmbox |template2=ombox |template3=ombox/sandbox |caption=''caption'' |rowheader=''rowheader'' |heading0=''heading0'' |heading1=''heading1'' |heading2=''heading2'' |heading3=''heading3'' |before=''before'' |after=''after'' |code=<nowiki>{{__TEMPLATENAME__|text=Lorem ipsum dolor sit amet}}</nowiki>}}

Main template {{Test case nowiki}}
  • before

after

  • beforeafter
  • beforeafter
Sandbox template {{Test case nowiki/sandbox}}
  • before

after

  • beforeafter
  • beforeafter

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 nowiki |format=inline |template1=Height |code=<nowiki>{{__TEMPLATENAME__|m=1.51}}</nowiki> |addline=<code><nowiki>{{Cvt|1.51|m|frac=2}}</nowiki></code> → {{Cvt|1.51|m|frac=2}} }}

Main template {{Test case nowiki}}
  • {{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 nowiki/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 nowiki |format=inline |output=nowiki |template=Height |code=<nowiki>{{__TEMPLATENAME__|m=1.51}}</nowiki>}}

Main template {{Test case nowiki}}
  • {{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 nowiki/sandbox}}
  • {{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>英寸)

Inline format with output=nowiki+

[编辑]

{{Test case nowiki |format=inline |output=nowiki+ |template=Height |code=<nowiki>{{__TEMPLATENAME__|m=1.51}}</nowiki>}}

Main template {{Test case nowiki}}
  • {{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 nowiki/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 nowiki |format=inline |prefix=# |template=Height |code=<nowiki>{{__TEMPLATENAME__|m=1.51}}</nowiki>}}

Main template {{Test case nowiki}}
  1. {{Height|m=1.51}} → 1.51米(4英尺1112英寸)
  2. {{Height/sandbox|m=1.51}} → 1.51米(4英尺1112英寸)
Sandbox template {{Test case nowiki/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 nowiki |format=inline |prefix=: |template=Height |code=<nowiki>{{__TEMPLATENAME__|m=1.51}}</nowiki>}}

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

Collapsible with default title

[编辑]

{{Test case nowiki |collapsible=yes |template=Height |code=<nowiki>{{__TEMPLATENAME__|m=1.51}}</nowiki>}}

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

{{Height}}

1.51米(4英尺1112英寸)

{{Height/sandbox}}

1.51米(4英尺1112英寸)

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

{{Height}}

1.51米(4英尺1112英寸)

{{Height/sandbox}}

1.51米(4英尺1112英寸)

Collapsible with "title" parameter

[编辑]

{{Test case nowiki |collapsible=yes |title=Testing height template |template=Height |code=<nowiki>{{__TEMPLATENAME__|m=1.51}}</nowiki>}}

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

{{Height}}

1.51米(4英尺1112英寸)

{{Height/sandbox}}

1.51米(4英尺1112英寸)

Sandbox template {{Test case nowiki/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 nowiki |collapsible=yes |titlecode=yes |showcode=no |template=Height |code=<nowiki>{{__TEMPLATENAME__|m=1.51}}</nowiki>}}

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

{{Height}}

1.51米(4英尺1112英寸)

{{Height/sandbox}}

1.51米(4英尺1112英寸)

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

{{Height}}

1.51米(4英尺1112英寸)

{{Height/sandbox}}

1.51米(4英尺1112英寸)

Hyphen prefix inside nowiki tag

[编辑]

{{Test case nowiki |collapsible=yes |showcode=yes |template=period start |code=<nowiki>-{{__TEMPLATENAME__|Silurian}}</nowiki>}}

Main template {{Test case nowiki}}
-&#123;{period start|Silurian}}

{{period start}}

-{{period start|Silurian}}

{{period start/sandbox}}

-{{period start/sandbox|Silurian}}

Sandbox template {{Test case nowiki/sandbox}}
-&#123;{period start|Silurian}}

{{period start}}

-{{period start|Silurian}}

{{period start/sandbox}}

-{{period start/sandbox|Silurian}}

參見

[编辑]