Difference between revisions of "Template:Box"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<div style="width: 70%; border: {{{border|1px solid #ddd}}}; background-color: {{{background-color|#f8f8f8}}}; margin: 1em auto; text-align: center; padding:0.5em;"> {{{text|Text...")
 
(ok, i think that's all we need)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="width: 70%; border: {{{border|1px solid #ddd}}}; background-color: {{{background-color|#f8f8f8}}}; margin: 1em auto; text-align: center; padding:0.5em;">
+
<div style="width: 70%; border:{{{border|1px solid #ddd}}}; background-color:{{{background-color|#f8f8f8}}}; margin: 1em auto; text-align: center; padding:0.5em;">
 
{{{text|Text for the box.}}}
 
{{{text|Text for the box.}}}
 
</div>
 
</div>
  
 
<noinclude>
 
<noinclude>
 +
== Usage ==
 +
<pre><nowiki>{{box|text=This is my box based on this template.}}</nowiki></pre>
 +
{{box|text=This is a box based on this template.}}
 +
 +
== Customization ==
 +
<pre><nowiki>{{box
 +
|text=This is a box based on this template, but this time we made it pretty.
 +
|border=1px solid #595
 +
|background-color=#cfc
 +
}}</nowiki></pre>
 +
 +
{{box
 +
|text=This is a box based on this template, but this time we made it pretty.
 +
|border=1px solid #595
 +
|background-color=#cfc
 +
}}
 +
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 16:07, 7 June 2011

Text for the box.


Usage

{{box|text=This is my box based on this template.}}

This is a box based on this template.


Customization

{{box
|text=This is a box based on this template, but this time we made it pretty.
|border=1px solid #595
|background-color=#cfc
}}

This is a box based on this template, but this time we made it pretty.