Template:Notice: Difference between revisions
From MiiWiki
Jump to navigationJump to search
mNo edit summary |
PinkYoshiFan (talk | contribs) mNo edit summary |
||
Line 10: | Line 10: | ||
</div><!-- | </div><!-- | ||
--></includeonly> | --></includeonly> | ||
<noinclude> | <!-- | ||
spacing between template and doc | |||
--><noinclude> | |||
{{notice | {{notice | ||
|header=Building | |header=Building | ||
Line 88: | Line 92: | ||
</div> | </div> | ||
</div> | </div> | ||
===Raw code=== | |||
<pre> | |||
{{Notice | |||
|bg= | |||
|textcolor= | |||
|maxwidth= | |||
|image= | |||
|width= | |||
|alt-text= | |||
|header= | |||
|message= | |||
}} | |||
</pre> | |||
[[Category:Meta-templates]] | [[Category:Meta-templates]] | ||
</noinclude> | </noinclude> |
Revision as of 14:49, 6 December 2023
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
|
maxwidth
|
Maximum width of the notice. Preferable to avoid percentage-based values. | fit-content
|
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 |
Color examples
Raw code
{{Notice |bg= |textcolor= |maxwidth= |image= |width= |alt-text= |header= |message= }}