Template:Box: Difference between revisions
Jump to navigation
Jump to search
m (That'll just break things.) |
mNo edit summary |
||
Line 12: | Line 12: | ||
==Parameters== | ==Parameters== | ||
{| class = "wikitable" | {| class = "wikitable" | ||
! Parameter || Mandatory || | ! Parameter || Mandatory || Default || Name || Detailed description | ||
|- | |- | ||
! 1 | |||
| '''Yes''' || || Content || The box's content. | |||
|- | |- | ||
| | ! 2 | ||
| No || auto || Width || The box's width, used in the CSS. | |||
|- | |- | ||
| | ! 3 | ||
| No || || Roundness || The roundness of the box, in pixels (without the "px"). | |||
|- | |- | ||
| | ! 4 | ||
| No || || Extra style || Any extra CSS rules. | |||
|} | |} | ||
Line 27: | Line 31: | ||
{{box | {{box | ||
|<content> | |<content> | ||
|<width>|<round>|<style> | |<width>|<round>|<extra style> | ||
}} | }} | ||
</pre> | </pre> |
Revision as of 08:02, 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 | Default | Name | Detailed description |
---|---|---|---|---|
1 | Yes | Content | The box's content. | |
2 | No | auto | Width | The box's width, used in the CSS. |
3 | No | Roundness | The roundness of the box, in pixels (without the "px"). | |
4 | No | Extra style | Any extra CSS rules. |
Template
{{box |<content> |<width>|<round>|<extra style> }}
Examples
Code | Result | |
---|---|---|
{{box|A normal box.}} |
| |
{{box|A long box.|300px}} |
| |
{{box|A rounded box.||20}} |
| |
{{box|A red text box.|||color: red;}} |
|