Difference between revisions of "Template:Msgbox"
From TerraFirmaCraft Plus Wiki
m (1 revision) |
Kittychanley (Talk | contribs) m (Removed Title Coloring) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly>{| class="msgbox" style="background-color: {{{bgcol|#FFFFCC}}}; border: 2px solid {{{linecol|# | + | <includeonly>{| class="msgbox" style="background-color: {{{bgcol|#FFFFCC}}}; border: 2px solid {{{linecol|#FF0000}}}; {{#if: {{{width|}}} | max-width: {{{width}}}; }}<!-- |
-->{{#if: {{{mini|}}} | padding: 0px 6px 0px 1px; margin: 0 0 1em; | padding: 3px 12px 3px 7px; margin: 0 auto 1em; text-align:center; }} {{{css|}}}" | -->{{#if: {{{mini|}}} | padding: 0px 6px 0px 1px; margin: 0 0 1em; | padding: 3px 12px 3px 7px; margin: 0 auto 1em; text-align:center; }} {{{css|}}}" | ||
|- | |- | ||
Latest revision as of 22:12, 30 November 2014
Template documentation (for the above template, sometimes hidden or invisible)
Basic usage
{{msgbox
| title = This is a normal message box
| text = With helpful and descriptive subtext
}}
Will result in:
| This is a normal message box With helpful and descriptive subtext
|
Mini usage
{{msgbox
| mini = 1
| icon = 8
| text = This is a mini message box with an information icon using [[Template:CommentSprite]]
}}
Will result in:
| |
This is a mini message box with an information icon using Template:CommentSprite |
Advanced usage
{{msgbox
| bgcol = #eef
| linecol = #ddf
| title = This is a blue message box
| text = It has a discuss link and some custom CSS
| discuss = 1
| css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888;
}}
Will result in:
| This is a blue message box Discuss It has a discuss link and some custom CSS
|
{{msgbox
| bgcol = #eef
| linecol = #ddf
| title = This is a blue message box
| text = It has a discuss link, some custom CSS and a custom image
| discuss = 1
| image =
| css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888;
}}
Will result in:
| This is a blue message box Discuss It has a discuss link, some custom CSS and a custom image
|
A custom image size can also be specified with "imagewidth", for example: imagewidth = 50px
Advanced Mini usage
{{msgbox
| mini = 1
| image =
| bgcol = #eef
| linecol = #ddf
| css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888;
| text = This is a mini message box, it is using similar settings as the box used in the advanced example above.
}}
Will result in:
| This is a mini message box, it is using similar settings as the box used in the advanced example above. |
This can also have a custom image size.
Visit Template:Msgbox/doc to edit this text! (How does this work?)