Difference between revisions of "Template:Box"

From Epic Paths
Jump to navigation Jump to search
(Created page with "<noinclude>Creates a box around a section of text. Different from Cards in that it does not float or force a specific size. == Usage == Parameters: [color], [border]/[borders...")
 
 
Line 16: Line 16:
{{Box|color=green|borderstyle=dotted|text=Hello World}}
{{Box|color=green|borderstyle=dotted|text=Hello World}}


</noinclude><includeonly><div style="margin: 4px; padding-left: 8px; padding-right: 8px; background-color: {{{color|none}}}; {{#if:{{{border|}}}|border:{{{border}}};|border-style: {{{borderstyle|solid}}};}}">
</noinclude><includeonly><div style="margin-top: 4px; margin-bottom: 4px; padding-left: 8px; padding-right: 8px; background-color: {{{color|none}}}; {{#if:{{{border|}}}|border:{{{border}}};|border-style: {{{borderstyle|solid}}};}}">
{{{1|{{{text}}}}}}
{{{1|{{{text}}}}}}
</div></includeonly>
</div></includeonly>

Latest revision as of 07:49, 26 August 2021

Creates a box around a section of text. Different from Cards in that it does not float or force a specific size.

Usage

Parameters: [color], [border]/[borderstyle], text(1)

{{Box|Hello World}}

Hello World

{{Box|color=green|border=5px solid red|Hello World}}

Hello World

{{Box|color=green|borderstyle=dotted|text=Hello World}}

Hello World