Template:Box: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
m (...)
No edit summary
Line 1: Line 1:
<div style="background-color: #cfc; border: 2px outset #0b0; width: {{{2|auto}}}; margin: 5px auto; padding: 0 .5em; {{#if:{{{3|}}}|{{round|{{{3}}}}}}}">
<div style="background-color: #cfc; border: 2px outset #0b0; width: {{{2|auto}}}; margin: 5px auto; padding: 0 .5em; {{#if:{{{3|}}}|{{round|{{{3}}}}}}}{{{4|}}}">
{{{1}}}
{{{1}}}
</div>
</div>
Line 5: Line 5:


==Use==
==Use==
<nowiki>{{box|content|width|round}}</nowiki>
<nowiki>{{box|content|width|round|style}}</nowiki>


This is a box in the standard Pikipedia style.  If no width is given, the box fills the screen horizontally.  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.  The width argument requires a unit (px, em, %), but the round argument does not, and is measured in px.
This is a box in the standard Pikipedia style.  If no width is given, the box fills the screen horizontally.  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.  The width argument requires a unit (px, em, %), but the round argument does not, and is measured in px.  Extra CSS rules can be applied to the box with the style argument.


[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 18:08, October 9, 2010

{{{1}}}


Use

{{box|content|width|round|style}}

This is a box in the standard Pikipedia style. If no width is given, the box fills the screen horizontally. 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. The width argument requires a unit (px, em, %), but the round argument does not, and is measured in px. Extra CSS rules can be applied to the box with the style argument.