Jump to content

Template:Box: Difference between revisions

From KDE Wiki Sandbox
Claus chr (talk | contribs)
No edit summary
Claus chr (talk | contribs)
No edit summary
Line 1: Line 1:
<div class="alert {{#if: {{{4|}}} | {{{4}}}  }}">
<div class="alert {{#if: {{{4|}}} | {{{4}}}  }}" width="50%">
<table><tr><th></th><th> {{{2|}}}</th></tr><tr><td width="50" valign="top">{{{3}}}</td><td>{{{1}}}</td></tr></table>
<table><tr><th></th><th> {{{2|}}}</th></tr><tr><td width="50" valign="top">{{{3}}}</td><td>{{{1}}}</td></tr></table>
<div class="clearfix"></div>
<div class="clearfix"></div>
Line 10: Line 10:
# An image file to be displayed in the left side of the body - the image should be 40 x 40
# An image file to be displayed in the left side of the body - the image should be 40 x 40
# The background color: possible values
# The background color: possible values
## default is yellow
#* default is yellow
## ''alert-info'' gives blue - use with care, it doesn't work well with links
#* ''alert-info'' gives blue - use with care, it doesn't work well with links
## ''alert-success'' gives green
#* ''alert-success'' gives green
## ''alert-error'' gives red
#* ''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]]
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]]
</noinclude>
</noinclude>

Revision as of 12:04, 25 August 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
    • default is yellow
    • alert-info gives blue - use with care, it doesn't work well with links
    • alert-success gives green
    • 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