Template:Notice: Difference between revisions
From MiiWiki
Jump to navigationJump to search
mNo edit summary |
m (Max width) |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
--><div style="background-color: {{{bg|#ffe423}}}; background-image: linear-gradient(transparent, {{#switch:{{{textcolor|#000}}}|#fff|#fffff|#FFF|#FFFFF = rgba(255,255,255,.15)|rgba(0,0,0,.15)}}); border-radius: 15px;"> | --><div style="background-color: {{{bg|#ffe423}}}; background-image: linear-gradient(transparent, {{#switch:{{{textcolor|#000}}}|#fff|#fffff|#FFF|#FFFFF = rgba(255,255,255,.15)|rgba(0,0,0,.15)}}); border-radius: 15px; max-width: 980px"> | ||
<div class="{{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}|{{#ifeq:{{{small|}}}|yes|small|standard}}-talk}} messagebox" style="background: transparent; display: flex; gap: 10px; align-items: center; border-radius: 15px; border: 3px solid rgba(255,255,255,.5); color: {{{textcolor|#000}}}; padding: 5px 10px"> | <div class="{{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}|{{#ifeq:{{{small|}}}|yes|small|standard}}-talk}} messagebox" style="background: transparent; display: flex; gap: 10px; align-items: center; border-radius: 15px; border: 3px solid rgba(255,255,255,.5); color: {{{textcolor|#000}}}; padding: 5px 10px"> | ||
<div>[[File:{{{image|Needed.png}}}|{{{width|50px}}}|{{{alt-text|}}}]]</div> | <div>[[File:{{{image|Needed.png}}}|{{{width|50px}}}|{{{alt-text|}}}]]</div> |
Revision as of 22:01, 21 September 2021
Template parameters
Parameter | Description | Default |
---|---|---|
bg
|
The color of the background. This will affect the border color automatically. | #ffe423
|
textcolor
|
The color of the text. Change to #fff (white) if the background is dark.
|
#000
|
image
|
Image of the notice. | Needed.png
|
width
|
Width of the image. | 50px
|
alt-text
|
Alt text of the image. | None |
header
|
Header of the notice. | None |
message
|
Message of the notice. | None |