Change deletion log wikilink printer to use `while` statements so it handles multiple links correctly