Changes

526 bytes added ,  01:31, 24 November 2020
no edit summary
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>