Template:Mbox/doc:修订间差异
删除的内容 添加的内容
从 zhwiki 适配完整文档,追加 Uses TemplateStyles 声明(全部 6 个 CSS) |
从求闻适配 Mbox 文档(移除求闻特有 delcat/NoteTA 等,样例改 nocat=true,分类对齐中医百科) |
||
第1行:
{{uses Lua|Module:Message box}}
{{uses TemplateStyles|MediaWiki:Gadget-SiteCommon.css}}
{{Mbox templates}}
'''{{tl|Mbox}}''' 是一個元模板(在其他模板中引用的模板)。使用本模板將產生一個橫幅訊息框,並可在各種不同類型的頁面使用,無需手動變更橫幅訊息框的樣式,模板能偵測其所在的名字空間,並自動選擇適合的模板样式使用。
== 參數 ==
以下列出本模板的所有參數:
<pre>-{}-
{{Mbox
| demospace = {{{demospace|}}} / main / talk / file / category / other
| type = speedy / delete / content / style / notice / move / protection
| image =
| imageright = 可留空 / [[File:
| style = 可留空 / CSS 代
| textstyle = 可留空 / CSS 代
| text =
| small = {{{small|}}} / left / yes
| smallimage =
| smallimageright =
| smalltext = 一段以較小
}}
</pre>
請注意:
在条目空间中,mbox模板的特殊用法,参见[[Template:Ambox/doc]]。
在非条目、非讨论页空间中,Ombox模板右侧“快捷方式”的特殊用法,参见[[Template:Mbox/shortcut|Template:Ombox/shortcut]]。
==
{{Mbox
| type = speedy
| nocat = true
| text = type=<u>speedy</u>-请求快速刪除,如 {{tl|delete}}。
}}
{{Mbox
| type = delete
| nocat = true
| text = type=<u>delete</u>-请求删除,如 {{tl|afd}} 与 {{tl|vfd}} 。
}}
{{Mbox
| type = content
| nocat = true
| text = type=<u>content</u>-内容问题,如 {{tl|POV}} 与 {{tl|globalize}} 。
}}
{{Mbox
| type = style
| nocat = true
| text = type=<u>style</u>-格式问题,如 {{tl|cleanup}} 与 {{tl|wikify}}。
}}
{{Mbox
| type = move
| nocat = true
| text = type=<u>move</u>-合并、拆分及跨维基提议,如 {{tl|split}} 与 {{tl|splitsection}}。
}}
{{Mbox
| type = protection
| nocat = true
| text = type=<u>protection</u>-页面保护,如 {{tl|Protected}}。
}}
{{Mbox
| type = notice
| nocat = true
| text = type=<u>notice</u>-条目注意,如 {{tl|current}} 与 {{tl|inuse}}。
}}
=== 特定领域 ===
==== 方针 ====
{{Mbox
| type = policy
| nocat = true
| text = type=<u>policy</u>-通用方针。
}}
{{Mbox
| type = guideline
| nocat = true
| text = type=<u>guideline</u>-专用方针。
}}
{{Mbox
| type = rule
| nocat = true
| text = type=<u>rule</u>-一般方针。
}}
{{Mbox
| type = draft
| nocat = true
| text = type=<u>draft</u>-草稿。
}}
==== 文件 ====
{{Mbox
| type = license
| nocat = true
| text = type=<u>license</u>-文件许可证,需要搭配相应的<u>class=</u>使用;参见{{tl|Style formatting license template}}。
}}
{{Mbox
| type = license
| class = license-pd
| nocat = true
| text = type=<u>license</u>、<u>class=license-pd</u>-公有领域许可证。
}}
{{Mbox
| type = license
| class = license-cc
| nocat = true
| text = type=<u>license</u>、<u>class=license-cc</u>-知识共享许可证。
}}
{{Mbox
| type = license
| class = license-free
| nocat = true
| text = type=<u>license</u>、<u>class=license-free</u>-自由许可证。
}}
{{Mbox
| type = license
| class = license-nonfree
| nocat = true
| text = type=<u>license</u>、<u>class=license-nonfree</u>-非自由文件版权理据。
}}
{{Mbox
| type = license
| class = license-other
| nocat = true
| text = type=<u>license</u>、<u>class=license-other</u>-其他版权理据。
}}
=== 其他 ===
{{Mbox
| type = featured
| nocat = true
| text = type=<u>featured</u>-优秀内容(用于优秀文件页面、优秀条目讨论页)。
}}
{{Mbox
| class = mbox-setindex
| image = [[File:DAB_list_gray.svg|80px]]
| nocat = true
| text = type=<u>setindex</u>、type=<u>disambig</u>-目录内容、消歧义内容。
}}
== 參見 ==
{{Mbox templates see also}}<includeonly>{{sandbox other||
[[Category:消息框模板]]
}}</includeonly>
| |||