Difference between revisions of "Template:Warning"

From Worms Knowledge Base

Jump to: navigation, search
(that's nice, except it doesn't work (when you want to make the image ''smaller''))
m (no alt text and no link for icon)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="{{#if:{{{width|}}}|width: {{{width}}}; }}background: #ffd; border: 1px solid #dd8; margin: 4px 3px 3px 3px;" align="left">
+
{|cellpadding="0" cellspacing="6" {{#if:{{{noprint|}}}|class="noprint"}} style="width: {{{width|100%}}}; {{#if:{{{height|}}}|height: {{{height}}};}} background: #ffd; border: 1px solid #dd8; margin: 4px 3px 3px 3px;"
{| cellpadding="0" cellspacing="6"
+
 
|-
 
|-
|[[Image:Nuvola apps important.svg|{{{height|48}}}px]]
+
|[[Image:Nuvola apps important.svg|{{{iconsize|{{{imagesize|48px}}}}}}|alt=|link=|]]
|{{{1}}}
+
|width="100%"|{{{1}}}
|}
+
|}<noinclude>
</div>
+
----
 +
===Parameters===
 +
*'''1''': The message body text
 +
*'''width''': The width of the message box ''(default: 100%)''
 +
*'''height''': The height of the message box ''(default: 52px)''
 +
*'''iconsize''': The size of the icon on the left ''(default: 48x40px)''
 +
*'''noprint''': Whether this template should be hidden or not when printing. (set "1" to hide)
 +
</noinclude>

Latest revision as of 12:29, 21 November 2010

{{{1}}}

Parameters

  • 1: The message body text
  • width: The width of the message box (default: 100%)
  • height: The height of the message box (default: 52px)
  • iconsize: The size of the icon on the left (default: 48x40px)
  • noprint: Whether this template should be hidden or not when printing. (set "1" to hide)
Personal tools