Template:Ombox/doc:修订间差异
外观
删除的内容 添加的内容
移除参见段重复的 Mbox templates |
小 →参见 |
||
| (未显示2个用户的4个中间版本) | |||
| 第1行: | 第1行: | ||
| ⚫ | |||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
{{Uses Lua|Module:Message box}} |
{{Uses Lua|Module:Message box}} |
||
{{Uses TemplateStyles|Module:Message box/ombox.css}} |
|||
| ⚫ | |||
'''{{tlx|Ombox}}'''(Other pages message |
'''{{tlx|Ombox}}'''(Other pages message box,其他页面信息框)是用于未被 {{tlx|Ambox}}、{{tlx|Tmbox}}覆盖的名字空间(用户页、Wikipedia、MediaWiki、模板、帮助、Portal 等)以及未来新名字空间的信息框元模板。它'''不应'''用于条目、讨论页、文件页或分类页面。 |
||
== 常用参数 == |
== 常用参数 == |
||
| 第11行: | 第12行: | ||
| <code>type</code> || <code>speedy</code> / <code>delete</code> / <code>content</code> / <code>style</code> / <code>notice</code> / <code>move</code> / <code>protection</code> |
| <code>type</code> || <code>speedy</code> / <code>delete</code> / <code>content</code> / <code>style</code> / <code>notice</code> / <code>move</code> / <code>protection</code> |
||
|- |
|- |
||
| <code>image</code> || 自定义图标 |
| <code>image</code> || 自定义图标(<code>none</code> 则不显示图片) |
||
|- |
|- |
||
| <code> |
| <code>imageright</code> || 右侧图片 |
||
|- |
|- |
||
| <code> |
| <code>style</code> || 整个信息框的 CSS 样式 |
||
|- |
|||
| <code>textstyle</code> || 文字单元格的 CSS 样式 |
|||
|- |
|||
| <code>text</code> || 消息正文 |
|||
|- |
|||
| <code>small</code> || <code>yes</code> 时显示为小型右浮框 |
|||
|} |
|} |
||
== |
== type 类型 == |
||
{{Ombox|type= |
{{Ombox|type=speedy|text=type=<u>speedy</u> 快速删除}} |
||
{{Ombox|type= |
{{Ombox|type=delete|text=type=<u>delete</u> 删除}} |
||
{{Ombox|type=content|text=type=<u>content</u> 内容问题}} |
|||
{{Ombox|type=style|text=type=<u>style</u> 格式问题}} |
|||
{{Ombox|type=notice|text=type=<u>notice</u> 默认值}} |
|||
{{Ombox|type=move|text=type=<u>move</u> 移动/合并提议}} |
|||
{{Ombox|type=protection|text=type=<u>protection</u> 页面保护}} |
|||
== 参数说明 == |
|||
<syntaxhighlight lang="wikitext"> |
|||
{{ombox |
|||
| type = speedy / delete / content / style / notice / move / protection |
|||
| image = none / [[File:Some image.svg|40px]] |
|||
| imageright = [[File:Some image.svg|40px]] |
|||
| style = CSS 取值 |
|||
| textstyle = CSS 取值 |
|||
| text = 消息正文 |
|||
| small = {{{small|}}} / yes |
|||
}} |
|||
</syntaxhighlight> |
|||
== 参见 == |
== 参见 == |
||
* {{tlx|Ambox}} — 条目消息框 |
* {{tlx|Ambox}} — 条目消息框 |
||
* {{tlx|Tmbox}} — 讨论页消息框 |
|||
* {{tlx|Fmbox}} — 页眉和页脚消息框 |
|||
* {{tlx|Mbox}} — 自动检测命名空间 |
* {{tlx|Mbox}} — 自动检测命名空间 |
||
2026年8月7日 (五) 11:32的最新版本
此页面是Template:Ombox的文档子页面。
此页面可能包含了使用说明、分类和其他内容,这些内容不属于原始Template页面。
此页面可能包含了使用说明、分类和其他内容,这些内容不属于原始Template页面。
此模板基于以下Lua语言模块编写:
本模板使用以下模板样式:
{{Ombox}}(Other pages message box,其他页面信息框)是用于未被 {{Ambox}}、{{Tmbox}}覆盖的名字空间(用户页、Wikipedia、MediaWiki、模板、帮助、Portal 等)以及未来新名字空间的信息框元模板。它不应用于条目、讨论页、文件页或分类页面。
常用参数
| 参数 | 说明 |
|---|---|
type |
speedy / delete / content / style / notice / move / protection
|
image |
自定义图标(none 则不显示图片)
|
imageright |
右侧图片 |
style |
整个信息框的 CSS 样式 |
textstyle |
文字单元格的 CSS 样式 |
text |
消息正文 |
small |
yes 时显示为小型右浮框
|
type 类型
type=speedy 快速删除
type=delete 删除
type=content 内容问题
type=style 格式问题
type=notice 默认值
type=move 移动/合并提议
type=protection 页面保护
参数说明
{{ombox
| type = speedy / delete / content / style / notice / move / protection
| image = none / [[File:Some image.svg|40px]]
| imageright = [[File:Some image.svg|40px]]
| style = CSS 取值
| textstyle = CSS 取值
| text = 消息正文
| small = {{{small|}}} / yes
}}
参见