Board Thread:General Coding Help/@comment-26219548-20180611091655/@comment-9605025-20180611095213

I think the issue is that you haven't imported the script. You need to add it to MediaWiki:ImportJS.