https://mineplugin.org/index.php?title=%E6%A8%A1%E6%9D%BF:Message_box/doc&feed=atom&action=history模板:Message box/doc - 版本历史2024-03-29T15:39:56Z本wiki的该页面的版本历史MediaWiki 1.31.1https://mineplugin.org/index.php?title=%E6%A8%A1%E6%9D%BF:Message_box/doc&diff=9044&oldid=prevQsefthuopq:创建页面,内容为“{{documentation header}} {{shortcut|msgbox}} {{Protected|template|talkpage=Template talk:Msgbox}} This template is used to add consistent styling to message boxes.…”2019-09-28T05:53:44Z<p>创建页面,内容为“{{documentation header}} {{shortcut|msgbox}} {{Protected|template|talkpage=Template talk:Msgbox}} This template is used to add consistent styling to message boxes.…”</p>
<p><b>新页面</b></p><div>{{documentation header}}<br />
{{shortcut|msgbox}}<br />
{{Protected|template|talkpage=Template talk:Msgbox}}<br />
<br />
This template is used to add consistent styling to message boxes.<br />
<br />
== Basic usage ==<br />
<pre style="width: 360px;"><br />
{{msgbox<br />
| title = This is a normal message box<br />
| text = With helpful and descriptive subtext<br />
}}<br />
</pre><br />
<br />
Will result in:<br />
{{msgbox| title = This is a normal message box | text = With helpful and descriptive subtext|nocat=1}}<br />
<br />
== Mini usage ==<br />
<pre style="width: 740px;"><br />
{{msgbox<br />
| mini = 1<br />
| text = This is a mini message box with an information icon using [[Template:CommentSprite]]<br />
}}<br />
</pre><br />
<br />
Will result in:<br />
{{msgbox| mini = 1 | text = This is a mini message box with an information icon using [[Template:CommentSprite]]|nocat=1}}<br />
<br />
== Advanced usage ==<br />
<pre style="width: 400px;"><br />
{{msgbox<br />
| bgcol = #eef<br />
| linecol = #ddf<br />
| title = This is a blue message box<br />
| text = It has a discuss link and some custom CSS<br />
| discuss = 1<br />
| css = box-shadow: 0px 0px 6px #888;<br />
}}<br />
</pre><br />
<br />
Will result in:<br />
{{msgbox| bgcol = #eef | linecol = #ddf | title = This is a blue message box | text = It has a discuss link and some custom CSS | discuss = 1 = 340px | css = box-shadow: 0px 0px 6px #888;|nocat=1}}<br />
<br />
== Advanced mini usage ==<br />
<pre style="width: 895px;">{{msgbox<br />
| mini = 1<br />
| bgcol = #eef<br />
| linecol = #ddf<br />
| css = box-shadow: 0px 0px 6px #888;<br />
| text = This is a mini message box, it is using similar settings as the box used in the advanced example above.<br />
}}</pre><br />
<br />
Will result in: {{msgbox| mini = 1 | bgcol = #eef | linecol = #ddf | text = This is a mini message box, it is using similar settings as the box used in the advanced example above. | css = box-shadow: 0px 0px 6px #888;| |nocat=1}}<br />
<br />
== Category ==<br />
<br />
This template automatically adds templates that use it to [[:Category:Notice templates]]. To prevent that, simply set the parameter <code><nowiki>{{{nocat}}}</nowiki></code><br />
<br />
<includeonly><br />
</includeonly><br />
<noinclude><br />
</noinclude></div>Qsefthuopq