Template:Messagebox/doc

From the Tesseract Wiki, the wiki for all things Marvel Cinematic Universe
Jump to navigation Jump to search
Information icon-grey.svg
This is a documentation subpage for Template:Messagebox.
It contains usage information, categories, and other content that is not part of the original template page.

Usage

Parameters

{{Messagebox
|class = (optional) one of the classes listed below
|image = the image to be shown in the top left corner, without the File: prefix
|width = (optional) set a width for the image, default being full size; don't use on inv icons
|style = (optional) inline CSS styles to be applied to the messagebox
|title = the bolded title in the top half
|desc = the description in the lower half
|reason = (optional) used in templates requiring an action
|source = (optional) used in licenses to cite a source
|type = (optional) used in image licenses 
|subject = (optional) used in image licenses
}}

For parameters that are to be filled in by users (reason, source, type, or subject), you will need to pass them through one more time to the actual messagebox, since you won't be calling this template directly on articles or files. For example, if you were creating a template for tagging unused files for deletion that required a reason parameter, this is what you would put on the template page:

{{Messagebox
|class = action
|title = This file is unused and should be deleted.
...
|reason = {{{reason|}}}
}}

The |reason = {{{reason|}}} being the key part. If you need to do this, please keep the parameter name the same as the one in this base template to reduce confusion.

TemplateData

The base template for creating messageboxes. You should not be using this directly on article or file pages.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Classclass

One of the classes listed on [[Template:Messagebox/doc]]

Stringoptional
Stylesstyle

Inline CSS styles to be applied to the messagebox

Unknownoptional
Imageimage

The image to be shown in the top left corner, without the File: prefix

Example
Dragon dagger.png
Filerequired
Image widthwidth

Set a width for the image, the default being full size; don't use this on inventory icons

Example
35px
Numberoptional
Titletitle

The bolded title in the top half

Stringrequired
Descriptiondesc

The description in the lower half

Stringrequired
reasonreason

no description

Unknownoptional
sourcesource

no description

Unknownoptional
typetype

no description

Unknownoptional
subjectsubject

no description

Unknownoptional