Template:Message box: Difference between revisions

From Path of Exile 2 Wiki
Jump to navigation Jump to search
m (Vinifera7 moved page Template:Ombox to Template:Mbox: Working on making message box templates that are suitable for THIS wiki, rather than Wikipedia.)
mNo edit summary
Line 1: Line 1:
{{#ifeq:{{{small|}}}|yes
{{#ifeq:{{{small|}}}|yes
| {{ombox/core
| {{mbox/core
   | small = yes
   | small = yes
   | type  = {{{type|}}}
   | type  = {{{type|}}}
Line 10: Line 10:
   | text  = {{#if:{{{smalltext|}}}| {{{smalltext}}} | {{{text}}} }}
   | text  = {{#if:{{{smalltext|}}}| {{{smalltext}}} | {{{text}}} }}
   }}
   }}
| {{ombox/core
| {{mbox/core
   | type  = {{{type|}}}
   | type  = {{{type|}}}
   | image = {{{image|}}}
   | image = {{{image|}}}

Revision as of 03:14, 29 May 2013

Template:Mbox/core

Template documentation[view] [edit] [history] [purge]
Shortcut

This template is used to create standardised message boxes. It is most often used as the base for various types of notice templates.

Usage

All parameters are optional.

{{Message box
|type  = 
|full  = 
|class = 
|style = 
|image = 
|title = 
|text  = 
}}

Parameters

Parameter Description
type Determines the colors of the message box. See § Type for details.
full Set this option to yes to expand the message box to the full width of the page. This is used primarily for editnotice templates.
class Additional CSS classes applied to the message box
style Inline CSS styles applied to the message box
image If passed the name of an image file, it will be displayed as an icon with a standard width. If passed a file link, it will be displayed as given.
title The title displayed at the top of the message box
text The text displayed after the title

Type

The type parameter determines the colors of the message box.

Type Example
warning Template:Mbox/core
action Template:Mbox/core
content Template:Mbox/core
style Template:Mbox/core
info Template:Mbox/core
proposal Template:Mbox/core
lock Template:Mbox/core
legal Template:Mbox/core
(default) Template:Mbox/core