<template name="wrapperLabel">
    {{#unless this.labelAsDiv}}
        <label class="wrapperLabel {{this.labelClass}}" {{clone this.labelTagAttributes}}>
            {{#wrapperLabelContent (extend this labelAfter=true)}}
                {{>UI.contentBlock}}
            {{/wrapperLabelContent}}
        </label>
    {{else}}
        <div class="wrapperLabel {{this.labelClass}}" {{clone this.labelTagAttributes}}>
            {{#wrapperLabelContent}}
                {{>UI.contentBlock}}
            {{/wrapperLabelContent}}
        </div>
    {{/unless}}
</template>
