Template:Optional style/doc

Usage
Utility template for constructing optional style attributes. This is probably only useful in other templates.

It allows to create a style with any number of rules, omitting any not given (or blank) and omitting the entire style attribute if none are given.

This means that this:

becomes:

Parameters:
 * Any given parameters are used as the CSS property name (e.g. ). The parameter value is the property value (e.g. blank or  ).
 * : Pre-built CSS (i.e. like  (the semicolons between items are important). Will be added at the end of the style, so it will override any other parameter (in this case,  would be overridden by.