Template:Box: Difference between revisions
Jump to navigation
Jump to search
Greenpickle (talk | contribs) No edit summary |
Greenpickle (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{| style="background-color: #cfc; border: 2px outset #0b0; width: {{{#if:{{{3|}}}|100%|auto}}}; margin: 5px auto; padding: 0 .5em; {{#if:{{{2|}}}|{{round|{{{2}}}}}}}{{{4|}}}" | |||
|- | |||
| | |||
{{{1}}} | {{{1}}} | ||
|} | |||
<noinclude> | <noinclude> | ||
==Use== | ==Use== | ||
<nowiki>{{box|content| | <nowiki>{{box|content|round|expand|style}}</nowiki> | ||
This is a box in the standard Pikipedia style. If | This is a box in the standard Pikipedia style. If <code>round</code> is given, it is a number in pixels to give the top-left and bottom-right corners of the box as border radius. If anything is given for the <code>expand</code> argument, the box fills the width of its container; otherwise, it shrinks to fit its contents. Extra CSS rules can be applied to the box with the <code>style</code> argument. | ||
[[Category:Templates|{{PAGENAME}}]]</noinclude> | [[Category:Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 15:40, January 7, 2012
{{{1}}} |
Use
{{box|content|round|expand|style}}
This is a box in the standard Pikipedia style. If round
is given, it is a number in pixels to give the top-left and bottom-right corners of the box as border radius. If anything is given for the expand
argument, the box fills the width of its container; otherwise, it shrinks to fit its contents. Extra CSS rules can be applied to the box with the style
argument.