Template:Message box: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
Boxxy and fixed.
Copy-paste mania attacks again
Line 12: Line 12:


Will result in:
Will result in:
{{User:Ultradude25/The Workbench| title = This is a normal message box | text = With helpful and descriptive subtext}}
{{msgbox| title = This is a normal message box | text = With helpful and descriptive subtext}}


=== Mini usage ===
=== Mini usage ===
Line 24: Line 24:


Will result in:
Will result in:
{{User:Ultradude25/The Workbench| mini = 1 | icon = 8 | text = This is a mini message box with an information icon using [[Template:CommentSprite]]}}
{{msgbox| mini = 1 | icon = 8 | text = This is a mini message box with an information icon using [[Template:CommentSprite]]}}


=== Advanced usage ===
=== Advanced usage ===
Line 40: Line 40:


Will result in:
Will result in:
{{User:Ultradude25/The Workbench| bgcol = #eef | linecol = #ddf | title = This is a blue message box | text = It has a discuss link, custom width and some custom CSS | discuss = 1 | width = 340px | css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888;}}
{{msgbox| bgcol = #eef | linecol = #ddf | title = This is a blue message box | text = It has a discuss link, custom width and some custom CSS | discuss = 1 | width = 340px | css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888;}}




[[Category:Notice templates|M]]
[[Category:Notice templates|M]]
</noinclude>
</noinclude>

Revision as of 07:54, 21 February 2011

Usage

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:

Template:CommentSprite 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, custom width and some custom CSS
| discuss = 1
| width = 340px
| css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888;
}}

Will result in:

This is a blue message boxDiscuss
It has a discuss link, custom width and some custom CSS