Template:Box: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
mNo edit summary
(Added examples.)
Line 18: Line 18:
| 2 || No || The box's width, used in the CSS. || auto
| 2 || No || The box's width, used in the CSS. || auto
|-
|-
| 3 || No || The roundness of the box, in pixels. ||  
| 3 || No || The roundness of the box, in pixels (without the "px"). ||  
|-
|-
| 4 || No || Any extra CSS rules. ||  
| 4 || No || Any extra CSS rules. ||  
Line 30: Line 30:
}}
}}
</pre>
</pre>
==Examples==
{| class = "wikitable"
! Code || Result
|-
| <pre>{{box|A normal box.}}</pre>
| {{box|A normal box.}}
|-
| <pre>{{box|A long box.|300px}}</pre>
| {{box|A long box.|300px}}
|-
| <pre>{{box|A rounded box.||20}}</pre>
| {{box|A rounded box.||20}}
|-
| <pre>{{box|A red text box.|||color: red;}}</pre>
| {{box|A red text box.|||color: red;}}
|}


[[Category:Templates]]
[[Category:Templates]]
[[Category:Box templates| ]]
[[Category:Box templates| ]]
</noinclude>
</noinclude>

Revision as of 08:40, October 14, 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 (without the "px").
4 No Any extra CSS rules.

Template

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

Examples

Code Result
{{box|A normal box.}}

A normal box.

{{box|A long box.|300px}}

A long box.

{{box|A rounded box.||20}}

A rounded box.

{{box|A red text box.|||color: red;}}

A red text box.