|
|
Line 2: |
Line 2: |
| -->{{#if: {{{title|}}} | '''{{{title|}}}''' }}{{#if: {{{discuss||1}}} | <sup>[[{{TALKPAGENAME}}|Discuss]]</sup> }}<!-- | | -->{{#if: {{{title|}}} | '''{{{title|}}}''' }}{{#if: {{{discuss||1}}} | <sup>[[{{TALKPAGENAME}}|Discuss]]</sup> }}<!-- |
| -->{{#if: {{{icon|}}} | {{CommentSprite| {{{icon|}}} }} }}{{#if: {{{text|}}} | {{#if: {{{title|}}} | <br /> }} {{{text|}}} }}</div></includeonly><noinclude> | | -->{{#if: {{{icon|}}} | {{CommentSprite| {{{icon|}}} }} }}{{#if: {{{text|}}} | {{#if: {{{title|}}} | <br /> }} {{{text|}}} }}</div></includeonly><noinclude> |
| == Usage ==
| | {{/doc}} |
| === Basic usage ===
| |
| <pre>
| |
| {{msgbox | |
| | title = This is a normal message box
| |
| | text = With helpful and descriptive subtext
| |
| }}
| |
| </pre>
| |
| | |
| Will result in:
| |
| {{msgbox| title = This is a normal message box | text = With helpful and descriptive subtext}}
| |
| | |
| === Mini usage ===
| |
| <pre>
| |
| {{msgbox
| |
| | mini = 1
| |
| | icon = 8
| |
| | text = This is a mini message box with an information icon using [[Template:CommentSprite]]
| |
| }}
| |
| </pre>
| |
| | |
| Will result in:
| |
| {{msgbox| mini = 1 | icon = 8 | text = This is a mini message box with an information icon using [[Template:CommentSprite]]}}
| |
| | |
| === Advanced usage ===
| |
| <pre>
| |
| {{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;
| |
| }}
| |
| </pre>
| |
| | |
| Will result in:
| |
| {{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> |