Template:Box: Difference between revisions
Jump to navigation
Jump to search
Greenpickle (talk | contribs) m (...) |
Greenpickle (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{| style="background-color: #cfc; border: 2px outset #0b0; width: {{ | {| style="background-color: #cfc; border: 2px outset #0b0; width: {{{2|auto}}}; margin: 5px auto; padding: 0 .5em; {{#if:{{{3|}}}|{{round|{{{3}}}}}}}{{{4|}}}" | ||
|- | |- | ||
| | | | ||
Line 7: | Line 7: | ||
==Use== | ==Use== | ||
<nowiki>{{box|content|round | <nowiki>{{box|content|width|round|style}}</nowiki> | ||
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 | This is a box in the standard Pikipedia style. The <code>width</code> argument requires a unit (such as px, em, %); if it is left blank or not given, the box shrinks to fit its contents. 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. 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:45, January 7, 2012
{{{1}}} |
Use
{{box|content|width|round|style}}
This is a box in the standard Pikipedia style. The width
argument requires a unit (such as px, em, %); if it is left blank or not given, the box shrinks to fit its contents. 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. Extra CSS rules can be applied to the box with the style
argument.