Template:HTML attribute/doc

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

It creates a string of HTML attributes, omitting any not given (or blank) and omitting the entire string if none are given.