Template:Messagebox/doc: Difference between revisions

From WiiBrew
Jump to navigation Jump to search
mNo edit summary
m ←Replaced content with '{{NewDelete|namespace=documentation|reason=unwanted}}'
Tag: Replaced
Line 1: Line 1:
<noinclude><span style="margin: 4px 10%;">This template is not implemented optimally. I'll redo it later - [[User:Mailmanmickey|Mailmanmickey]] ([[User talk:Mailmanmickey|talk]]) 04:44, 25 March 2023 (AEDT)</span></noinclude>
{{NewDelete|namespace=documentation|reason=unwanted}}
{{Documentation subpage}}
<noinclude>{{stub|documentation}}</noinclude>
{{Note|Todo: Better documentation and better implementation of <code><nowiki>{{#switch}}</nowiki></code> parser functions.}}
This template is intended as a modernized replacement to <code><nowiki>{{ambox}}</nowiki></code> and it's other similar and frankly unnecessary templates.
== Usage ==
<nowiki>{{messagebox|text1=This is a fairly simple example.}}</nowiki>
<div style="background:#f0f0f0; border-radius:6px; padding:.8em;>{{messagebox|text1=This is a fairly simple example.}}</div>
 
<nowiki>{{messagebox
| image      = Emblem-question-yellow.svg|40px
| text1      = This is a fairly complex example.
| textstyle1 = color:rebeccapurple; font-style:italic; font-weight:bold;
| text2      = ...That uses a wide variety of parameters!
| textstyle2 = color:orange; font-size:9.5pt; font-weight:600;
| styletype  = cleanup
}}</nowiki>
<div style="background:#f0f0f0; border-radius:6px; padding:.8em;>{{messagebox|image = [[File:Emblem-question-yellow.svg|40px|link=]] |text1 = This is a fairly complex example.|textstyle1 = color:rebeccapurple; font-style:italic; font-weight:bold;|text2 = ...That uses a wide variety of parameters! |textstyle2 = color:orange; font-weight:600; font-size:9.5pt; |styletype = cleanup}}</div>
 
<includeonly>[[Category:{{SITENAME}} metatemplates]]</includeonly>

Revision as of 05:04, 25 March 2023