Template:Msgbox

来自魔法少女小圆维基
跳到导航 跳到搜索


来源
http://wiki.moegirl.org/index.php?title=Template:Info 以及 wikipedia上的template:ambox
用处
产生一个提示框。可定制颜色、类型、展示的图片。
image参数为blank或none时没有图片,或者可以不加入image参数,则会根据type参数选择适当的图片。
type参数可以是warning attention question contentissue forbidden cleanup wait construction move protection creativecommons neutrality publicdomain noticd 或 info。
只有text参数是必须的,其他均为可选。
语法
{{msgbox|width=提示框宽度|type=提示框类型|text=提醒文字|text-style=文字样式|image=使用的图片|color=提示框颜色}}
范例
{{msgbox|text=这是一个提示框}}
将产生如下效果
警告!你还没有添加任何内容


{{msgbox
|width=50% 
|text= 欢迎使用msgbox模板框,这个模板是所有msgbox系列模板的父模板
|text-style= color: red; font-weight: bold; font-style: italic;
|image= [[image:Icon-forbidden.png|50px|link=]]
|color= red
}}
将产生如下效果
50px
欢迎使用msgbox模板框,这个模板是所有msgbox系列模板的父模板