{{#ifeq:模板|User||{{#ifexist:{{#if:

 | {{#if: {{#titleparts:{{#if:|{{{1}}}|模板:Mbox/testcases}}|-1}}
   | {{#titleparts:{{#if:|{{{1}}}|模板:Mbox/testcases}}|-1}}
   | {{#if:|{{{1}}}|模板:Mbox/testcases}}
   }}
 | {{#if:|{{{1}}}|模板:Mbox/testcases}}

}}||模板:Db-g8}}}}

demospace not set编辑

{{mbox|text=some text}}

Sandbox

{{mbox/sandbox|text=some text}}

demospace=talk编辑

Main

{{mbox|demospace=talk|text=some text}}

Sandbox

{{mbox/sandbox|demospace=talk|text=some text}}

demospace=wikipedia编辑

Main

{{mbox|demospace=wikipedia|text=some text}}

Sandbox

{{mbox/sandbox|demospace=wikipedia|text=some text}}

demospace=file编辑

Main

{{mbox|demospace=file|text=some text}}

Sandbox

{{mbox/sandbox|demospace=file|text=some text}}

demospace=category编辑

Main

{{mbox|demospace=category|text=some text}}

Sandbox

{{mbox/sandbox|demospace=category|text=some text}}

demospace=template编辑

Main

{{mbox|demospace=template|text=some text}}

Sandbox

{{mbox/sandbox|demospace=template|text=some text}}

demospace=wikipedia talk编辑

Main

{{mbox|demospace=wikipedia talk|text=some text}}

Sandbox

{{mbox/sandbox|demospace=wikipedia talk|text=some text}}

demospace=portal编辑

Main

{{mbox|demospace=portal|text=some text}}

Sandbox

{{mbox/sandbox|demospace=portal|text=some text}}

demospace=foo编辑

Main

{{mbox|demospace=foo|text=some text}}

Sandbox

{{mbox/sandbox|demospace=foo|text=some text}}