Template:Ombox/doc:修订间差异
删除的内容 添加的内容
创建 Template:Ombox/doc 文档 |
从 zhwiki 适配完整文档,追加 Uses TemplateStyles 声明 |
||
| (未显示同一用户的3个中间版本) | |||
第1行:
{{Mbox templates}}▼
{{Documentation subpage}}
{{Uses Lua|Module:Message box}}
{{Uses TemplateStyles|Module:Message box/ombox.css}}
'''{{tlx|Ombox}}'''(Other pages message
== 常用参数 ==
第10行 ⟶ 第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>image</code> || 自定义图标(<code>none</code> 则不显示图片)
|-
| <code>
|-
| <code>
|-
| <code>textstyle</code> || 文字单元格的 CSS 样式
|-
| <code>text</code> || 消息正文
|-
| <code>small</code> || <code>yes</code> 时显示为小型右浮框
|}
==
{{Ombox|type=
{{Ombox|type=
{{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>
== 参见 ==
▲{{Mbox templates}}
* {{tlx|Ambox}} — 条目消息框
* {{tlx|Tmbox}} — 讨论页消息框
* {{tlx|Imbox}} — 文件页消息框
* {{tlx|Cmbox}} — 分类消息框
* {{tlx|Fmbox}} — 页眉和页脚消息框
* {{tlx|Mbox}} — 自动检测命名空间
| |||