Template:Notice: Difference between revisions
From MiiWiki
Jump to navigationJump to search
PinkYoshiFan (talk | contribs) mNo edit summary |
PinkYoshiFan (talk | contribs) m (new parameter) |
||
Line 4: | Line 4: | ||
<div>[[File:{{{image|Needed.png}}}|{{{width|50px}}}|{{{alt-text|}}}]]</div> | <div>[[File:{{{image|Needed.png}}}|{{{width|50px}}}|{{{alt-text|}}}]]</div> | ||
<div><!-- | <div><!-- | ||
-->{{#if:{{{header|}}}|'''Notice: {{{header}}}'''<br>|}}<!-- | -->{{#if:{{{header|}}}|'''{{#if:{{{supressnotice|}}}||Notice: }}{{{header}}}'''<br>|}}<!-- | ||
-->{{{message|}}} | -->{{{message|}}} | ||
</div> | </div> | ||
Line 57: | Line 57: | ||
| style="text-align: center" | <code>message</code> | | style="text-align: center" | <code>message</code> | ||
| Message of the notice. | | Message of the notice. | ||
| style="text-align: center" | None | |||
|- | |||
| style="text-align: center" | <code>supressnotice</code> | |||
| Removes "Notice: " from the header if filled out. | |||
| style="text-align: center" | None | | style="text-align: center" | None | ||
|} | |} | ||
Line 103: | Line 107: | ||
|header= | |header= | ||
|message= | |message= | ||
|supressnotice= | |||
}} | }} | ||
</pre> | </pre> | ||
[[Category:Meta-templates]] | [[Category:Meta-templates]] | ||
</noinclude> | </noinclude> |
Revision as of 14:58, 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 |
supressnotice
|
Removes "Notice: " from the header if filled out. | None |
Color examples
Raw code
{{Notice |bg= |textcolor= |maxwidth= |image= |width= |alt-text= |header= |message= |supressnotice= }}