Template:Info:修订间差异
模板页面
更多操作
OctoberSama(留言 | 贡献) 小 |
|||
| 第1行: | 第1行: | ||
<includeonly><div class="infoTop {{{class|}}}" style="{{#ifeq:{{{type|}}}|middle|display:flow-root;}}{{#switch:{{{type|none}}}|middle|none={{#if:{{{width|}}}|width:{{{width}}};}}}}max-width:100%;border-left: | <includeonly><div class="ottowiki-toppop-container infoTop {{{class|}}}" style="{{#ifeq:{{{type|}}}|middle|display:flow-root;}}{{#switch:{{{type|none}}}|middle|none={{#if:{{{width|}}}|width:{{{width}}};}}}}max-width:100%;border-left: 6px solid {{{border|{{{color|#3c8dbc}}}}}};"> | ||
{{#if:{{{ | <div class="ottowiki-toppop-content infoTopContent" style=" | ||
</div></div></includeonly><noinclude>{{ | margin: 1.4em auto -2px; | ||
width: {{{宽度|{{{width|75%}}}}}; | |||
box-shadow: 0 1px 5px rgba(0,0,0,.06); | |||
border-radius: 5px; | |||
background-color: var(--background-color-base); | |||
display: flex; | |||
align-items: center; | |||
border: 1px solid #AAA; | |||
background-color: {{{背景色|{{{backgroundColor|transparent}}}}}; | |||
color: {{{文字颜色|var(--color-base)}}}; | |||
font-size: {{{大小|100%}}};"> | |||
{{#if:{{{图片|{{{leftimage|}}}}}}| | |||
<div class="ottowiki-toppop-icon infoTopIcon" style=" | |||
width: {{{左框大小|55}}}px; | |||
padding: {{{左框padding|2}}}px; | |||
text-align: center; | |||
border-right: 1px solid #AAA; | |||
flex-shrink: 0; | |||
{{{icon-style|}}}"> | |||
[[文件:{{{图片|{{{leftimage|小莫问号.png}}}}}}|{{{图片大小|{{#if:{{{smallimage|}}}|25px|50px}}}}}}px|link={{{link|}}}]] | |||
</div> | |||
}} | |||
<div class="ottowiki-toppop-text infoTopText" style=" | |||
padding: {{{右框padding-1|5}}}px {{{右padding-2|20}}}px; | |||
{{#if:{{{图片|{{{leftimage|}}}}}}| |padding-left: 22px;}} | |||
flex-grow: 1; | |||
{{{text-style|}}} | |||
{{{content-style|}}}"> | |||
{{#if:{{{标题|{{{title|}}}}}}| | |||
<b class="infoTopTitle" style="display: block; font-size: 1em; margin-bottom: 2px; {{{title-style|}}}">{{{标题|{{{title|信息}}}}}}</b> | |||
}} | |||
<div style="font-size: {{{内容大小|95%}}};{{#if:{{{图片|{{{leftimage|}}}}}}|margin: 2px 0 2px 25px;|margin: 2px 0 2px 0px;}}"> | |||
{{{内容|{{{text|{{{content|{{{1|这是一个提示框!}}}}}}}}}}}} | |||
</div> | |||
{{#if:{{{below|}}}|<div class="infoTopBelow" style="{{{below-style|}}}">{{{below}}}</div>}} | |||
</div> | |||
</div></div></includeonly> | |||
<noinclude> | |||
<templatedata>{ | |||
"params": { | |||
"背景色": { | |||
"description": "背景颜色", | |||
"default": "transparent", | |||
"aliases": ["backgroundColor"] | |||
}, | |||
"文字颜色": { | |||
"description": "文字颜色", | |||
"aliases": ["text-color"] | |||
}, | |||
"左框大小": { | |||
"description": "左侧图标框宽度", | |||
"aliases": ["icon-width"] | |||
}, | |||
"左框padding": { | |||
"description": "左侧图标框内边距", | |||
"aliases": ["icon-padding"] | |||
}, | |||
"图片": { | |||
"description": "左侧图标文件", | |||
"aliases": ["leftimage", "image"] | |||
}, | |||
"图片大小": { | |||
"description": "图标尺寸", | |||
"aliases": ["smallimage", "image-size"] | |||
}, | |||
"右框padding-1": { | |||
"description": "右侧内容框垂直内边距", | |||
"aliases": ["content-padding-vertical"] | |||
}, | |||
"右padding-2": { | |||
"description": "右侧内容框水平内边距", | |||
"aliases": ["content-padding-horizontal"] | |||
}, | |||
"标题": { | |||
"description": "提示框标题", | |||
"required": true, | |||
"aliases": ["title"] | |||
}, | |||
"内容": { | |||
"description": "提示框内容", | |||
"required": true, | |||
"aliases": ["text", "content", "1"] | |||
}, | |||
"大小": { | |||
"description": "字体大小", | |||
"aliases": ["font-size"] | |||
}, | |||
"内容大小": { | |||
"description": "内容文字大小", | |||
"aliases": ["content-font-size"] | |||
}, | |||
"宽度": { | |||
"description": "提示框宽度", | |||
"aliases": ["width"] | |||
}, | |||
"border": { | |||
"description": "左侧边框颜色", | |||
"aliases": ["color"] | |||
}, | |||
"link": { | |||
"description": "图标链接" | |||
}, | |||
"type": { | |||
"description": "模板类型,用于多模板合并功能" | |||
}, | |||
"class": { | |||
"description": "自定义CSS类" | |||
}, | |||
"below": { | |||
"description": "底部额外内容" | |||
}, | |||
"title-style": { | |||
"description": "标题自定义样式" | |||
}, | |||
"icon-style": { | |||
"description": "图标自定义样式" | |||
}, | |||
"text-style": { | |||
"description": "文本自定义样式" | |||
}, | |||
"content-style": { | |||
"description": "内容自定义样式" | |||
}, | |||
"below-style": { | |||
"description": "底部内容自定义样式" | |||
} | |||
} | |||
}</templatedata> | |||
</noinclude> | |||
<noinclude> | |||
[[分类:元模板]] | |||
</noinclude> | |||
2025年10月23日 (四) 14:20的版本
无描述。
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| 背景色 | 背景色 backgroundColor | 背景颜色
| 未知 | 可选 |
| 文字颜色 | 文字颜色 text-color | 文字颜色 | 未知 | 可选 |
| 左框大小 | 左框大小 icon-width | 左侧图标框宽度 | 未知 | 可选 |
| 左框padding | 左框padding icon-padding | 左侧图标框内边距 | 未知 | 可选 |
| 图片 | 图片 leftimage image | 左侧图标文件 | 未知 | 可选 |
| 图片大小 | 图片大小 smallimage image-size | 图标尺寸 | 未知 | 可选 |
| 右框padding-1 | 右框padding-1 content-padding-vertical | 右侧内容框垂直内边距 | 未知 | 可选 |
| 右padding-2 | 右padding-2 content-padding-horizontal | 右侧内容框水平内边距 | 未知 | 可选 |
| 标题 | 标题 title | 提示框标题 | 未知 | 必需 |
| 内容 | 内容 text content 1 | 提示框内容 | 未知 | 必需 |
| 大小 | 大小 font-size | 字体大小 | 未知 | 可选 |
| 内容大小 | 内容大小 content-font-size | 内容文字大小 | 未知 | 可选 |
| 宽度 | 宽度 width | 提示框宽度 | 未知 | 可选 |
| border | border color | 左侧边框颜色 | 未知 | 可选 |
| link | link | 图标链接 | 未知 | 可选 |
| type | type | 模板类型,用于多模板合并功能 | 未知 | 可选 |
| class | class | 自定义CSS类 | 未知 | 可选 |
| below | below | 底部额外内容 | 未知 | 可选 |
| title-style | title-style | 标题自定义样式 | 未知 | 可选 |
| icon-style | icon-style | 图标自定义样式 | 未知 | 可选 |
| text-style | text-style | 文本自定义样式 | 未知 | 可选 |
| content-style | content-style | 内容自定义样式 | 未知 | 可选 |
| below-style | below-style | 底部内容自定义样式 | 未知 | 可选 |