Board Thread:Support Requests - Getting Technical/@comment-28171460-20180619000657/@comment-168424-20180619010425

You definitely can't port HTML buttons that call JS to work on Fandom wikis.

I would ask for help at Dev wiki. Probably at the Script Suggestions board.