code: def make_link_node(rawtext, app, name, options):
      
      try:
          base = app.config.tl_ref_url
          if not base:
              raise AttributeError
      except AttributeError as e:
          raise ValueError('tl_ref_url config value is not set') from e
  
      if base[-1] != '/':
          base += '/'
  
      set_classes(options)
      node = nodes.reference(rawtext, utils.unescape(name),
                             refuri='{}?q={}'.format(base, name),
                             **options)
      return node
docs: Create a link to the TL reference.
  
      :param rawtext: Text being replaced with link node.
      :param app: Sphinx application context
      :param name: Name of the object to link to
      :param options: Options dictionary passed to role func.