模板:Ombox/doc
Â{{#if: |
{{#if:x||
}} |{{#ifeq: doc | doc
|
{{
#ifeq: show | show
| {{
{{#switch:
{{#if:
|
| {{#ifeq:模板|
| main
| {{#ifeq:模板|模板討論
| talk
| 模板
}}
}}
}}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | image = ombox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}}
| type = notice
| image = 40px
| imageright =
| class =
| style =
| textstyle =
| text = 本-{zh-cn:文档; zh-tw:文件;}-是模板:Ombox的-{zh-cn:文档; zh-tw:文件;}-子页面(见{{ #if: 模板 | 模板:subjectspace zh | 条目 }}页自身)。
本页包含用法-{zh-cn:信息; zh-tw:資訊;}-、分类和其他非原{{ #if: 模板 |模板:subjectspace zh页面|条目}}的内容。
| small =
| smallimage =
| smallimageright =
| smalltext =
| subst =
| date =
| name =
| textconvert=
}}
}}{{
#if:
|
| [[Category:{{
#if: 模板
| 模板:SUBJECTSPACE ZH
|條目
}}說明文件]]
}}
| }} }}
{{
{{#switch:
{{#if:
|
| {{#ifeq:模板|
| main
| {{#ifeq:模板|模板討論
| talk
| 模板
}}
}}
}}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | image = ombox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}} | type = | image = | imageright = | class = | style = | textstyle = | text = 此模板有用于界面消息。请不要在源码中使用任何字词转换语法。 | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = | textconvert= }}
This is the {{[[{{#switch:
|#default = Ombox/core
| =
{{#ifeq: |
| Template:ombox/core
| Ombox/core
}}
}}|ombox/core]]{{#if:||{{{arg}}}}}}} helper meta-template.
Do not use this template directly, use {{[[{{#switch:
|#default = Ombox
| =
{{#ifeq: |
| Template:ombox
| Ombox
}}
}}|ombox]]{{#if:||{{{arg}}}}}}} instead.
This template is called from {{[[{{#switch:
|#default = Ombox
| =
{{#ifeq: |
| Template:ombox
| Ombox
}}
}}|ombox]]{{#if:||{{{arg}}}}}}}. It holds most of the code for 模板:Tlf, while 模板:Tlf does parameter preprocessing. Thus simplifying the code in 模板:Tlf.
For more documentation see {{[[{{#switch:
|#default = Ombox
| =
{{#ifeq: |
| Template:ombox
| Ombox
}}
}}|ombox]]{{#if:||{{{arg}}}}}}}.
参见
在訊息框(mbox)家族中有好几个元模板:
- {{[[{{#switch:
|#default = Ambox
| =
{{#ifeq: |
| Template:ambox
| Ambox
}}
}}|ambox]]{{#if:||{{{arg}}}}}}} – 用于条目訊息框。
- {{[[{{#switch:
|#default = Tmbox
| =
{{#ifeq: |
| Template:tmbox
| Tmbox
}}
}}|tmbox]]{{#if:||{{{arg}}}}}}} – 用于讨论页訊息框。
- {{[[{{#switch:
|#default = Imbox
| =
{{#ifeq: |
| Template:imbox
| Imbox
}}
}}|imbox]]{{#if:||{{{arg}}}}}}} – 用于图像页訊息框。
- {{[[{{#switch:
|#default = Cmbox
| =
{{#ifeq: |
| Template:cmbox
| Cmbox
}}
}}|cmbox]]{{#if:||{{{arg}}}}}}} – 用于分类訊息框。
- {{[[{{#switch:
|#default = Ombox
| =
{{#ifeq: |
| Template:ombox
| Ombox
}}
}}|ombox]]{{#if:||{{{arg}}}}}}} – 用于其他页面訊息框。
- {{[[{{#switch:
|#default = Mbox
| =
{{#ifeq: |
| Template:mbox
| Mbox
}}
}}|mbox]]{{#if:||{{{arg}}}}}}} – 有名字空间探测功能。某些消息框会用在几类页面并因此需要依据所用在的页面来改变风格,这种情况下的消息框可以用此元模板。
有相近关系的元模板:
- {{[[{{#switch:
|#default = Fmbox
| =
{{#ifeq: |
| Template:fmbox
| Fmbox
}}
}}|fmbox]]{{#if:||{{{arg}}}}}}} – 用于页眉和页脚訊息框。
- {{[[{{#switch:
|#default = Dmbox
| =
{{#ifeq: |
| Template:dmbox
| Dmbox
}}
}}|dmbox]]{{#if:||{{{arg}}}}}}} – 用于消歧义以及设定索引訊息框。
- {{[[{{#switch:
|#default = Asbox
| =
{{#ifeq: |
| Template:asbox
| Asbox
}}
}}|asbox]]{{#if:||{{{arg}}}}}}} – 用于小作品訊息框。