Template:Message box: Difference between revisions
Jump to navigation
Jump to search
Take two |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div style="{{msgbox/style|{{{type|normal}}} | bgcol = {{{bgcol|#FFFFCC}}} | linecol = {{{linecol|#616161}}} | width = {{{width|640px}}} }} {{{customcss|}}}"><!-- | <includeonly><div style="{{msgbox/style|{{{type|normal}}} | bgcol = {{{bgcol|#FFFFCC}}} | linecol = {{{linecol|#616161}}} | width = {{{width|640px}}} }} {{{customcss|}}}"><!-- | ||
-->{{#if: {{{title|}}} | '''{{{title|}}}''' }}{{#if: {{{discuss|}}} | <sup>[[{{TALKPAGENAME}}|Discuss]]</sup> }}<!-- | -->{{#if: {{{title|}}} | '''{{{title|}}}''' }}{{#if: {{{discuss|}}} | <sup>[[{{TALKPAGENAME}}|Discuss]]</sup> }}<!-- | ||
-->{{#if: {{{icon|}}} | {{CommentSprite| {{{icon}}} }} }}{{#if: {{{text|}}} | | -->{{#if: {{{icon|}}} | {{CommentSprite| {{{icon}}} }} }}{{#if: {{{text|}}} | {{{title|}}} {{{text}}} }} | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
== Usage == | == Usage == |
Revision as of 04:32, 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 boxThis is a normal message box With helpful and descriptive subtext
Mini usage
{{msgbox | type = mini | 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 | 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; }}
Will result in:
This is a blue message boxDiscussThis is a blue message box It has a discuss link, custom width and some custom CSS