Template:Box: Difference between revisions
Jump to navigation
Jump to search
(Made this use a class instead. Hope I don't go around breaking stuff.) |
(Adding images, hopefully.) |
||
Line 1: | Line 1: | ||
{| class="pikipediaBox" style="width: {{{2|auto}}}; {{#if:{{{3|}}}|{{round|{{{3}}}}}}}{{{4|}}}" | {| class="pikipediaBox" style="width: {{{2|auto}}}; {{#if:{{{3|}}}|{{round|{{{3}}}}}}}{{{4|}}}" | ||
|- | |- | ||
{{#if:{{{li|}}}| {{!}} [[File:{{{li}}}|{{lis|48px}}]] {{!}} }} | |||
| | | | ||
{{{1}}} | {{{1}}} | ||
{{#if:{{{ri|}}}| {{!}} [[File:{{{ri}}}|{{{ris|{{{lis|48px}}}}}}]] {{!}} }} | |||
|}<noinclude> | |}<noinclude> | ||
{{otheruses|the Pikipedia template for message boxes|the template indicating the [[ | {{otheruses|the Pikipedia template for message boxes|the template indicating the [[cardboard box]] obstacle|Template:Box icon}} | ||
==Info== | ==Info== | ||
Line 15: | Line 17: | ||
|- | |- | ||
! 1 | ! 1 | ||
| '''Yes''' || || Content || The box's content. | | '''Yes''' || || Content || The box's content. | ||
|- | |- | ||
! 2 | ! 2 | ||
Line 21: | Line 23: | ||
|- | |- | ||
! 3 | ! 3 | ||
| No || || Roundness || The roundness of the box, in pixels (without the "px"). | | No || || Roundness || The roundness of the box, in pixels (without the "px"). | ||
|- | |- | ||
! 4 | ! 4 | ||
| No || || Extra style || Any extra CSS rules. | | 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 || 48px || Left image size || Size of the image on the left. | |||
|- | |||
! ris | |||
| No || ''<nowiki>lis</nowiki>'' || Right image size || Size of the image on the right. | |||
|} | |} | ||
Line 32: | Line 46: | ||
|<content> | |<content> | ||
|<width>|<round>|<extra style> | |<width>|<round>|<extra style> | ||
|li=<left image>|ri=<right image>|lis=<left image size>|ris=<right image size> | |||
}} | }} | ||
</pre> | </pre> | ||
Line 50: | Line 65: | ||
| <pre>{{box|A red text box.|||color: red;}}</pre> | | <pre>{{box|A red text box.|||color: red;}}</pre> | ||
| {{box|A red text box.|||color: red;}} | | {{box|A red text box.|||color: red;}} | ||
|- | |||
| <pre>{{box|A warning about a Red Bulborb. | |||
|li=Red Bulborb.png}}</pre> | |||
| {{box|A warning about a Red Bulborb.|li=Red Bulborb.png}} | |||
|} | |} | ||
Revision as of 11:24, February 12, 2015
{{{1}}} |
- This article is about the Pikipedia template for message boxes. For the template indicating the cardboard box obstacle, 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 | Purpose | 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. | |
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 | 48px | Left image size | Size of the image on the left. |
ris | No | lis | Right image size | Size of the image on the right. |
Template
{{box |<content> |<width>|<round>|<extra style> |li=<left image>|ri=<right image>|lis=<left image size>|ris=<right image size> }}