模板:提示框:修订间差异
来自异世界百科
删除的内容 添加的内容
创建页面,内容为“<includeonly><templatestyles src="提示框/styles.css" /><div class="isekai-alert {{#switch: {{{type|primary}}} | primary = isekai-alert-primary | secondary = isek…” |
小无编辑摘要 |
||
(未显示同一用户的6个中间版本) | |||
第1行: | 第1行: | ||
<includeonly><templatestyles src=" |
<includeonly><templatestyles src="Alert/styles.css" /><div class="isekai-alert {{#switch: {{{type|primary}}} | primary = isekai-alert-primary | secondary = isekai-alert-secondary | warning = isekai-alert-warning | danger = isekai-alert-danger | success = isekai-alert-success | info = isekai-alert-info }}">{{{content}}}</div></includeonly><noinclude> |
||
= 提示框 = |
= 提示框 = |
||
显示一小段提示 |
显示一小段提示 |
||
第6行: | 第6行: | ||
<code><nowiki>{{ 提示框 | content = 提示内容 | type = primary }}</nowiki></code> |
<code><nowiki>{{ 提示框 | content = 提示内容 | type = primary }}</nowiki></code> |
||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"type": { |
|||
"label": "提示框颜色", |
|||
"description": "具体请参考bootstrap。可用值:primary, secondary, success, warning, danger, info", |
|||
"example": "primary", |
|||
"type": "dropdown", |
|||
"autovalue": "primary", |
|||
"default": "primary: 主要(蓝色)\ninfo: 信息(浅蓝色)\nsecondary: 次要(灰色)\nsuccess: 成功(绿色)\nwarning: 警告(黄色)\ndanger: 危险(红色)" |
|||
}, |
|||
"content": { |
|||
"label": "提示框内容", |
|||
"description": "要在提示框内显示的内容", |
|||
"type": "content", |
|||
"autovalue": "", |
|||
"required": true |
|||
} |
|||
}, |
|||
"format": "block" |
|||
} |
|||
</templatedata> |
|||
</noinclude> |
2022年4月25日 (一) 14:47的最新版本
提示框
显示一小段提示
提示内容
{{ 提示框 | content = 提示内容 | type = primary }}