Template:Message box/doc: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
m added templatedata
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Usage ==
== Usage ==
This template is used to create message boxes for articles. It should be used as a meta template to build other message box templates, but it can be used standalone. For a list of other message boxes, see [[:Category:Message box templates]].
This template is used to create message boxes for articles. It should be used as a meta template to build other message box templates, but it can be used standalone. For a list of related templates, see [[:Category:Message box templates]].


== Example ==
== Example ==
<pre style="width:50%">
<pre style="width:50%">
{{Message box
{{Message box
| image  = Bebop MM.png
| image  = Bebop MM.png
| notice  = Primary notice text.
| notice  = Primary notice text.
| notice2 = Secondary notice text.
| notice2 = Secondary notice text.
| notes  = Additional notes.
| notes  = Additional notes.
}}
}}
</pre>
</pre>


{{Message box
{{Message box
| image  = Bebop MM.png
| image  = Bebop MM.png
| notice  = Primary notice text.
| notice  = Primary notice text.
| notice2 = Secondary notice text.
| notice2 = Secondary notice text.
| notes  = Additional notes.
| notes  = Additional notes.
}}
}}


Line 25: Line 25:
"type": "string",
"type": "string",
"default": "#e1d2b3",
"default": "#e1d2b3",
"description": "Hex color for the left border."
"description": "Hex color for the left border.",
"suggestedvalues": [
"none"
]
},
},
"image": {
"image": {

Latest revision as of 04:06, 4 December 2024

Usage[edit source]

This template is used to create message boxes for articles. It should be used as a meta template to build other message box templates, but it can be used standalone. For a list of related templates, see Category:Message box templates.

Example[edit source]

{{Message box
| image   = Bebop MM.png
| notice  = Primary notice text.
| notice2 = Secondary notice text.
| notes   = Additional notes.
}}

Primary notice text.
Secondary notice text.
Notes: Additional notes.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
borderborder

Hex color for the left border.

Suggested values
none
Default
#e1d2b3
Stringoptional
imageimage

Image to be displayed.

Fileoptional
quotequote

Character quote.

Contentoptional
noticenotice

Primary notice text.

Contentrequired
notice2notice2

Secondary notice text.

Contentoptional
notesnotes

Additional notes.

Contentoptional