Template:Box: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
m (I thought I did this.)
(New documentation style.)
Line 7: Line 7:
{{otheruses|the Pikipedia template for message boxes|the template indicating the [[Cardboard Box]] hazard|Template:Box icon}}
{{otheruses|the Pikipedia template for message boxes|the template indicating the [[Cardboard Box]] hazard|Template:Box icon}}


==Use==
==Info==
<nowiki>{{box|content|width|round|style}}</nowiki>
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.


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.
==Parameters==
{| class = "wikitable"
! Parameter || Mandatory || Description || Default value
|-
| 1 || '''Yes''' || The box's content.
|-
| 2 || No || The box's width, used in the CSS. || auto
|-
| 3 || No || The roundness of the box, in pixels. ||
|-
| 4 || No || Any extra CSS rules. ||
|}


[[Category:Templates|{{PAGENAME}}]][[Category:Box templates| ]]</noinclude>
==Template==
<pre>
{{box
| content
| width | round | style
}}
</pre>
 
[[Category:Templates]]
[[Category:Box templates| ]]
</noinclude>

Revision as of 08:14, October 13, 2014

{{{1}}}


This article is about the Pikipedia template for message boxes. For the template indicating the Cardboard Box hazard, see Template:Box icon.

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 Description Default value
1 Yes The box's content.
2 No The box's width, used in the CSS. auto
3 No The roundness of the box, in pixels.
4 No Any extra CSS rules.

Template

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