Template:Message box: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
m Undo revision 55228 by Wynthyst (talk)
Boxxy and fixed.
Line 1: Line 1:
<includeonly><div style="{{msgbox/style|{{{type|normal}}} | bgcol = {{{bgcol|#FFFFCC}}} | linecol = {{{linecol|#616161}}} | width = {{{width|640px}}} }} {{{customcss|}}}"><!--
<includeonly><div style="background-color: {{{bgcol|#FFFFCC}}}; border: 2px solid {{{linecol|#616161}}}; {{#if: {{{mini||1}}} | padding: 3px 6px; margin: 2px 2px; display: inline; | padding: 3px 12px; margin: 2px auto; max-width: {{{width|640px}}}; text-align:center;}} {{{css|}}}"><!--
-->{{#if: {{{title|}}} | '''{{{title|}}}''' }}{{#if: {{{discuss|}}} | <sup>[[{{TALKPAGENAME}}|Discuss]]</sup> }}<!--
-->{{#if: {{{title|}}} | '''{{{title|}}}''' }}{{#if: {{{discuss||1}}} | <sup>[[{{TALKPAGENAME}}|Discuss]]</sup> }}<!--
-->{{#if: {{{icon|}}} | {{CommentSprite| {{{icon}}} }}&nbsp; }}{{#if: {{{text|}}} | {{{title|}}}<br>{{{text}}} }}
-->{{#if: {{{icon|}}} | {{CommentSprite| {{{icon|}}} }}&nbsp; }}{{#if: {{{text|}}} | {{#if: {{{title|}}} | <br /> }} {{{text|}}} }}</div></includeonly><noinclude>
</div></includeonly><noinclude>
== Usage ==
== Usage ==
=== Basic usage ===
=== Basic usage ===
Line 13: Line 12:


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


=== Mini usage ===
=== Mini usage ===
<pre>
<pre>
{{msgbox
{{msgbox
| type = mini
| mini = 1
| icon = 8
| icon = 8
| text = This is a mini message box with an information icon using [[Template:CommentSprite]]
| text = This is a mini message box with an information icon using [[Template:CommentSprite]]
Line 25: Line 24:


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


=== Advanced usage ===
=== Advanced usage ===
<pre>
<pre>
{{msgbox
{{msgbox
| type = normal
| bgcol = #eef
| bgcol = #eef
| linecol = #ddf
| linecol = #ddf
| title = This is a blue message box
| title = This is a blue message box
| text = It has a discuss link, custom width and some custom CSS
| text = It has a discuss link, custom width and some custom CSS
| discuss = true
| discuss = 1
| width = 340px
| width = 340px
| customcss = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888;
| css = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888;
}}
}}
</pre>
</pre>


Will result in:
Will result in:
{{msgbox| type = normal | bgcol = #eef | linecol = #ddf | title = This is a blue message box | text = It has a discuss link, custom width and some custom CSS | discuss = true | width = 340px | customcss = -moz-box-shadow: 0px 0px 6px #888; -webkit-box-shadow: 0px 0px 6px #888;}}
{{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;}}
 


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

Revision as of 07:53, 21 February 2011

Usage

Basic usage

{{msgbox
| title = This is a normal message box
| text = With helpful and descriptive subtext
}}

Will result in: User:Ultradude25/The Workbench

Mini usage

{{msgbox
| mini = 1
| icon = 8
| text = This is a mini message box with an information icon using [[Template:CommentSprite]]
}}

Will result in: User:Ultradude25/The Workbench

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: User:Ultradude25/The Workbench