Template:NoticeBox/core: Difference between revisions

From PZwiki
m (changed span to div in styling)
(added if no image text uses 100% of box)
Line 2: Line 2:
{| style="width: 80%; height: 32px; background: {{{bkg-color|#F9F9F9}}}; border: {{{border-width|1px}}} solid {{{color|#1E90FF}}}; margin:auto;" cellspacing=0
{| style="width: 80%; height: 32px; background: {{{bkg-color|#F9F9F9}}}; border: {{{border-width|1px}}} solid {{{color|#1E90FF}}}; margin:auto;" cellspacing=0
   | style="width:7px; background: {{{color|#1E90FF}}};" |  
   | style="width:7px; background: {{{color|#1E90FF}}};" |  
   | style="width:68px; text-align:center; padding-top:4px; padding-bottom:4px;" | {{{image|[[File:Imbox_notice.png]]}}}
   {{#if:{{{image|}}}|{{!}} style="width:68px; text-align:center; padding-top:4px; padding-bottom:4px;" {{!}} {{{image|[[File:Imbox_notice.png]]}}} }}
   | style="text-align:left; padding-left:0px" | <div style="{{{style|}}}">{{{text}}}</div>
   | style="text-align:left; padding-left:0px" | <div style="{{{style|}}}">{{{text}}}</div>
|}{{#if:{{{hidecat|}}}| |{{{cat|}}} }}</includeonly><noinclude>
|}{{#if:{{{hidecat|}}}| |{{{cat|}}} }}</includeonly><noinclude>

Revision as of 07:07, 29 July 2018

Usage

{{NoticeBox/core
| bkg-color = purple
| color = black
| border-width = 2px
| image = [[File:PictureKate.png|32px]]
| style = font-size:150%;
| text = This feature/item is planned in a '''future''' version. It either does not exist yet, or does not yet have any known use.
| cat = [[Category:notyetingame]]
| hidecat = true
}}
Produces:
PictureKate.png
This feature/item is planned in a future version. It either does not exist yet, or does not yet have any known use.

Parameters

Syntax Description
bkg-color Colour of the background.
color Colour of the border and the tag on the left.
border-width Width of the border. Same border defined by color.
image The image to be inserted on the left side.
style Style in CSS of the text.
text The text used in the description of the notice.
cat The category added to the article this notice is on.
hidecat Having a value in this will hide the category from the page.