Starting to add rules for replacing links in template pages