MagicArena Wiki
Advertisement
MagicArena Wiki
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Metabox/doc to edit this documentation. (How does this work?)


Template to display a "Message Box"

Syntax

{{Metabox
|type     = 
|image    = 
|size     = 
|headline = 
|text     = 
}}

Parameters

text - This is the main text of the template itself. This is the only absolutely mandatory parameter.

headline - This parameter adds text to the header bar. This parameter is optional, but the header bar will remain even if no parameter is specified.

image - This parameter adds an image to the left side of the template. The image is resized to 60px automatically for the standard template, and 45px for small-sized templates. The File: prefix and brackets should not be included

  • This automatic resize can be overridden by adding the desired size in the imagesize parameter (raw number only, no 'px' needed)
  • This image can be set to link to a page by filling the imagelink parameter

type - This parameter sets the color of the template's background and header. There are six general types that can be applied:

  • type=admin produces a green metabox. This type is intended to be used for "official" notices or administrative messages.
  • type=info produces a blue metabox. This type is meant to be used for general information or notification messages.
  • type=notice produces a red metabox. This type is reserved for "urgent" notices or warning header messages.
  • type=feature produces a yellow metabox. This type of box is for use by the various featured templates, such as {{Feat art}}.
  • type=delete produces a violet metabox. This color is reserved for templates dealing with page merges, deletes, moves, etc.
  • type=cleanup produces an orange metabox. This color is reserved for cleanup templates, templates dealing with style issues, etc.

If the type parameter isn't specified or isn't specified correctly, the template will display with generic colors. The template can still be used in this way, but it's recommended to choose a type to display the box as.

Custom colors can be chosen, by specifying a color in the backgroundcolor and headercolor parameters; colors need to be in "hex triplet" format (e.g., #FFFFFF for white), but should exclude the number sign/hashtag.

size - If this parameter is set so that size=small, the template will display as a smaller, left-aligned box rather than the large, center-aligned standard template.


Attribution

This template and the documentation text was derived from Metabox on the sims fandom wiki.