function link = internalLink(base, id, linkText)
%   Create an internal link to input base ID

%   Copyright 2008-2020 The MathWorks, Inc.

    if isempty(id)
        link = getString(message('Sldv:KeyWords:NA'));
    else
        sId = num2str(id);
        if nargin < 3
            linkText = sId;
        end
        link.rpt_link_type = 'link';
        link.rpt_link_id = [ base '#' sId ];
        link.rpt_link_text = linkText;
    end
end
