Setting up widgets in wordpress with a unique ID for the after_title argument

Looking at widget.php in trac sprintf() only runs on before_widget (Line 884):

$params[0]['before_widget'] = sprintf($params[0]['before_widget'], $id, $classname_);

Hence, it won’t work for any of the other arguments.

I wondered whether you could use the dynamic_sidebar_params filter, but the $id and $classname_ arguments aren’t passed on to the filter. Outside of hacking core, I’m not sure there’s much you can do other than look into modifying Twitter bootstrap or using jQuery to add on the ID after the page load.