(I did not look for a way to factor out the (:extend t) into a leading (default …) clause, but there ought to be a way to do it.) This method should be usable by theme authors too, crufty as it looks…