User:Johan G/Messagebox: Difference between revisions

Jump to navigation Jump to search
Notice → note
m (Less is more)
(Notice → note)
 
Line 13: Line 13:
   }}
   }}
  }}<!--
  }}<!--
-->{{#switch: {{{style|notice}}}  <!-- Checking box style parameter -->
-->{{#switch: {{{style|note}}}  <!-- Checking box style parameter -->
   | speedy
   | speedy
   | warning
   | warning
   | caution
   | caution
   | notice
   | note
   | tip
   | tip
   | protected
   | protected
Line 56: Line 56:
  }}
  }}
}};<!--
}};<!--
-->{{#switch: {{lc: {{{style|notice}}} }}  <!-- Which colours to use? -->
-->{{#switch: {{lc: {{{style|note}}} }}  <!-- Which colours to use? -->
  | speedy =
  | speedy =
  speedy
  speedy
Line 69: Line 69:
  | neutral =
  | neutral =
  neutral
  neutral
  | notice
  | note
  | #default  =
  | #default  =
  {{#ifeq: {{{style|notice}}} | notice <!-- Is there an unspecified or valid type of box specified? -->
  {{#ifeq: {{{style|note}}} | note <!-- Is there an unspecified or valid type of box specified? -->
   |  <!-- Yes, the box style is unspecified or a valid box style is specified -->
   |  <!-- Yes, the box style is unspecified or a valid box style is specified -->
   notice
   note
   |  <!-- No, an invalid box style is specified -->
   |  <!-- No, an invalid box style is specified -->
   invalid box style!
   invalid box style!
Line 133: Line 133:
Optional parameters affecting the appearance of the messagebox.
Optional parameters affecting the appearance of the messagebox.


; style:  Style of the messagebox.  Valid values are '''speedy''', '''warning''', '''caution''', '''notice''', '''tip''', '''protected''' and '''neutral'''. Defaults to '''notice'''.
; style:  Style of the messagebox.  Valid values are '''speedy''', '''warning''', '''caution''', '''note''', '''tip''', '''protected''' and '''neutral'''. Defaults to '''notice'''.


; one-liner:  Makes the messagebox a one-liner if not empty.
; one-liner:  Makes the messagebox a one-liner if not empty.

Navigation menu