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:
  
{{messagebox|<code><nowiki>{{messagebox|...|info}}</nowiki></code>|info}}
+
* <code><nowiki>{{messagebox|This is informational.|info}}</nowiki></code> → {{messagebox|This is informational.|info}}
  
{{messagebox|<code><nowiki>{{messagebox|...|warning}}</nowiki></code>|warning}}
+
* <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:

This is a message!

You can give a second parameter to change the type of the box:

  • {{messagebox|This is informational.|info}}

    This is informational.

  • {{messagebox|This is a warning!|warning}}

    This is a warning!