Difference between revisions of "Template:WarningboxSmall"
From Fallen Sword Wiki
(more discrete template for warningboxes) |
|||
(3 intermediate revisions by 2 users not shown) | |||
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" | [[ | + | | style="width:auto; padding: 3px;" align="left" valign="middle" | [[Image:{{{Image|Ambox_content.png}}}|20px|Notice]] |
− | | align="left" valign="middle" style=" | + | | align="left" valign="middle" style="font-family:sans-serif; padding-right:5px;" | {{{Text|Your text here}}} |
|} | |} | ||
</center> | </center> | ||
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> |
Latest revision as of 19:12, 29 November 2012
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.
}}