How to create a table of content like Wikipedia?

wordpress-plugins
wikipedia
table-of-contents

#1

How to make the content table like this one. When someone clicks on this, it should take them to that particular heading.

What is that plugin Name.


#2

Use Table Of Contents Plugin to get that type of heading.