Changes
add style=
{{#switch: {{lc:{{{1|center}}}}}
|left = <div style="float: left;{{#if: {{{style|}}} | {{{style}}};}}">{{{2}}}</div>
|right = <div style="float: right;{{#if: {{{style|}}} | {{{style}}};}}">{{{2}}}</div>
|center = {{center|{{{2}}}|style={{{style|}}} }}
|#default = Error in [[Template:Align]]: the alignment setting "{{{1}}}" is invalid.
}}<noinclude>
{{documentation}}
</noinclude>
|left = <div style="float: left;{{#if: {{{style|}}} | {{{style}}};}}">{{{2}}}</div>
|right = <div style="float: right;{{#if: {{{style|}}} | {{{style}}};}}">{{{2}}}</div>
|center = {{center|{{{2}}}|style={{{style|}}} }}
|#default = Error in [[Template:Align]]: the alignment setting "{{{1}}}" is invalid.
}}<noinclude>
{{documentation}}
</noinclude>