Topic on Project:Support desk

add code if page doesn't contain it already

3
Mw.clearish (talkcontribs)

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 {{Ex|1}}, that code will be appended automatically when the page is saved. Is there an easy way to do this? Thanks, -- Noah

Reply to "add code if page doesn't contain it already"