Template:Notice: Difference between revisions

From MiiWiki
Jump to navigationJump to search
m (new parameter)
m (evidently there's some sort of whitespace trimming in the parser here, using nbsp to bypass that)
 
(One intermediate revision by the same user not shown)
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|}}}|'''{{#if:{{{supressnotice|}}}||Notice: }}{{{header}}}'''<br>|}}<!--
-->{{#if:{{{header|}}}|'''{{#if:{{{suppressnotice|}}}||Notice:&nbsp;}}{{{header}}}'''<br>|}}<!--
-->{{{message|}}}
-->{{{message|}}}
</div>
</div>
Line 59: Line 59:
| style="text-align: center" | None
| style="text-align: center" | None
|-
|-
| style="text-align: center" | <code>supressnotice</code>
| style="text-align: center" | <code>suppressnotice</code>
| Removes "Notice: " from the header if filled out.
| Removes "Notice: " from the header if filled out.
| style="text-align: center" | None
| style="text-align: center" | None
Line 107: Line 107:
|header=
|header=
|message=
|message=
|supressnotice=
|suppressnotice=
}}
}}
</pre>
</pre>
[[Category:Meta-templates]]
[[Category:Meta-templates]]
</noinclude>
</noinclude>

Latest revision as of 15:43, 4 January 2024


Needed.png
Notice: Building
This article or section is under construction. Therefore, please excuse its informal appearance while it's being worked on. We hope to have it completed as soon as possible.

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
suppressnotice Removes "Notice: " from the header if filled out. None

Color examples

Needed.png
Notice: Building
This article or section is under construction. Therefore, please excuse its informal appearance while it's being worked on. We hope to have it completed as soon as possible.
Needed.png
Notice: Building
This article or section is under construction. Therefore, please excuse its informal appearance while it's being worked on. We hope to have it completed as soon as possible.
Needed.png
Notice: Building
This article or section is under construction. Therefore, please excuse its informal appearance while it's being worked on. We hope to have it completed as soon as possible.
Needed.png
Notice: Building
This article or section is under construction. Therefore, please excuse its informal appearance while it's being worked on. We hope to have it completed as soon as possible.
Needed.png
Notice: Building
This article or section is under construction. Therefore, please excuse its informal appearance while it's being worked on. We hope to have it completed as soon as possible.

Raw code

{{Notice
|bg=
|textcolor=
|maxwidth=
|image=
|width=
|alt-text=
|header=
|message=
|suppressnotice=
}}