Board Thread:JS Development/@comment-4368470-20200204045609

Hi there! I'm new to Fandom coding, so I'm still getting a handle of the basics. :)

I want to make a check, each time a page edit is saved, if the page that was just edited has a certain template on it. I'm not really sure how to do that... Since there is not a good search functions on the Dev Wiki and the documentation is useful only if you know which page you want, I don't know where to look for this.

I've got this so far:

mw.hook('postEdit').add(function($content) {     // Check if template X is on the page    });

If you can be gentle and give lots of explanations with your answer, I'd really appreciate it. Thanks so much for the help! 