Template:Notice:修订间差异
外观
删除的内容 添加的内容
创建页面,内容为“<div style=" padding: 12px 18px; margin: 10px 0; border: 1px solid #f0c674; border-left: 5px solid #f0c674; background-color: #fffcf0; color: #333; border-radius: 4px; "> {{{1|提示内容}}} </div>” |
IdleTap-bot(留言 | 贡献) 导入自求闻百科 |
||
| 第1行: | 第1行: | ||
{{Mbox |
|||
<div style=" |
|||
| name = Notice |
|||
padding: 12px 18px; |
|||
| style = {{{style|}}} |
|||
margin: 10px 0; |
|||
| textstyle = {{{textstyle|}}} |
|||
border: 1px solid #f0c674; |
|||
| subst = <includeonly>{{subst:substcheck}}</includeonly> |
|||
border-left: 5px solid #f0c674; |
|||
| demospace = {{{demospace|}}} |
|||
background-color: #fffcf0; |
|||
| image = {{#if:{{{image|}}}|[[File:{{{image}}}|40px|Notice]]}} |
|||
color: #333; |
|||
| small = {{{small|}}} |
|||
border-radius: 4px; |
|||
| smallimage = {{#if:{{{image|}}}|[[File:{{{image}}}|30px|Notice]]}} |
|||
"> |
|||
| imageright = {{#if:{{{imageright|}}}|{{{imageright|}}}|{{#if:{{{shortcut|{{{shortcut1|}}}}}}|{{Ombox/shortcut|{{{shortcut|{{{shortcut1|}}}}}}|{{{shortcut2|}}}|{{{shortcut3|}}}|{{{shortcut4|}}}|{{{shortcut5|}}} }} }} }} |
|||
{{{1|提示内容}}} |
|||
| text = {{#if:{{{header|{{{heading|}}}}}}|<div style="text-align: center">'''{{{header|{{{heading}}}}}}'''</div>}}{{{text|{{{1}}}}}} |
|||
</div> |
|||
}}<noinclude> |
|||
{{Documentation}} |
|||
</noinclude> |
|||
2026年8月3日 (一) 16:07的最新版本
使用時機與位置
[编辑源代码]本模板應在重要的評論或意見,並且無法找到更適合的模板時才可使用。較不重要的一般討論意見應該使用正常的方式發表。
使用方式
[编辑源代码]{{Notice|文字}}
完全形式
[编辑源代码]{{Notice|内容,必填
|style=可留空 / CSS 代码
|textstyle=可留空 / CSS 代码
|demospace=可留空 命名空间 main / talk / file / category / other
|image=可留空,直接填写名称
|small=可留空 left / yes
|imageright=可留空,直接填写名称
|header(或heading)=可留空
}}
例如
[编辑源代码]{{Notice|本模板應在'''重要'''的評論或意見,並且無法找到更適合的模板時才可使用。較不重要的一般討論意見應該使用正常的方式發表。}}
參見
[编辑源代码]
无描述。
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| 正文内容 | 1 text | 正文部分的内容
| 未知 | 必需 |
| 额外样式 | style | CSS代码
| 未知 | 可选 |
| 文本样式 | textstyle | CSS代码
| 未知 | 可选 |
| 命名空间 | demospace | 命名空间
| 未知 | 可选 |
| 左侧图片 | image | 左侧图片内容
| 未知 | 可选 |
| 小型模板? | small | 如果是小模板,填上
| 未知 | 可选 |
| 右侧图片 | imageright | 右侧图片
| 未知 | 可选 |
| 标题 | header heading | 标题内容
| 未知 | 可选 |