Difference between revisions of "Template:Messagebox"
Line 14: | Line 14: | ||
You can give a second parameter to change the type of the box: | You can give a second parameter to change the type of the box: | ||
− | + | * <code><nowiki>{{messagebox|This is informational.|info}}</nowiki></code> → {{messagebox|This is informational.|info}} | |
− | + | * <code><nowiki>{{messagebox|This is a warning!|warning}}</nowiki></code> → {{messagebox|This is a warning!|warning}} | |
</noinclude><includeonly><p class="{{#if:{{{2|}}}|{{{2}}}-box}} message-box"><span>{{{1}}}</span></p></includeonly> | </noinclude><includeonly><p class="{{#if:{{{2|}}}|{{{2}}}-box}} message-box"><span>{{{1}}}</span></p></includeonly> |
Revision as of 19:15, 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:
{{messagebox|This is informational.|info}}
→
{{messagebox|This is a warning!|warning}}
→