Got a spare minute? The Archives need some love. See the to-do list to find a way to help.
If you upload a new image make sure you name and categorize it properly. If in doubt, ask an admin or see our FAQ page.

Template:NBox: Difference between revisions

From Bulbagarden Archives
Jump to navigationJump to search
(Created page with "<templatestyles src="Template:NBox/styles.css" /> <div class="nbox" style="border: 2px solid #{{{border|CCC}}};"> <div class="nboximage" style="background: #{{{background|CCC}}};">[[File:{{{image|0001Bulbasaur.png}}}|{{{imagesize|50px}}}]]</div> <div class="nboxtitle">'''{{{title}}}'''</div> <div class="nboxtext">{{{text}}}</div> </div><noinclude>{{Documentation}}</noinclude>")
 
No edit summary
 
Line 2: Line 2:
<div class="nbox" style="border: 2px solid #{{{border|CCC}}};">
<div class="nbox" style="border: 2px solid #{{{border|CCC}}};">
<div class="nboximage" style="background: #{{{background|CCC}}};">[[File:{{{image|0001Bulbasaur.png}}}|{{{imagesize|50px}}}]]</div>
<div class="nboximage" style="background: #{{{background|CCC}}};">[[File:{{{image|0001Bulbasaur.png}}}|{{{imagesize|50px}}}]]</div>
<div style="align-content: center;">
<div class="nboxtitle">'''{{{title}}}'''</div>
<div class="nboxtitle">'''{{{title}}}'''</div>
<div class="nboxtext">{{{text}}}</div>
<div class="nboxtext">{{{text}}}</div>
</div>
</div><noinclude>{{Documentation}}</noinclude>
</div><noinclude>{{Documentation}}</noinclude>

Latest revision as of 14:54, 21 September 2024

0001Bulbasaur.png
{{{title}}}
{{{text}}}

Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)

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

{{NBox
| border = F0A018
| background = F5C169
| image = 0772Type Null.png
| imagesize = 48px
| title = This AI generated image is permitted, as its inclusion on Bulbapedia serves a legitimate encyclopaedic purpose.
| text = It should only be used on the relevant article. AI generated images are not normally permitted on the Bulbagarden Archives or Bulbapedia. <br />See the {{bp|Bulbapedia:Machine-assisted contribution policy|Machine-assisted contribution policy}} for more information.
}}
0772Type Null.png
This AI generated image is permitted, as its inclusion on Bulbapedia serves a legitimate encyclopaedic purpose.
It should only be used on the relevant article. AI generated images are not normally permitted on the Bulbagarden Archives or Bulbapedia.
See the Machine-assisted contribution policy for more information.


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

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Borderborder

The color of the border. Don't include "#".

Default
CCC
Example
F0A018
Stringsuggested
Backgroundbackground

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

Default
CCC
Example
F5C169
Stringsuggested
Imageimage

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

Default
0001Bulbasaur.png
Filerequired
Image sizeimagesize

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

Default
50px
Stringoptional
Titletitle

The title of the notice box.

Stringrequired
Texttext

The text in the notice box.

Stringrequired