template builder: irregular and links - now 51 rules