Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Inline box/doc: Difference between revisions

Template page
(move TemplateData to a subpage)
Tag: Reverted
(Undo revision 2233 by Ihaveahax (talk) actually this won't work out as expected)
Tag: Undo
 
Line 9: Line 9:


=== TemplateData ===
=== TemplateData ===
{{/TemplateData}}
<templatedata>
{
"params": {
"class": {
"label": "CSS classes",
"description": "Additional CSS classes to add",
"type": "string"
},
"type": {
"label": "Type",
"description": "Type of the message, affects the default image and color",
"type": "string",
"suggestedvalues": [
"info",
"warning",
"critical",
"success"
],
"suggested": true
},
"image": {
"label": "Image",
"description": "Image to display as a file link (does not actually have to be a file, can be any object)",
"example": "[[File:Example.png|20px]]",
"type": "content"
},
"imagewidth": {
"label": "Image width",
"description": "Width of the image, set in the CSS width property and image width in the file link",
"example": "20px"
},
"text": {
"aliases": [
"1"
],
"label": "Text",
"description": "Text to display",
"type": "content",
"required": true
}
},
"description": "Smaller message box (compared to Mbox) used for warnings or other information such as in the middle of a guide.",
"paramOrder": [
"text",
"type",
"image",
"imagewidth",
"class"
],
"format": "block"
}
</templatedata>

Latest revision as of 04:04, 25 September 2022

This is a small message box that can be used in the middle of contents like a guide.

You probably don't want to use this template directly, instead consider:

TemplateData

Smaller message box (compared to Mbox) used for warnings or other information such as in the middle of a guide.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Texttext 1

Text to display

Contentrequired
Typetype

Type of the message, affects the default image and color

Suggested values
info warning critical success
Stringsuggested
Imageimage

Image to display as a file link (does not actually have to be a file, can be any object)

Example
[[File:Example.png|20px]]
Contentoptional
Image widthimagewidth

Width of the image, set in the CSS width property and image width in the file link

Example
20px
Unknownoptional
CSS classesclass

Additional CSS classes to add

Stringoptional