跳转到内容

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}}

'"`UNIQ--templatestyles-00000069-QINU`"''"`UNIQ--templatestyles-0000006B-QINU`"'<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}}

'"`UNIQ--templatestyles-0000006D-QINU`"''"`UNIQ--templatestyles-0000006F-QINU`"'<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}}

'"`UNIQ--templatestyles-00000074-QINU`"''"`UNIQ--templatestyles-00000076-QINU`"'<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}}

'"`UNIQ--templatestyles-00000078-QINU`"''"`UNIQ--templatestyles-0000007A-QINU`"'<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}}

'"`UNIQ--templatestyles-00000081-QINU`"''"`UNIQ--templatestyles-00000083-QINU`"'<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}}

'"`UNIQ--templatestyles-00000085-QINU`"''"`UNIQ--templatestyles-00000087-QINU`"'<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}}

'"`UNIQ--templatestyles-0000008C-QINU`"''"`UNIQ--templatestyles-0000008E-QINU`"'<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}}

'"`UNIQ--templatestyles-00000090-QINU`"''"`UNIQ--templatestyles-00000092-QINU`"'<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英寸)

1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<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英寸)

1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<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
beforeafter
beforeafter
beforeafter
Sandbox template {{Test case nowiki/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
caption
heading0heading1heading2heading3
rowheader
beforeafter
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}}
'"`UNIQ--templatestyles-00000121-QINU`"''"`UNIQ--templatestyles-00000123-QINU`"'<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> '"`UNIQ--templatestyles-00000125-QINU`"''"`UNIQ--templatestyles-00000127-QINU`"'<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}}
'"`UNIQ--templatestyles-0000012C-QINU`"''"`UNIQ--templatestyles-0000012E-QINU`"'<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> '"`UNIQ--templatestyles-00000130-QINU`"''"`UNIQ--templatestyles-00000132-QINU`"'<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}}
'"`UNIQ--templatestyles-00000139-QINU`"''"`UNIQ--templatestyles-0000013B-QINU`"'<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>
'"`UNIQ--templatestyles-0000013D-QINU`"''"`UNIQ--templatestyles-0000013F-QINU`"'<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}}
'"`UNIQ--templatestyles-00000144-QINU`"''"`UNIQ--templatestyles-00000146-QINU`"'<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>
'"`UNIQ--templatestyles-00000148-QINU`"''"`UNIQ--templatestyles-0000014A-QINU`"'<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英寸)
1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<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英寸)
1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<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
beforeafter
heading2
beforeafter
heading3
beforeafter
Sandbox template {{Test case nowiki/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
caption
heading1
beforeafter
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}}
'"`UNIQ--templatestyles-000001B9-QINU`"''"`UNIQ--templatestyles-000001BB-QINU`"'<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}}
'"`UNIQ--templatestyles-000001BD-QINU`"''"`UNIQ--templatestyles-000001BF-QINU`"'<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}}
'"`UNIQ--templatestyles-000001C4-QINU`"''"`UNIQ--templatestyles-000001C6-QINU`"'<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}}
'"`UNIQ--templatestyles-000001C8-QINU`"''"`UNIQ--templatestyles-000001CA-QINU`"'<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}}
'"`UNIQ--templatestyles-000001D1-QINU`"''"`UNIQ--templatestyles-000001D3-QINU`"'<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}}
'"`UNIQ--templatestyles-000001D5-QINU`"''"`UNIQ--templatestyles-000001D7-QINU`"'<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}}
'"`UNIQ--templatestyles-000001DC-QINU`"''"`UNIQ--templatestyles-000001DE-QINU`"'<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}}
'"`UNIQ--templatestyles-000001E0-QINU`"''"`UNIQ--templatestyles-000001E2-QINU`"'<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英寸)
1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<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英寸)
1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<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 beforeafter
heading2 beforeafter
heading3 beforeafter
Sandbox template {{Test case nowiki/sandbox}}
{{tmbox|text=Lorem ipsum dolor sit amet}}
caption
heading1 beforeafter
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}} '"`UNIQ--templatestyles-00000251-QINU`"''"`UNIQ--templatestyles-00000253-QINU`"'<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}} '"`UNIQ--templatestyles-00000255-QINU`"''"`UNIQ--templatestyles-00000257-QINU`"'<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}} '"`UNIQ--templatestyles-0000025C-QINU`"''"`UNIQ--templatestyles-0000025E-QINU`"'<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}} '"`UNIQ--templatestyles-00000260-QINU`"''"`UNIQ--templatestyles-00000262-QINU`"'<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}}
'"`UNIQ--templatestyles-00000269-QINU`"''"`UNIQ--templatestyles-0000026B-QINU`"'<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}}
'"`UNIQ--templatestyles-0000026D-QINU`"''"`UNIQ--templatestyles-0000026F-QINU`"'<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}}
'"`UNIQ--templatestyles-00000274-QINU`"''"`UNIQ--templatestyles-00000276-QINU`"'<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}}
'"`UNIQ--templatestyles-00000278-QINU`"''"`UNIQ--templatestyles-0000027A-QINU`"'<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英寸)
1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<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英寸)
1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<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}}
  • beforeafter
  • beforeafter
  • beforeafter
Sandbox template {{Test case nowiki/sandbox}}
  • beforeafter
  • 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}} → 1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<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}} → 1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<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英寸)
    1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<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英寸)
    1.51-{zh:米;zh-cn:米;zh-tw:公尺;zh-hk:米;}-(4英尺<span class="frac nowrap">11<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}}

參見

[编辑]