Difference between revisions of "Template:Messagebox"
(Created page with "<noinclude> = Message Box Template = This template is used for typesetting messages that you want to be set apart from the surrounding text. For example, the following marku...") |
|||
Line 11: | Line 11: | ||
{{messagebox|This is a message!}} | {{messagebox|This is a message!}} | ||
− | </noinclude><includeonly><p class="message-box"><span>{{{1}}}</span></p></includeonly> | + | |
+ | You can give a second parameter to change the type of the box: | ||
+ | |||
+ | {{messagebox|<code><nowiki>{{messagebox|...|info}}</nowiki></code>|info}} | ||
+ | |||
+ | {{messagebox|<code><nowiki>{{messagebox|...|warning}}</nowiki></code>|warning}} | ||
+ | |||
+ | </noinclude><includeonly><p class="{{#if:{{{2|}}}|{{{2}}}-box}} message-box"><span>{{{1}}}</span></p></includeonly> |
Revision as of 18:11, 19 March 2020
Message Box Template
This template is used for typesetting messages that you want to be set apart from the surrounding text.
For example, the following markup:
{{messagebox|This is a message!}}
will look like this:
You can give a second parameter to change the type of the box: