Template:提示:修订间差异

来自Arcaea中文维基
(创建页面,内容为“{{#switch:{{{2}}} |提醒={{ 模板:页面提示框 | type = normal | style = band | width = 80% | text = {{{1}}} }} |注意={{ 模板:页面提示框 | type = warni…”)
 
无编辑摘要
第1行: 第1行:
{{#switch:{{{2}}}
{{#switch:{{{2}}}
|提醒={{ 模板:页面提示框 | type = normal | style = band | width = 80% | text = {{{1}}} }}
|提醒={{ 模板:页面提示框 | type = normal | style = band | width = 80% | text = {{icon|icon=remind color|text={{{1}}} }} }}
|注意={{ 模板:页面提示框 | type = warning| style = band | width = 80% | text = {{{1}}} }}
|注意={{ 模板:页面提示框 | type = warning| style = band | width = 80% | text = {{icon|icon=warning color|text={{{1}}} }} }}
|警告={{ 模板:页面提示框 | type = error  | style = band | width = 80% | text = {{{1}}} }}
|警告={{ 模板:页面提示框 | type = error  | style = band | width = 80% | text = {{icon|icon=warring color|text={{{1}}} }} }}
|   ={{ 模板:页面提示框 | type = normal | style = band | width = 80% | text = {{{1}}} }}
|={{ 模板:页面提示框 | type = normal | style = band | width = 80% | text = {{icon|icon=remind|text={{{1}}} }} }}
}}<noinclude>{{Documentation}}</noinclude>
}}<noinclude>{{Documentation}}</noinclude>

2020年8月9日 (日) 23:48的版本

模板文档[查看] [编辑] [历史] [清除缓存]

本模板是通常而言对于自定义内容提示框使用的模板,由模板:Ombox实现。

参数

参数 填写 效果 选择
content/text/内容/第一个参数 内容 提示框的内容 必填
template 见下固定样式模板名 见下固定样式模板 可选
style 见下常用自定义css样式 提示框的样式 可选
textstyle 内容style 内部文字的样式 可选
class class 提示框的class 可选
图片 文件链接 或 none 修改或删除图片显示 可选
缩小 可选值:left 把提示框缩小置左 可选

内置的固定样式模板

类型 效果及模板名
颜色




常用自定义css样式

样式名 代码 实际效果 说明
圆角 border-radius: 8px; 修改数字可调整圆角大小
宽度 width: 320px; 修改数字可调整宽度,也可使用80%百分比以指定相对父元素的宽度占比,或使用auto以自适应内容宽度
背景颜色 background-color: #66ccff; 使用颜色名称,16进制颜色值,也可使用类似 rgba(0,0,0,0.1) 以调整背景透明度
边框样式 border: 3px solid #ec870e; 三个参数分别为边框宽度,边框线形和边框颜色

上述文档嵌入自Template:提示/doc(编辑 | 历史)
您还可以检视Rotaeno中文维基中该模板的模板文档,如果存在对应的同版本模板的话。