def template_name(tpl: dict) -> str:
    """Returns a displayable name for the given template configuration"""
    if 'landscape' in tpl:
        return tpl['name'] + (' (Landscape)' if tpl['landscape'] else ' (Portrait)')
    return tpl['name']