Difference between revisions of "Template:提示框"
From PwnWiki
(清空全部內容) Tag: Blanking |
|||
| Line 1: | Line 1: | ||
| + | <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> | ||
| + | = 提示框 = | ||
| + | 显示一小段提示 | ||
| + | {{ 提示框 | content = 提示内容 | type = primary }} | ||
| + | |||
| + | <code><nowiki>{{ 提示框 | content = 提示内容 | type = primary }}</nowiki></code><templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "type": { | ||
| + | "label": "提示框颜色", | ||
| + | "description": "具体请参考bootstrap。可用值:primary(重要), secondary(次要), success(成功), warning(警告), danger(危险), info(提示)", | ||
| + | "example": "primary", | ||
| + | "type": "line", | ||
| + | "autovalue": "primary" | ||
| + | }, | ||
| + | "content": { | ||
| + | "label": "提示框内容", | ||
| + | "description": "要在提示框内显示的内容", | ||
| + | "type": "content", | ||
| + | "autovalue": "", | ||
| + | "required": true | ||
| + | } | ||
| + | }, | ||
| + | "format": "block" | ||
| + | } | ||
| + | </templatedata> | ||
| + | </noinclude> | ||
Latest revision as of 16:22, 28 February 2021
提示框
显示一小段提示
提示内容
{{ 提示框 | content = 提示内容 | type = primary }}<templatedata>
{
"params": {
"type": {
"label": "提示框颜色",
"description": "具体请参考bootstrap。可用值:primary(重要), secondary(次要), success(成功), warning(警告), danger(危险), info(提示)",
"example": "primary",
"type": "line",
"autovalue": "primary"
},
"content": {
"label": "提示框内容",
"description": "要在提示框内显示的内容",
"type": "content",
"autovalue": "",
"required": true
}
},
"format": "block"
}
</templatedata>