Difference between revisions of "Template:Imbox"
From Drawn to Life Wiki
| Line 2: | Line 2: | ||
<div style="margin-right: 15px;">{{#if:{{{Icon|}}}|{{#switch: {{{Icon}}}|Alert=[[File:Ambox warning.svg|60px]]|Info=[[File:Information icon.svg|60px]]}}|[[File:Information icon.svg|60px]]}}</div> <div style="padding-top: 5px;">'''<span>{{{Title|A title has not been supplied.}}}'''</span><br><span>''{{{Content|Content has not been supplied.}}}''</span></div> | <div style="margin-right: 15px;">{{#if:{{{Icon|}}}|{{#switch: {{{Icon}}}|Alert=[[File:Ambox warning.svg|60px]]|Info=[[File:Information icon.svg|60px]]}}|[[File:Information icon.svg|60px]]}}</div> <div style="padding-top: 5px;">'''<span>{{{Title|A title has not been supplied.}}}'''</span><br><span>''{{{Content|Content has not been supplied.}}}''</span></div> | ||
</div> | </div> | ||
| + | <noinclude> | ||
| + | This is the Image Box template and is used to construct simple informational boxes for content pages. | ||
| + | |||
| + | '''Usage:''' | ||
| + | <code> | ||
| + | {{Imbox | ||
| + | |Icon = [Alert/Info] | ||
| + | |Title = The message title text. | ||
| + | |Content = The message body text. | ||
| + | }} | ||
| + | </code> | ||
| + | |||
| + | '''Would produce:''' | ||
| + | {{Imbox | ||
| + | |Icon = Info | ||
| + | |Title = The message title text. | ||
| + | |Content = The message body text. | ||
| + | }} | ||
| + | {{Imbox | ||
| + | |Icon = Alert | ||
| + | |Title = The message title text. | ||
| + | |Content = The message body text. | ||
| + | }} | ||
| + | |||
| + | (Depending on the icon chosen.) | ||
| + | </noinclude> | ||
Revision as of 01:31, 24 November 2020
This is the Image Box template and is used to construct simple informational boxes for content pages.
Usage:
The message title text.
The message body text.
Would produce:
(Depending on the icon chosen.)