Template:Messagebox/doc
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Class | class | One of the classes listed on [[Template:Messagebox/doc]] | String | optional |
Styles | style | Inline CSS styles to be applied to the messagebox | Unknown | optional |
Image | image | The image to be shown in the top left corner, without the File: prefix
| File | required |
Image width | width | Set a width for the image, the default being full size; don't use this on inventory icons
| Number | optional |
Title | title | The bolded title in the top half | String | required |
Description | desc | The description in the lower half | String | required |
reason | reason | no description | Unknown | optional |
source | source | no description | Unknown | optional |
type | type | no description | Unknown | optional |
subject | subject | no description | Unknown | optional |