Template:NoticeBox/core: Difference between revisions
(added if no image text uses 100% of box) |
m (spacing fix) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{| 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}}};" | | ||
{{#if:{{{image|}}}|{{!}} 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]]}}} }} |
Revision as of 15:37, 31 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:
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. |