Template:Message box: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
This doesn't work at all |
||
Line 1: | Line 1: | ||
<includeonly><div | <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||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> |
Revision as of 00:56, 26 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
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
It has a discuss link, custom width and some custom CSS