parser: handle multiple templates for wikis