Difference between revisions of "Template:WarningboxSmall"

From Fallen Sword Wiki
Jump to: navigation, search
(dont use bold text)
(make icon customizable through Image parameter)
Line 1: Line 1:
 
<center>
 
<center>
 
{| width="{{{Width|auto}}}" cellpadding="0" cellspacing="2" style="border-left:6px solid red; border-top:1px solid gray; border-right: 1px solid gray; border-bottom: 1px solid gray; background:#FEF0CE;"
 
{| width="{{{Width|auto}}}" cellpadding="0" cellspacing="2" style="border-left:6px solid red; border-top:1px solid gray; border-right: 1px solid gray; border-bottom: 1px solid gray; background:#FEF0CE;"
| style="width:auto; padding: 3px;" align="left" valign="middle" | [[image:Ambox_content.png|20px|Notice]]
+
| style="width:auto; padding: 3px;" align="left" valign="middle" | [[image: {{{Image|Ambox_content.png}}}|20px|Notice]]
 
| align="left" valign="middle" style="font-family:sans-serif; padding-right:5px;" | {{{Text|Your text here}}}
 
| align="left" valign="middle" style="font-family:sans-serif; padding-right:5px;" | {{{Text|Your text here}}}
 
|}
 
|}
Line 12: Line 12:
 
}}</pre>
 
}}</pre>
 
</code>
 
</code>
There is also a parameter that controls the width of the box. The default is "auto" which will let the box occupy whatever space it needs. It can be set to anything that HTML table understand for the width parameter (such as "60%" for percentage, "500" for pixel width)
+
== Advanced Usage ==
 +
*There is also a parameter that controls the width of the box. The default is "auto" which will let the box occupy whatever space it needs. It can be set to anything that HTML table understand for the width parameter (such as "60%" for percentage, "500" for pixel width)
 +
*It's possible to choose which icon to use. Just set the Image parameter to the name of the image you want to use. The image has to be uploaded to the wiki. The image will be rendered at 20px
 +
<code><pre>
 +
{{WarningboxSmall
 +
|Image=YourImage.png
 +
|Width=500
 +
|Text=Your text here.
 +
}}</pre>
 +
</code>
 +
 
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 15:37, 21 March 2010

Notice Your text here

This template can be used as basis for smaller warning messages, such as "needs info", "needs map" etc.

{{WarningboxSmall
|Text=Your text here.
}}

Advanced Usage

  • There is also a parameter that controls the width of the box. The default is "auto" which will let the box occupy whatever space it needs. It can be set to anything that HTML table understand for the width parameter (such as "60%" for percentage, "500" for pixel width)
  • It's possible to choose which icon to use. Just set the Image parameter to the name of the image you want to use. The image has to be uploaded to the wiki. The image will be rendered at 20px
{{WarningboxSmall
|Image=YourImage.png
|Width=500
|Text=Your text here.
}}