Template:Box: Difference between revisions

From KDE Wiki Sandbox
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<div class="alert {{#if: {{{4|}}} | {{{4|}}} | alert-success }}">
 
<table><tr><th></th><th> {{#if: {{{2|}}} | {{{2|}}} }}</th></tr><tr><td width="50" valign="top">{{{3}}}</td><td>{{{1}}}</td></tr></table>
</noinclude>
<div class="alert {{#if: {{{4|}}} | {{{4}}} | alert-success }}">
<table><tr><th></th><th> {{#if: {{{2|}}} | {{{2}}} }}</th></tr><tr><td width="50" valign="top">{{{3}}}</td><td>{{{1}}}</td></tr></table>
<div class="clearfix"></div>
<div class="clearfix"></div>
</div>
</div>
Line 20: Line 17:
Don't use this template directly in your pages. Instead use it to make a more specific template. For examples see [[Template:Info]] or [[Template:Warning]]
Don't use this template directly in your pages. Instead use it to make a more specific template. For examples see [[Template:Info]] or [[Template:Warning]]
[[Category:Template]]
[[Category:Template]]
<div class="alert {{#if: {{{4|}}} | {{{4}}} | alert-success }}">
</noinclude>
<table><tr>
<th></th><th>{{#if: {{{2|}}} | {{{2}}} | Testing }}</th></tr>
<tr><td width="50" valign="top">{{#if: {{{3|}}} | {{{3}}}  | [[Image:Dialog-information.png|left|40px]] }}</td><td>{{{1}}}</td></tr></table>
<div class="clearfix"></div>
</div>

Revision as of 06:32, 27 July 2012

{{{3}}}{{{1}}}

Produces a boks for emphasizing material. Takes four arguments:

  1. The text of the main body if the box
  2. The title of the box
  3. An image file to be displayed in the left side of the body - the image should be 40 x 40
  4. The background color: possible values
    1. nothing gives yellow
    2. alert-info gives blue - use with care, it doesn't work well with links
    3. alert-success gives green
    4. alert-error gives red

Don't use this template directly in your pages. Instead use it to make a more specific template. For examples see Template:Info or Template:Warning