Template:MessageBox: Difference between revisions
From IdleOn MMO Wiki
(Created page with "<includeonly><div style="border: 1px solid var(--accent-0);background: var(--accent-3);padding: 0.5rem 1.0rem;width: 60%;margin: 0.25rem auto;border-left: 16px solid var(--accent-0);"> <div style="clear:left; font-family: Idleon;text-transform: uppercase;font-weight: bold;font-size: 1.2rem;">{{{title|<nowiki>{{title}}</nowiki>}}}</div> <div style="font-size: 0.75rem;">{{{content|<nowiki>{{content}}</nowiki>}}}</div> </div></includeonly><noinclude>{{/doc}}</noinclude>") |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>< | <includeonly><table class="messagebox {{{class|}}}" {{#if:{{{style|}}}|style="{{{style}}}"}} role="presentation"><td class="messagebox-image" style="width: {{{image_width|50px}}}">{{{image|[[File:Coming Soon.png|60x60px|center|link=]]}}}</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> | ||
</ |
Revision as of 07:57, 12 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 |