Template:Message box: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
Msgbox standard template. Testing...
 
m defaults test...
Line 1: Line 1:
<div style="{{msgbox/style|{{{type|normal}}}|width = {{{width}}}|bgcol = {{{bgcol}}}|linecol = {{{linecol}}} }}">
<div style="{{msgbox/style|{{{type|normal}}}|width={{{width|}}}|bgcol={{{bgcol|}}}|linecol={{{linecol|}}}}}">
{{#if: {{{title|}}} | '''{{{title}}}''' }} {{#if: {{{discuss|}}} | <sup>[[{{TALKPAGENAME}}|Discuss]]</sup> }}
{{#if: {{{title|}}} | '''{{{title}}}''' }} {{#if: {{{discuss|}}} | <sup>[[{{TALKPAGENAME}}|Discuss]]</sup> }}
{{#if: {{{subtitle|}}} |<br />{{{subtitle}}} }}
{{#if: {{{subtitle|}}} |<br />{{{subtitle}}} }}

Revision as of 17:45, 12 February 2011


Sample message box
Sample message box

Usage

Basic usage

{{msgbox
| title = This is a normal message box
| subtitle = With helpful and descriptive subtext
}}

Will result in:

This is a normal message box
With helpful and descriptive subtext

Mini usage

{{msgbox
| type = mini
| title = This is a mini message box
}}

Will result in:

This is a mini message box

Advanced usage

{{msgbox
| type = normal
| width = 640px
| bgcol = #eef
| linecol = #ddf
| title = This is a blue message box
| subtitle = It has a discuss link and custom width
| discuss = true
}}

Will result in:

This is a blue message box Discuss
It has a discuss link and custom width