Difference between revisions of "Template:Swiftbox"
From FanimutationWiki
Jump to navigationJump to search (New page: <div class="boilerplate metadata" style="margin: 0 10%; padding: 0.25em 0.5em; background: {{#if:{{{bg|}}}|{{{bg}}}|#FBFBFB}}; border-left: 10px solid {{#if:{{{color|}}}|{{{color}}}|#1E90F...) |
(No difference)
|
Revision as of 13:20, 7 February 2008
Documentation
This is a "recreation" of the Ambox CSS class which Wikipedia uses for template messages. It doesn't have "all" the features of the Wikipedia one, but it can do some nifty things of it's own (like custom colors). But since it doesn't require CSS modification on namespaces I can't access, this is easier to implement. Thus, I have called it Swiftbox. Things it can't support are its usage as a CSS class, and "easy" insertion of images. It also can't do the "severity based color chooser", using HTML color codes instead. This however, is an advantage since we're not limited to 5 colors with Wikipedia's implementation.
The syntax is similar to the Animutation infobox:
{{swiftbox| bg=#FBFBFB| (Background color, defaults to #FBFBFB) color=#1E90FF| (Tab color, defaults to #1E90FF) content=The message which the box contains}}