Template:Box

From Pikmin Fanon
Revision as of 18:11, 20 May 2022 by Cheepy-Cheepy (talk | contribs) (Oops.)
{{{1}}}
This article is about the template for message boxes. For the template indicating the cardboard box obstacle, see Template:Cardboard box.

Info

This is the base template for a box note. It places a box in an article in the standard Pikipedia style. Normally, other templates expand this one.

Parameters

Parameter Mandatory Default Purpose Detailed description
1 Yes Content The box's content.
2 No auto Width The box's width, used in the CSS.
3 No Extra style Any extra CSS rules.
li No Left image Image file name to use on the left of the message, extension included.
ri No Right image Image file name to use on the right of the message, extension included.
lis No 50px Left image size Size of the image on the left.
ris No lis Right image size Size of the image on the right.
class No CSS class CSS class for the content of the box (text only).
boxclass No CSS class CSS class for the box itself.
round2 No Style If the box is desired to have rounded and square corners, give this a value like "y".
square No Style If the box is desired to be square, give this a value like "y".

Skeleton

{{box
|<content>
|<width>|<extra style>
|li=<left image>|ri=<right image>|lis=<left image size>|ris=<right image size>
|class=<content class>
|boxclass=<box class>
|round2=<y>
|square=<y>
}}

Examples

Code Result
{{box|A normal box.}}
A normal box.
{{box|A long box.|300px}}
A long box.
{{box|A box of red text.||color: red;}}
A red text box.
{{box|A warning about a [[Red Bulborb]].|li=P3 Red Bulborb.png}}
P3 Red Bulborb.png
A warning about a Red Bulborb.
{{box|A box that uses {{t|round2}}.|round2=y}}
A box that uses {{round2}}.
{{box|A box that is square.|square=y}}
A box that is square.