Template:S/c

#|

gives (linking to section "Yellow" on current page)

See also: Template:P/s (to link to sections without case changes, also sections on a different page)