def create_title_node(field_name, field, field_id, state, lineno):
    """Create docutils nodes for the configuration field's title and
    reference target node.

    Parameters
    ----------
    field : ``lsst.pex.config.Field``
        A configuration field.
    state : ``docutils.statemachine.State``
        Usually the directive's ``state`` attribute.

    Returns
    -------
    ``docutils.nodes.title``
        Title containing nodes for the title of the ``field`` and reference
        target.
    """
    # Reference target
    env = state.document.settings.env
    ref_target = create_configfield_ref_target_node(field_id, env, lineno)

    # Title is the field's attribute name
    title = nodes.title(text=field_name)
    title += ref_target

    return title