Thread:Project:Support desk/add code if page doesn't contain it already

Hi, I've been trying to figure out a way to test if a page contains certain wiki code, and if not add that code at the end of the page. For example, if the page doesn't contain, that code will be appended automatically when the page is saved. Is there an easy way to do this? Thanks, -- Noah