Conditional author in templates