Template:Message box: Difference between revisions

added rudimentary icon support
let's not do the whole pre thing, honey
Line 1: Line 1:
<div style="{{msgbox/style|{{{type|normal}}} | bgcol = {{{bgcol|#FFFFCC}}} | linecol = {{{linecol|#616161}}} }} {{{css|}}}">
<div style="{{msgbox/style|{{{type|normal}}} | bgcol = {{{bgcol|#FFFFCC}}} | linecol = {{{linecol|#616161}}} }} {{{css|}}}">
{{#if: {{{icon|}}} | {{CommentSprite| {{{icon}}} }} }} {{#if: {{{title|}}} | '''{{{title|}}}''' }} {{#if: {{{discuss|}}} | <sup>[[{{TALKPAGENAME}}|Discuss]]</sup> }}
{{#if: {{{icon|}}} | {{CommentSprite| {{{icon}}} }} }}{{#if: {{{title|}}} | '''{{{title|}}}''' }}{{#if: {{{discuss|}}} | <sup>[[{{TALKPAGENAME}}|Discuss]]</sup> }}
{{#if: {{{text|}}} |<br />{{{text}}} }}
{{#if: {{{text|}}} |<br />{{{text}}} }}
</div><noinclude>
</div><noinclude>