It's at Template:nb-categoryTOC.
Ah, thanks for finding it. I was looking under index templates. I will send it to Teodor.