Fallout中文維基
(新頁面: {| class="mbox" style="border-left: 10px solid {{{color|{{{Color|grey}}}}}};" |- ! <div style="width: 40px;">[[Image:{{{image|Mbox default.png}}}|{{{px|35x30px}}}]]</div> | <div>'''{{{hea…)
 
 
(未顯示同一使用者於中間所作的 3 次修訂)
行 1: 行 1:
  +
<onlyinclude><!--
{| class="mbox" style="border-left: 10px solid {{{color|{{{Color|grey}}}}}};"
 
  +
 
-->{| class="va-mbox" style="border-left: 10px solid {{{color|{{{Color|grey}}}}}}; {{{style|{{{Style|}}}}}}"
 
|-
 
|-
! <div style="width: 40px;">[[Image:{{{image|Mbox default.png}}}|{{{px|35x30px}}}]]</div>
+
! <div style="width: 40px;">[[Image:{{{image|Mbox default.png}}}|{{{px|35x30px}}}|link=]]</div>
 
|
 
|
 
<div>'''{{{header|{{{Header|header?}}}}}}'''</div>
 
<div>'''{{{header|{{{Header|header?}}}}}}'''</div>
 
<div>{{{content|{{{Content|content?}}}}}}</div>
 
<div>{{{content|{{{Content|content?}}}}}}</div>
<div style="font-size:90%;">{{{note|{{{Note|}}}}}}</div>
+
<div style="font-size: 90%;">{{{note|{{{Note|}}}}}}</div>
|}<noinclude>
+
|}<!--
  +
  +
--></onlyinclude>
 
{{documentation}}
 
{{documentation}}
[[Category:Article management templates| ]]
+
[[Category:頁面管理模板| ]]
[[Category:Meta templates|{{PAGENAME}}]]
+
[[Category:元模板]]
</noinclude>
 

於 2011年2月15日 (二) 17:17 的最新修訂

Mbox default.png
header?
content?
Template documentation (for the template shown above, sometimes hidden or invisible)

Meta-template for building message boxes (used for article management templates, for example).

Usage

{{Mbox
|color   =gray
|image   =Mbox_default.png
|header  =Example header
|content =Example text
}}

Parameters

Required
content
Text content of the box.
Required
header
Bold text to be displayed as the box header.
Optional
(default: "middle")
align
Enables the header, content and note to be aligned vertically as a group. Options are those listed for CSS vertical-align
Optional
(default: "gray")
color
Color of left border. Accepts standard HTML color names or RGB hex triplets. For the wiki's color conventions see "Colors" below.
Optional
(default: "Mbox default.png")
image
Image to be displayed in the box.
Optional
note
Small text to be displayed below content.
Optional
(default: "60x55px")
px
Size of image.
Optional
style
Additional CSS to be applied to the box. To ensure a standardized and professional look across all {{mbox}}-based templates, this should only be used very sparingly.

Colors

Color Should be used for Examples
red serious issues {{Delete}}
orange content issues {{Cleanup}}, {{Wikify}}, {{Upcoming}}, {{Update}}
blue template issues {{Infobox incomplete}}, {{Infobox needed}}, {{Missing data}}
purple organization issues {{Merge}}, {{Split}}
yellow file issues {{Badimage}}, {{Image needed}}, {{Unused file}}, {{Audio needed}}
green stub color {{Stub}}, {{Section}}
gray default color

Examples

Example 1

{{Mbox
|color   =black
|header  =Example notice
|content =Example notices serve example purposes.
}}

results in:

Mbox default.png
Example notice
Example notices serve example purposes.

Example 2

{{Mbox
|color   =#F1B82F
|image   =Mbox delete.png
|header  =Example notice
|content =Example notices serve example purposes.
|note    =Example notices are not really useful.
}}

results in:

Mbox delete.png
Example notice
Example notices serve example purposes.
Example notices are not really useful.
Documentation transcluded from Template:Mbox/doc.