code: def new_template(template_name: str, ordering: int, formatting: dict=None, **kwargs):
          
          if formatting is not None:
              kwargs.update(formatting)
  
          template = dict([
              ('name', template_name),
              ('qfmt', DEFAULT_TEMPLATE['qfmt']),
              ('did', None),
              ('bafmt', DEFAULT_TEMPLATE['bafmt']),
              ('afmt', DEFAULT_TEMPLATE['afmt']),
              ('ord', ordering),
              ('bqfmt', DEFAULT_TEMPLATE['bqfmt'])
          ])
  
          for k, v in template.items():
              if k in kwargs.keys():
                  template[k] = kwargs[k]
  
          return template
docs: Templates have no unique ID.
          :param template_name:
          :param ordering:
          :param formatting:
          :param kwargs:
          :return: