Difference between revisions of "Template:Mbox"
From James Dooley's Wiki
| Line 3: | Line 3: | ||
| caution = border-color: yellow; background: rgba(255,255,128,.2); | | caution = border-color: yellow; background: rgba(255,255,128,.2); | ||
| info = border-color: blue; background: rgba(0,0,255,.2); | | info = border-color: blue; background: rgba(0,0,255,.2); | ||
| + | | step = border-color: green; background: rgba(0,255,0,0,.2); | ||
| centos = border-color: gold; background: rgba(255,215,0,.2); | | centos = border-color: gold; background: rgba(255,215,0,.2); | ||
| ubuntu = border-color: #DD4814; background: rgba(221,72,20,.2); | | ubuntu = border-color: #DD4814; background: rgba(221,72,20,.2); | ||
| Line 14: | Line 15: | ||
| warning = warning_icon.png | | warning = warning_icon.png | ||
| caution = caution_icon.png | | caution = caution_icon.png | ||
| + | | step = step_icon.png | ||
| centos = centos_icon.png | | centos = centos_icon.png | ||
| ubuntu = ubuntu_icon.png | | ubuntu = ubuntu_icon.png | ||
| Line 30: | Line 32: | ||
<pre> | <pre> | ||
{{mbox | {{mbox | ||
| − | |type= [warning|caution|info|centos|ubuntu] | + | |type= [warning|caution|info|step|centos|ubuntu] |
|msg= Text in this area will be used for a title message, font size is 20px | |msg= Text in this area will be used for a title message, font size is 20px | ||
|text= Text in this area will be treated like normal wiki text (all normal formatting should work but will be contained inside the border. | |text= Text in this area will be treated like normal wiki text (all normal formatting should work but will be contained inside the border. | ||
| Line 76: | Line 78: | ||
|type=info | |type=info | ||
|msg=info | |msg=info | ||
| + | }} | ||
| + | {{mbox | ||
| + | |type=step | ||
| + | |msg=step | ||
}} | }} | ||
{{mbox | {{mbox | ||
Revision as of 15:21, 16 February 2013
Usage
General usage layout is:
{{mbox
|type= [warning|caution|info|step|centos|ubuntu]
|msg= Text in this area will be used for a title message, font size is 20px
|text= Text in this area will be treated like normal wiki text (all normal formatting should work but will be contained inside the border.
This also allows for multiple lines.
|image= Override the default image being displayed.
|caption= This will provide a small area for an image caption.
|version= Useful if you are specifying a specific version of an operating system, will display below the icon.
|style= Additional style information after the defaults are set. This should allow you to override the default settings.
}}
Example
{{mbox
|type=caution
|image=Centos_icon.png
|msg=Caution Message
|text=More information about the message
example formatting
|caption=CentOS5
|version=5.x
|style=border: 4px dotted green
}}
Types