Template:NBox2

{{{text}}}



Template documentation
Note: portions of the template sample may not be visible without values provided.

This template allows for the easy creation of Notice Box templates. It shouldn't normally be used directly on content or file pages.

This template uses TemplateStyles, located at Template:NBox/styles.css.

Example

{{NBox2
| shadow = yes
| boxbackground = FAFFF4
| image = Nate OR Run.png
| imagesize = 32px
| background = E3CED0
| image2 = Rosa OR Run.png
| image2size = 32px
| background2 = E3CED0
| title = This image is animated.
| text = Both Nate and Rosa are animated in this template; however, some older browsers are limited to showing only the first frame of animated PNG files. If neither Trainer is moving in your browser, '''do not''' change the image.
}}
This image is animated.
Both Nate and Rosa are animated in this template; however, some older browsers are limited to showing only the first frame of animated PNG files. If neither Trainer is moving in your browser, do not change the image.


TemplateData

A template that allows for the easy creation of Notice Box templates. It shouldn't normally be used directly on content or file pages.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Backgroundboxbackground

Background color of the notice box. Don't include "#".

Default
FAFFF4
Stringoptional
Borderborder

The color of the border. Don't include "#". Don't use if using the "Shadow" parameter.

Example
F0A018
Stringsuggested
Shadowshadow

If a drop shadow is desired, use this parameter. Don't use if using the "Border" parameter.

Example
yes
Booleanoptional
Imageimage

The first image to display. Don't include "File:".

Default
0001Bulbasaur.png
Filerequired
Image sizeimagesize

The size of the first image. Must include "px".

Default
50px
Stringoptional
Image backgroundbackground

The color of the background behind the first image. Don't include "#".

Default
CCC
Example
F5C169
Stringsuggested
Image 2image2

The second image to display. Don't include "File:".

Default
0025Pikachu.png
Filerequired
Image 2 sizeimage2size

The size of the first image. Must include "px".

Default
50px
Stringoptional
Image 2 backgroundbackground2

The color of the background behind the first image. Don't include "#".

Default
CCC
Stringsuggested
Titletitle

Optional. The title of the notice box.

Stringsuggested
Texttext

The text in the notice box.

Stringrequired