This template creates a rectangular bar filled with a rainbow gradient. The bar width is equal to that of its container html. The height of the bar may be specified as a template parameter.

Parameters

edit
  1. Bar height in pixels (optional). If this is omitted, the bar height will be four pixels.

Examples

edit
  1. {{RainbowBar|8}} produces the bar seen above.
  2. <div style="width:300px;">{{RainbowBar}}</div> produces the following 4×300 pixel bar: