Thread:Project:Support desk/links to sections (on same page)

I can link something to a section on the same page using something, but this produces a blue link regardless of whether the section actually exists of not. Is there a way to make it a red link when the section is missing. Or a function like #ifexist that determines whether the section exisits?

nl:wikt:Gebruiker:Jcwf