Template:Warning message: Difference between revisions

From Mariopedia, a wiki on Mario, Yoshi, Wario, Donkey Kong, Super Smash Bros., and more!
Jump to navigationJump to search
Content added Content deleted
m (use messagebox again)
(make image optional, documented, categorized)
Line 1: Line 1:
{| class="messagebox plainlinks user-block" style="background-color:#F9F9F9; border:1px solid #FFFFF; padding:5px;float:{{{float|center}}}"
{| class="messagebox plainlinks user-block" style="background-color:#F9F9F9; border:1px solid #FFFFF; padding:5px;float:{{{float|center}}}"
| [[{{{image|File:Stop x nuvola.svg}}}|50px]]
| {{#ifeq:{{{image}}}|none||[[{{{image|File:Stop x nuvola.svg}}}|50px]]}}
| {{{msg|}}}
| {{{msg|}}}
|}<noinclude>
|}
==Usage==
This template is intended for use inside other templates.

<pre>
{{warning message
|image = Filename.svg
|msg = text here
}}
</pre>

Remove the 'image' parameter to use a default [[File:Stop x nuvola.svg|12px]] icon, or set it to 'none' to have no icon at all.

[[Category:Formatting templates|Warning message]]
</noinclude>

Revision as of 02:27, February 13, 2009

Usage

This template is intended for use inside other templates.

{{warning message
 |image = Filename.svg
 |msg   = text here
}}

Remove the 'image' parameter to use a default File:Stop x nuvola.svg icon, or set it to 'none' to have no icon at all.