Template:Message box: Difference between revisions
jeez louise i need to concentrate on what i'm doing |
m Added custom css ability |
||
| Line 1: | Line 1: | ||
<div style="{{msgbox/style|{{{type|normal}}} | bgcol = {{{bgcol|#FFFFCC}}} | linecol = {{{linecol|#616161}}} | width = {{{width|640px}}} }}"> | <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: {{{title|}}} | <br /> }} {{{text}}} }} | {{#if: {{{icon|}}} | {{CommentSprite| {{{icon}}} }} }}{{#if: {{{text|}}} | {{#if: {{{title|}}} | <br /> }} {{{text}}} }} | ||
| Line 34: | Line 34: | ||
| linecol = #ddf | | linecol = #ddf | ||
| title = This is a blue message box | | title = This is a blue message box | ||
| text = It has a discuss link and custom | | text = It has a discuss link, custom width and some custom CSS | ||
| discuss = true | | discuss = true | ||
| width = 320px | | width = 320px | ||