Detect preferred date format from templates in wikitext