Template:Fmbox: Difference between revisions

m
excess spaces annoy me
(+docs)
m (excess spaces annoy me)
Line 40: Line 40:
First let's start with a basic warning-type box.
First let's start with a basic warning-type box.
<pre>{{fmbox
<pre>{{fmbox
   | type = warning
   | type = warning
   | text = Warning. You did not tie your shoelaces. Ha ha. Made you look.
   | text = Warning. You did not tie your shoelaces. Ha ha. Made you look.
   }}</pre> yields:
   }}</pre> yields:
{{fmbox
{{fmbox
   | type = warning
   | type = warning
   | text = Warning. You did not tie your shoelaces. Ha ha. Made you look.
   | text = Warning. You did not tie your shoelaces. Ha ha. Made you look.
   }}
   }}


Line 54: Line 54:
   | style = background: #ecfcf4;
   | style = background: #ecfcf4;
   | image = none
   | image = none
   | text = Sorry, even computers need to lighten things up once in a while.
   | text = Sorry, even computers need to lighten things up once in a while.
   }}</pre> yields:
   }}</pre> yields:
{{fmbox
{{fmbox
   | style = background: #ecfcf4;
   | style = background: #ecfcf4;
   | image = none
   | image = none
   | text = Sorry, even computers need to lighten things up once in a while.
   | text = Sorry, even computers need to lighten things up once in a while.
   }}
   }}


Line 65: Line 65:
For a generic "info" message, you can keep it simple (no image parameter is given, so Fmbox uses the icon from its "editnotice" style, but the "system" style for the box's appearance):
For a generic "info" message, you can keep it simple (no image parameter is given, so Fmbox uses the icon from its "editnotice" style, but the "system" style for the box's appearance):
<pre>{{fmbox
<pre>{{fmbox
   | text = Computers make bad jokes.
   | text = Computers make bad jokes.
   }}</pre> yields:
   }}</pre> yields:
{{fmbox
{{fmbox
   | text = Computers make bad jokes.
   | text = Computers make bad jokes.
   }}
   }}
<br /><br />
<br /><br />