Board Thread:Support Requests - Getting Technical/@comment-29883180-20181213171911/@comment-9605025-20181213234501

The script they use it relatively simple. You can find it here. It is both of the only two lines they have at the moment. Basically, their JS just finds the template, inserts and form field and button, and then assigns the button the URL with the proper anchor attached at the end.

The anchors themselves have to be set for each and every entry. This is done within the templates that they use to create their tables. For example: The Template:Data subpages don't have anything to do with the particular function you are concerned about. Those are just database-like templates the wiki uses to store information.
 * Template:EP
 * Template:Pokédex N
 * Template:CP 20 Max
 * Template:CP 20 Min