Difference between revisions of "Template:Mbox"

From LFS Manual
Jump to navigationJump to search
m (remove icon link)
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="border:1px solid #{{#switch: {{{type}}} | warning = fc3 | notice = a2a9b1 | tip = e8c76d | a2a9b1 }}; color: #FFFFFF; background: #{{#switch: {{{type}}} | warning = fef6e7 | notice = d8e8ff | tip = fffbe0 | f8f9fa }}; margin: 4px 10%; padding:.2em; text-align:justify;{{{extra|}}}"
+
<includeonly>{| style="border:1px solid #{{#switch: {{{type}}} | warning = fc3 | notice = a2a9b1 | tip = e8c76d | a2a9b1 }}; background: #{{#switch: {{{type}}} | warning = fef6e7 | notice = d8e8ff | tip = fffbe0 | f8f9fa }}; margin: 4px; padding:.2em; text-align:justify;{{#ifeq:{{{small|}}}|yes|font-size: 90%|}}"
|style="padding-left: .9em"| {{{image|[[Image:{{#switch: {{{type}}} | warning = Caution | notice = Information icon4 | tip = Bulbgraph | Information icon4 }}.png|40x40px|link=]]}}}
+
|style="padding-left: {{#ifeq:{{{small|}}}|yes|.5em|.9em}}"| {{{image|[[Image:{{#switch: {{{type}}} | warning = Caution | notice = Information icon4 | tip = Bulbgraph | Information icon4 }}.png|{{#ifeq:{{{small|}}}|yes|30x30px|40x40px}}|link=]]}}}
|style="width: 100%; padding:.25em .9em; color: #000000;"| {{{text|{{{1}}}}}}
+
|style="width: 100%; padding:{{#ifeq:{{{small|}}}|yes|.15em .5em|.25em .9em}}; color: #000000;"| {{{text|{{{1}}}}}}
|}<noinclude>{{documentation}}</noinclude>
+
|}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 17:47, 15 June 2024

Template Info-Icon.png

Template documentation

View - Edit

Usage

Markup Renders as
{{mbox
| type  = warning
| text  = The message body text.
}}
Caution.png The message body text.
Markup Renders as
{{mbox
| type  = notice
| text  = The message body text.
}}
Information icon4.png The message body text.
Markup Renders as
{{mbox
| type  = tip
| text  = The message body text.
}}
Bulbgraph.png The message body text.
Markup Renders as
{{mbox
| text  = The message body text.
}}
Information icon4.png The message body text.
Markup Renders as
{{mbox
| text  = The message body text.
| small = yes
}}
Information icon4.png The message body text.