Difference between revisions of "Template:Mbox"
From James Dooley's Wiki
| Line 23: | Line 23: | ||
{{{text|}}} | {{{text|}}} | ||
</div> | </div> | ||
| + | <noinclude> | ||
| + | == Usage == | ||
| + | General usage layout is: | ||
| + | <pre> | ||
| + | {{mbox | ||
| + | |type= [warning|caution|info|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. | ||
| + | }} | ||
| + | </pre> | ||
| + | |||
| + | ==Example== | ||
| + | <pre> | ||
| + | {{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 | ||
| + | }} | ||
| + | </pre> | ||
| + | {{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== | ||
| + | {{mbox | ||
| + | |type=warning | ||
| + | |msg=warning | ||
| + | }} | ||
| + | {{mbox | ||
| + | |type=caution | ||
| + | |msg=caution | ||
| + | }} | ||
| + | {{mbox | ||
| + | |type=info | ||
| + | |msg=info | ||
| + | }} | ||
| + | {{mbox | ||
| + | |type=centos | ||
| + | |msg=centos | ||
| + | }} | ||
| + | {{mbox | ||
| + | |type=ubuntu | ||
| + | |msg=ubuntu | ||
| + | }} | ||
| + | |||
| + | </noinclude> | ||
Revision as of 14:32, 16 February 2013
Usage
General usage layout is:
{{mbox
|type= [warning|caution|info|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