Template:Message box/doc: Difference between revisions
Jump to navigation
Jump to search
m cat |
mNo edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Usage == | == Usage == | ||
This template is used to create message boxes for articles. | 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 == | |||
<pre style="width:50%"> | <pre style="width:50%"> | ||
{{Message box | {{Message box | ||
| image = Bebop MM.png | |||
| notice = Primary notice text. | |||
| notice2 = Secondary notice text. | |||
| notes = Additional notes. | |||
}} | }} | ||
</pre> | </pre> | ||
{{Message box | {{Message box | ||
| image = Bebop MM.png | |||
| notice = Primary notice text. | |||
| notice2 = Secondary notice text. | |||
| notes = Additional notes. | |||
}} | }} | ||
< | <templatedata> | ||
{ | |||
"params": { | |||
"border": { | |||
"type": "string", | |||
}} | "default": "#e1d2b3", | ||
"description": "Hex color for the left border.", | |||
"suggestedvalues": [ | |||
{{ | "none" | ||
] | |||
}, | |||
"image": { | |||
}} | "type": "wiki-file-name", | ||
<includeonly>[[Category:Message box templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | "description": "Image to be displayed." | ||
}, | |||
"quote": { | |||
"type": "content", | |||
"description": "Character quote." | |||
}, | |||
"notice": { | |||
"type": "content", | |||
"description": "Primary notice text.", | |||
"required": true | |||
}, | |||
"notice2": { | |||
"type": "content", | |||
"description": "Secondary notice text." | |||
}, | |||
"notes": { | |||
"type": "content", | |||
"description": "Additional notes." | |||
} | |||
}, | |||
"format": "block", | |||
"description": " " | |||
} | |||
</templatedata><includeonly>[[Category:Message box templates| ]]</includeonly> | |||
<noinclude>[[Category:Template documentation]]</noinclude> |
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
border | border | Hex color for the left border.
| String | optional |
image | image | Image to be displayed. | File | optional |
quote | quote | Character quote. | Content | optional |
notice | notice | Primary notice text. | Content | required |
notice2 | notice2 | Secondary notice text. | Content | optional |
notes | notes | Additional notes. | Content | optional |