Template:Message box/doc: Difference between revisions

Created page with "== Usage == This template is used to create message boxes for articles. <pre style="width:50%"> {{Message box | bgcolor = #f8f7f5 | bdcolor = #e1d2b3 | image = Bebop MM.png | notice = This is a notice. | notice2 = Optional text. | notes = Optional notes. }} </pre> {{Message box | bgcolor = #f8f7f5 | bdcolor = #e1d2b3 | image = Bebop MM.png | notice = This is a notice. | notice2 = Optional text. | notes = Optional notes. }}"
 
No edit summary
 
(8 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
| bgcolor = #f8f7f5
| image   = Bebop MM.png
| bdcolor = #e1d2b3
| notice = Primary notice text.
| image = Bebop MM.png
| notice2 = Secondary notice text.
| notice = This is a notice.
| notes   = Additional notes.
| notice2 = Optional text.
| notes = Optional notes.
}}
}}
</pre>
</pre>


{{Message box
{{Message box
| bgcolor = #f8f7f5
| image   = Bebop MM.png
| bdcolor = #e1d2b3
| notice = Primary notice text.
| image = Bebop MM.png
| notice2 = Secondary notice text.
| notice = This is a notice.
| notes   = Additional notes.
| notice2 = Optional text.
| notes = Optional notes.
}}
}}
<templatedata>
{
"params": {
"border": {
"type": "string",
"default": "#e1d2b3",
"description": "Hex color for the left border.",
"suggestedvalues": [
"none"
]
},
"image": {
"type": "wiki-file-name",
"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."
},
        "image-size": {
"type": "string",
"default": "50px",
"description": "Size for the image."
}
},
"format": "block",
"description": " "
}
</templatedata><includeonly>[[Category:Message box templates| ]]</includeonly>
<noinclude>[[Category:Template documentation]]</noinclude>