“模板:Box”的版本间差异

来自中国分布式计算总站
跳转到导航 跳转到搜索
(以内容“<noinclude>{{Metatemplate}} '''A generic message box.''' See also: * Template:Box BLUE * Template:Box GREEN * Template:Box RED * [[:Template:Box YELLO...”创建新页面)
 
第1行: 第1行:
 
<noinclude>{{Metatemplate}}
 
<noinclude>{{Metatemplate}}
  
'''A generic message box.'''
+
用于突出文本的方框。
  
See also:
+
另见:
 +
* [[:模板:Warning]]
 +
* [[:模板:Note]]
 +
* [[:模板:Tip]]
  
* [[:Template:Box BLUE]]
+
===用法===
* [[:Template:Box GREEN]]
 
* [[:Template:Box RED]]
 
* [[:Template:Box YELLOW]]
 
  
====Usage====
+
<nowiki>{{Box||Content without heading}}</nowiki>
  
{{Ic|1=<nowiki>{{Box||Content without heading}}</nowiki>}}
+
<nowiki>{{Box|Example:|Content with heading}}</nowiki>
  
{{Ic|1=<nowiki>{{Box|Example:|Content with heading}}</nowiki>}}
+
<nowiki>{{Box|Example:|Content followed by border-color|#DF0000}}</nowiki>
  
{{Ic|1=<nowiki>{{Box|Example:|Content followed by border-color|#DF0000}}</nowiki>}}
+
<nowiki>{{Box|Example:|Content followed by border-color and background-color|#DF0000|#FFDFDF}}</nowiki>
  
{{Ic|1=<nowiki>{{Box|Example:|Content followed by border-color and background-color|#DF0000|#FFDFDF}}</nowiki>}}
+
===示例===
 
 
====Example====
 
  
 
{{Box||Content without heading}}
 
{{Box||Content without heading}}
第28行: 第26行:
 
{{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|#000}}}; overflow: hidden;"><strong> {{{1}}} </strong>{{{2}}}</div></includeonly>
+
{{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|black}}}; overflow: hidden;"><strong> {{{1}}} </strong>{{{2}}}</div></includeonly>

2013年4月5日 (五) 10:53的版本

本页面是一个元模板,无实际内容,仅由其他模板调用。

通常元模板不应当直接用于Wiki页面,而仅用作生成其他模板。请不要随意修改模板,因为这里的修改会影响到所有直接或间接使用到该模板的页面

对于本元模板,如果您有意见或建议,请联系管理员或到论坛Wiki 系统讨论区反映。

用于突出文本的方框。

另见:

用法

{{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}}

示例

Content without heading
Example: Content with heading
Example: Content followed by border-color
Example: Content followed by border-color and background-color