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
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. }}
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.
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Border | border | The color of the border. Don't include "#".
| String | suggested |
Background | background | The color of the background behind the image. Don't include "#".
| String | suggested |
Image | image | The image to display. Don't include "File:".
| File | required |
Image size | imagesize | The size of the image. Must include "px".
| String | optional |
Title | title | The title of the notice box. | String | required |
Text | text | The text in the notice box. | String | required |