Difference between revisions of "Template:Swiftbox2"

From FanimutationWiki
Jump to navigationJump to search
 
Line 1: Line 1:
<div class="boilerplate metadata" style="margin: 0 10%; padding: 0.15em 0.5em; background: {{#if:{{{bg|}}}|{{{bg}}}|#FBFBFB}}; border-left: 10px solid {{#if:{{{color|}}}|{{{color}}}|#1E90FF}}; border-top: 1px solid {{#if:{{{color|}}}|{{{color}}}|#1E90FF}}; border-bottom: 1px solid {{#if:{{{color|}}}|{{{color}}}|#1E90FF}}; border-right: 1px solid {{#if:{{{color|}}}|{{{color}}}|#1E90FF}}; text-align: left; font-size:100%; border-collapse: collapse; ">
+
<div class="boilerplate metadata" style="margin: 0 10%; background: {{#if:{{{bg|}}}|{{{bg}}}|#FBFBFB}}; border-left: 10px solid {{#if:{{{color|}}}|{{{color}}}|#1E90FF}}; border-top: 1px solid {{#if:{{{color|}}}|{{{color}}}|#1E90FF}}; border-bottom: 1px solid {{#if:{{{color|}}}|{{{color}}}|#1E90FF}}; border-right: 1px solid {{#if:{{{color|}}}|{{{color}}}|#1E90FF}}; text-align: left; font-size:100%; border-collapse: collapse; ">
  
<div style="float:left; padding-right:.5em">
+
<div style="float:left; padding-right:.5em;">
 
{{#if:{{{image|}}}|[[image:{{{image}}}]]|image}}
 
{{#if:{{{image|}}}|[[image:{{{image}}}]]|image}}
 
</div>
 
</div>
 +
<div style="padding: 0.15em 0.5em;">
 
{{#if:{{{content|}}}|{{{content}}}|Insert content here}}
 
{{#if:{{{content|}}}|{{{content}}}|Insert content here}}
 +
</div>
 
<div style="clear:left;"></div>
 
<div style="clear:left;"></div>
 
</div><noinclude>
 
</div><noinclude>

Latest revision as of 03:52, 8 March 2009

Documentation

syntax:

{{swiftbox2|
bg=#FBFBFB| (Background color, defaults to #FBFBFB)
color=#1E90FF| (Tab color, defaults to #1E90FF)
image=filename.png | (image filename, otherwise displays the word "image")
content=The message which the box contains}}