“模板:Box”的版本间差异
跳转到导航
跳转到搜索
(以内容“<noinclude>{{Metatemplate}} '''A generic message box.''' See also: * Template:Box BLUE * Template:Box GREEN * Template:Box RED * [[:Template:Box YELLO...”创建新页面) |
小 |
||
(未显示同一用户的2个中间版本) | |||
第1行: | 第1行: | ||
<noinclude>{{Metatemplate}} | <noinclude>{{Metatemplate}} | ||
− | + | 用于突出文本的方框。 | |
− | + | 另见: | |
+ | * [[:模板:Warning]] | ||
+ | * [[:模板:Note]] | ||
+ | * [[:模板:Tip]] | ||
− | + | ===用法=== | |
− | |||
− | |||
− | |||
− | + | <nowiki>{{Box||Content without heading}}</nowiki> | |
− | + | <nowiki>{{Box|Example:|Content with heading}}</nowiki> | |
− | + | <nowiki>{{Box|Example:|Content followed by border-color|#DF0000}}</nowiki> | |
− | + | <nowiki>{{Box|Example:|Content followed by border-color and background-color|#DF0000|#FFDFDF}}</nowiki> | |
− | |||
− | |||
− | |||
− | |||
+ | ===示例=== | ||
{{Box||Content without heading}} | {{Box||Content without heading}} | ||
第28行: | 第25行: | ||
{{Box|Example:|Content followed by border-color|#DF0000}} | {{Box|Example:|Content followed by border-color|#DF0000}} | ||
− | {{Box|Example:|Content followed by border-color and background-color|#DF0000|#FFDFDF}}</noinclude><includeonly><div style="padding: 5px; margin: 0.50em 0; background-color: {{{4}}}; border: thin solid {{{3|# | + | {{Box|Example:|Content followed by border-color and background-color|#DF0000|#FFDFDF}}</noinclude><includeonly><div style="padding: 5px; margin: 0.50em 0; background-color: {{{4}}}; border: thin solid {{{3|#fff}}}; overflow: hidden;"><strong> {{{1}}} </strong>{{{2}}}</div></includeonly> |
2013年4月5日 (五) 11:00的最新版本
用于突出文本的方框。
另见:
用法
{{Box||Content without heading}}
{{Box|Example:|Content with heading}}
{{Box|Example:|Content followed by border-color|#DF0000}}
{{Box|Example:|Content followed by border-color and background-color|#DF0000|#FFDFDF}}