Template:MessageBox: Difference between revisions
From IdleOn MMO Wiki
(Added the option to use a textual label instead of an image.) |
(Fixed image size) |
||
Line 1: | Line 1: | ||
<includeonly><table class="messagebox {{{class|}}}" {{#if:{{{style|}}}|style="{{{style}}}"}} role="presentation"><td class="messagebox-{{#if:{{{image|}}}|image|{{#if:{{{label|}}}|label}}}}">{{#if:{{{image|}}}|[[File:{{{image}}}|center|link=]]|{{{label|N/A}}}}}</td><td><div class="messagebox-title">{{#if:{{{title|}}}|'''{{{title}}}'''|''Missing title''}}</div>{{#if:{{{content|}}}|<div class="messagebox-content">{{{content}}}</div>}}</td></table></includeonly><noinclude>{{/doc}}</noinclude> | <includeonly><table class="messagebox {{{class|}}}" {{#if:{{{style|}}}|style="{{{style}}}"}} role="presentation"><td class="messagebox-{{#if:{{{image|}}}|image|{{#if:{{{label|}}}|label}}}}">{{#if:{{{image|}}}|[[File:{{{image}}}|center|50x50px|link=]]|{{{label|N/A}}}}}</td><td><div class="messagebox-title">{{#if:{{{title|}}}|'''{{{title}}}'''|''Missing title''}}</div>{{#if:{{{content|}}}|<div class="messagebox-content">{{{content}}}</div>}}</td></table></includeonly><noinclude>{{/doc}}</noinclude> |
Latest revision as of 08:18, 15 June 2024
The MessageBox template is used to create customizable message boxes which can be added to articles.
Examples
MessageBox examples can be found here.
Parameters
Parameter | Description | Type | Status | |
---|---|---|---|---|
CSS Classes | class | CSS classes to add to this message box. | String | optional |
CSS Styles | style | Inline CSS styles to apply to the message box. | String | optional |
Image | image | The name of the image to display on the side of the message box. Does not include square brackets or the File: prefix. | String | optional |
Label | label | A textual label to display where the image would be. | String | optional |
Title | title | The text to display at the top of the message box. | String | required |
Content | content | The main content of the message box, displayed below the title. | String | required |